From 6fdf83f59ffc24ed074a93e61efa09fcaee805fa Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 2 Jul 2009 18:30:58 -0700 Subject: Let gcc do dependency generation. --- Makefile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 7bc24fe..b2af7b5 100644 --- a/Makefile +++ b/Makefile @@ -9,12 +9,6 @@ all: $(OBJ) test_table tests clean: rm -f $(OBJ) tests -upb_parse.o: upb_parse.c upb_parse.h -upb_table.o: upb_table.c upb_table.h -upb_msg.o: upb_msg.c upb_msg.h -upb_inlinedefs.o: upb_inlinedefs.c upb_msg.h -descriptor.o: descriptor.c descriptor.h -test_table: test_table.cc upb_table.o - -tests: tests.c upb_parse.c upb_parse.h - $(CC) $(CPPFLAGS) $(CFLAGS) -o tests tests.c +-include deps +deps: *.c *.h + gcc -MM *.c > deps -- cgit v1.2.3