diff options
-rw-r--r-- | Makefile | 18 | ||||
-rw-r--r-- | tests/main.go (renamed from tests/gobang_main.go) | 0 |
2 files changed, 9 insertions, 9 deletions
@@ -33,7 +33,7 @@ include deps.mk objects = \ src/$(NAME).a \ tests/$(NAME).a \ - tests/$(NAME)_main.a \ + tests/main.a \ sources = \ src/$(NAME).go \ @@ -41,7 +41,7 @@ sources = \ derived-assets = \ $(objects) \ - tests/$(NAME)_main.bin \ + tests/main.bin \ side-assets = \ @@ -60,21 +60,21 @@ src/$(NAME).a: src/$(NAME).go tests/$(NAME).a: tests/$(NAME).go src/$(NAME).go go tool compile $(GOCFLAGS) -o $@ -p $(*F) $*.go src/$(NAME).go -tests/$(NAME)_main.a: tests/$(NAME)_main.go tests/$(NAME).a +tests/main.a: tests/main.go tests/$(NAME).a go tool compile $(GOCFLAGS) -o $@ -I $(@D) $*.go -tests/$(NAME)_main.bin: tests/$(NAME)_main.a +tests/main.bin: tests/main.a go tool link $(GOLDFLAGS) -o $@ -L $(@D) $*.a tests.bin-check = \ - tests/$(NAME)_main.bin/1 \ - tests/$(NAME)_main.bin/2 \ - tests/$(NAME)_main.bin/3 \ - tests/$(NAME)_main.bin/4 \ + tests/main.bin/1 \ + tests/main.bin/2 \ + tests/main.bin/3 \ + tests/main.bin/4 \ -$(tests.bin-check): tests/$(NAME)_main.bin +$(tests.bin-check): tests/main.bin $(tests.bin-check): $(EXEC)$(@D) $(@F) diff --git a/tests/gobang_main.go b/tests/main.go index 2dcbdf0..2dcbdf0 100644 --- a/tests/gobang_main.go +++ b/tests/main.go |