Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make 'make test' run the self-tests.

  • Loading branch information...
commit 8c6e57fce17f3950ee256f8b9351c3f45d4d6996 1 parent 561c6b8
@nelhage authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 Makefile
View
9 Makefile
@@ -3,11 +3,14 @@ OBJECTS=gc.o symbol.o stack.o read.o
TEST_OBJECTS=$(OBJECTS) test.o
TEST_CFLAGS=-DBUILD_TEST
-TEST=test
+TESTER=tester
-all: $(TEST)
+all: $(TESTER)
-$(TEST): $(TEST_OBJECTS)
+test: $(TESTER)
+ ./$<
+
+$(TESTER): $(TEST_OBJECTS)
gcc -o $@ $(TEST_OBJECTS) $(LDFLAGS)
clean:
Please sign in to comment.
Something went wrong with that request. Please try again.