From 744915025d3dad538527beabb9c2238524f7b97a Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Wed, 27 Apr 2016 15:41:40 -0700 Subject: [PATCH] Restore dependency on headers in subdirectories --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 90ecedb..d6033e6 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,7 @@ man/tippecanoe.1: README.md PG= +ALL_H = $(shell find . '(' -name '*.h' -o -name '*.hpp' ')') H = $(wildcard *.h) $(wildcard *.hpp) C = $(wildcard *.c) $(wildcard *.cpp) @@ -54,10 +55,10 @@ tippecanoe-decode: decode.o projection.o mvt.o tile-join: tile-join.o projection.o pool.o mbtiles.o mvt.o memfile.o $(CXX) $(PG) $(LIBS) $(FINAL_FLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) -lm -lz -lsqlite3 -%.o: %.c $(H) +%.o: %.c $(ALL_H) $(CC) $(PG) $(INCLUDES) $(FINAL_FLAGS) $(CFLAGS) -c -o $@ $< -%.o: %.cpp $(H) +%.o: %.cpp $(ALL_H) $(CXX) $(PG) $(INCLUDES) $(FINAL_FLAGS) $(CXXFLAGS) -c -o $@ $< clean: