makefile fix
authorPetteri Aimonen <jpa@npb.mail.kapsi.fi>
Wed, 24 Aug 2011 12:14:44 +0000 (12:14 +0000)
committerPetteri Aimonen <jpa@npb.mail.kapsi.fi>
Wed, 24 Aug 2011 12:14:44 +0000 (12:14 +0000)
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@968 e3a754e5-d11d-0410-8d38-ebb782a927b9

tests/Makefile

index 5035af8..807da64 100644 (file)
@@ -8,6 +8,7 @@ all: $(TESTS) run_unittests breakpoints
 clean:
        rm -f $(TESTS) person.pb* *.o *.gcda *.gcno
 
+%.o: %.c
 %.o: %.c $(DEPS)
        $(CC) $(CFLAGS) -c -o $@ $<
 
@@ -44,4 +45,4 @@ run_unittests: decode_unittests encode_unittests test_encode1 test_decode1
        "`./test_encode1 | protoc --decode=Person -I. -I../generator -I/usr/include person.proto`" ]
 
 run_fuzztest: test_decode1
-       bash -c 'I=1; while cat /dev/urandom | ./test_decode1 > /dev/null; do I=$$(($$I+1)); echo -en "\r$$I"; done'
\ No newline at end of file
+       bash -c 'I=1; while cat /dev/urandom | ./test_decode1 > /dev/null; do I=$$(($$I+1)); echo -en "\r$$I"; done'