github.com/notti/go-dynamic@v0.0.0-20190619201224-fc443047424c/test/nocgo/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: nocgo.test32 nocgo.test64
     8  
     9  nocgo.test32:
    10  	@rm -f nocgo.test32
    11  	-@CGO_ENABLED=0 GOARCH=386 go test -c -o nocgo.test32 $(GO_GCFLAGS) && LD_LIBRARY_PATH="../testlib" ./nocgo.test32 $(TEST)
    12  
    13  nocgo.test64:
    14  	@rm -f nocgo.test64
    15  	-@CGO_ENABLED=0 go test -c -o nocgo.test64 $(GO_GCFLAGS) && LD_LIBRARY_PATH="../testlib" ./nocgo.test64 $(TEST)
    16  
    17  clean:
    18  	rm -f nocgo.test32 nocgo.test64
    19  
    20  .PHONY: nocgo.test32 nocgo.test64 clean