github.com/notti/go-dynamic@v0.0.0-20190619201224-fc443047424c/examplelibpcap/Makefile (about)

     1  platform_id = $$( uname -s )
     2  GO_GCFLAGS = $$( \
     3  	case $(platform_id) in \
     4  		(FreeBSD) echo -gcflags=github.com/notti/nocgo/fakecgo=-std ;; \
     5  	esac )
     6  
     7  all:
     8  	@rm -rf pcapnocgo pcapcgo
     9  	CGO_ENABLED=0 go build $(GO_GCFLAGS) -o pcapnocgo
    10  	CGO_ENABLED=1 go build -o pcapcgo
    11  
    12  clean:
    13  	rm -rf pcapnocgo pcapcgo
    14  
    15  .PHONY: clean