Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[wip] Make `make test` work properly

  • Loading branch information...
commit 59cc1dd8d275a373d1140c3e39e808deba35c67f 1 parent a80039c
@mmalecki authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 Makefile
View
9 Makefile
@@ -1,6 +1,6 @@
OBJS += src/saneopt.o
-TEST_OBJS += test/test-saneopt
+TESTS += test/test-saneopt
CFLAGS=-g -Wall -Iinclude
@@ -12,12 +12,15 @@ libsaneopt.a: $(OBJS)
src/%.o: src/%.c
gcc $(CFLAGS) -c $< -o $@
-test/%: test/%.c
+test/%: test/%.c libsaneopt.a
gcc -L. -lsaneopt $(CFLAGS) $< -o $@
-test: libsaneopt.a $(OBJS) $(TEST_OBJS)
+test: libsaneopt.a $(TESTS)
test/test-saneopt
clean:
rm -f libsaneopt.a
rm -f $(OBJS)
+ rm -f $(TESTS)
+
+.PHONY: all test clean
Please sign in to comment.
Something went wrong with that request. Please try again.