github.com/DQNEO/babygo@v0.0.3/Makefile.mac (about) 1 # build from Mac OS 2 3 .PHONY: all 4 all: test test1 5 6 .PHONY: test 7 8 # test all 9 test: test0 cross test1 self 10 11 pre.mac: pre/precompiler.go 12 go build -o pre.mac pre/precompiler.go 13 14 .PHONY: test0 15 test0: t/test.go pre.mac runtime.go runtime.s 16 ./pre.mac t/test.go > .shared/pre-test.s 17 18 .PHONY: cross 19 cross: main.go runtime.go runtime.s pre.mac 20 ./pre.mac main.go > .shared/pre-main.s 21 22 babygo.mac: main.go 23 go build -o babygo.mac main.go 24 25 .PHONY: test1 26 test1: babygo.mac t/test.go 27 ./babygo.mac ${HOME} -DF -DG t/test.go > .shared/babygo-DF-DG-test.s 28 29 .PHONY: self 30 self: babygo.mac main.go 31 ./babygo.mac ${HOME} main.go > .shared/babygo-main.s