mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2026-02-02 13:24:20 +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
24 lines
663 B
Plaintext
24 lines
663 B
Plaintext
OBJECTS = TimeServerApp.o TimeServerAnnouncementsSet.o TimeServerConfig.o TimeServerFrame.o TimeServerGatewaySet.o TimeServerLogRedirect.o \
|
|
TimeServerPreferences.o TimeServerThread.o TimeServerThreadHelper.o
|
|
|
|
.PHONY: all
|
|
all: timeserver
|
|
|
|
timeserver: $(OBJECTS)
|
|
$(CXX) $(OBJECTS) ../GUICommon/GUICommon.a ../Common/Common.a $(LDFLAGS) $(GUILIBS) -o timeserver
|
|
|
|
-include $(OBJECTS:.o=.d)
|
|
|
|
%.o: %.cpp
|
|
$(CXX) $(CFLAGS) -I../Common -I../GUICommon -c -o $@ $<
|
|
$(CXX) -MM $(CFLAGS) -I../Common -I../GUICommon $< > $*.d
|
|
|
|
.PHONY: install
|
|
install:
|
|
install -g bin -o root -m 0775 timeserver $(BINDIR)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(RM) timeserver *.o *.d *.bak *~
|
|
|