diff options
author | EuAndreh <eu@euandre.org> | 2024-08-14 14:52:16 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-08-14 14:52:16 -0300 |
commit | 80d46c35103889506f80e780ee89a05624f643ad (patch) | |
tree | 7fa6e33b8ef4ffdc6f0ea94514f7a1a7f3b5e3e7 /Makefile | |
parent | Makefile: Normalize Go rules and simplify compile rules (diff) | |
download | gobang-80d46c35103889506f80e780ee89a05624f643ad.tar.gz gobang-80d46c35103889506f80e780ee89a05624f643ad.tar.xz |
Add tests/libbuild.go
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -34,6 +34,7 @@ objects = \ src/$(NAME).a \ tests/$(NAME).a \ tests/main.a \ + tests/libbuild.a \ sources = \ src/$(NAME).go \ @@ -42,6 +43,7 @@ sources = \ derived-assets = \ $(objects) \ tests/main.bin \ + tests/libbuild.bin \ side-assets = \ @@ -59,24 +61,36 @@ tests/main.a: tests/main.go tests/$(NAME).a src/$(NAME).a tests/main.a: go tool compile $(GOCFLAGS) -o $@ -p $(*F) -I $(@D) $*.go +tests/libbuild.a: tests/libbuild.go src/$(NAME).a + go tool compile $(GOCFLAGS) -o $@ -p main -I src $*.go + tests/$(NAME).a: tests/$(NAME).go src/$(NAME).go go tool compile $(GOCFLAGS) -o $@ -p $(*F) $*.go src/$(*F).go +tests/libbuild.bin: tests/libbuild.a + go tool link $(GOLDFLAGS) -o $@ -L src $*.a + tests/main.bin: tests/main.a go tool link $(GOLDFLAGS) -o $@ -L $(@D) $*.a -tests.bin-check = \ +parallelunit.bin-check = \ tests/main.bin/1 \ tests/main.bin/2 \ tests/main.bin/3 \ tests/main.bin/4 \ -$(tests.bin-check): tests/main.bin -$(tests.bin-check): +$(parallelunit.bin-check): tests/main.bin $(EXEC)$(@D) $(@F) +tests/libbuild.bin-check: tests/libbuild.bin + $(EXEC)$*.bin + +tests.bin-check = \ + $(parallelunit.bin-check) \ + tests/libbuild.bin-check \ + check-unit: $(tests.bin-check) |