mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 18:05:42 +02:00
Autogenerate header dependencies
Following http://scottmcpeak.com/autodepend/autodepend.html
This commit is contained in:
@@ -37,7 +37,6 @@ man/tippecanoe.1: README.md
|
|||||||
|
|
||||||
PG=
|
PG=
|
||||||
|
|
||||||
ALL_H = $(shell find . '(' -name '*.h' -o -name '*.hpp' ')')
|
|
||||||
H = $(wildcard *.h) $(wildcard *.hpp)
|
H = $(wildcard *.h) $(wildcard *.hpp)
|
||||||
C = $(wildcard *.c) $(wildcard *.cpp)
|
C = $(wildcard *.c) $(wildcard *.cpp)
|
||||||
|
|
||||||
@@ -59,14 +58,16 @@ tile-join: tile-join.o projection.o pool.o mbtiles.o mvt.o memfile.o
|
|||||||
unit: unit.o text.o
|
unit: unit.o text.o
|
||||||
$(CXX) $(PG) $(LIBS) $(FINAL_FLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) -lm -lz -lsqlite3 -lpthread
|
$(CXX) $(PG) $(LIBS) $(FINAL_FLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) -lm -lz -lsqlite3 -lpthread
|
||||||
|
|
||||||
%.o: %.c $(ALL_H)
|
-include $(wildcard *.d)
|
||||||
$(CC) $(PG) $(INCLUDES) $(FINAL_FLAGS) $(CFLAGS) -c -o $@ $<
|
|
||||||
|
|
||||||
%.o: %.cpp $(ALL_H)
|
%.o: %.c
|
||||||
$(CXX) $(PG) $(INCLUDES) $(FINAL_FLAGS) $(CXXFLAGS) -c -o $@ $<
|
$(CC) -MMD $(PG) $(INCLUDES) $(FINAL_FLAGS) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
%.o: %.cpp
|
||||||
|
$(CXX) -MMD $(PG) $(INCLUDES) $(FINAL_FLAGS) $(CXXFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f tippecanoe *.o
|
rm -f tippecanoe *.o *.d
|
||||||
|
|
||||||
indent:
|
indent:
|
||||||
clang-format -i -style="{BasedOnStyle: Google, IndentWidth: 8, UseTab: Always, AllowShortIfStatementsOnASingleLine: false, ColumnLimit: 0, ContinuationIndentWidth: 8, SpaceAfterCStyleCast: true, IndentCaseLabels: false, AllowShortBlocksOnASingleLine: false, AllowShortFunctionsOnASingleLine: false, SortIncludes: false}" $(C) $(H)
|
clang-format -i -style="{BasedOnStyle: Google, IndentWidth: 8, UseTab: Always, AllowShortIfStatementsOnASingleLine: false, ColumnLimit: 0, ContinuationIndentWidth: 8, SpaceAfterCStyleCast: true, IndentCaseLabels: false, AllowShortBlocksOnASingleLine: false, AllowShortFunctionsOnASingleLine: false, SortIncludes: false}" $(C) $(H)
|
||||||
|
|||||||
Reference in New Issue
Block a user