mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2026-01-03 06:59:56 +01:00
Generate dependency files so that when changing one file only stuff dependant on that file gets rebuilt. Avoid cleaning the whole thing on every small change
23 lines
512 B
Makefile
23 lines
512 B
Makefile
OBJECTS = TimeServerD.o TimeServerConfig.o TimeServerThread.o TimeServerThreadHelper.o
|
|
|
|
.PHONY: all
|
|
all: timeserverd
|
|
|
|
timeserverd: $(OBJECTS)
|
|
$(CXX) $(OBJECTS) ../Common/Common.a $(LDFLAGS) $(LIBS) -o timeserverd
|
|
|
|
-include $(OBJECTS:.o=.d)
|
|
|
|
%.o: %.cpp
|
|
$(CXX) -DwxUSE_GUI=0 $(CFLAGS) -I../Common -c -o $@ $<
|
|
$(CXX) -MM -DwxUSE_GUI=0 $(CFLAGS) -I../Common $< > $*.d
|
|
|
|
.PHONY: install
|
|
install:
|
|
install -g bin -o root -m 0775 timeserverd $(BINDIR)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(RM) timeserverd *.o *.d *.bak *~
|
|
|