2018-09-19 22:05:28 +02:00
|
|
|
OBJECTS = TimeServerApp.o TimeServerAnnouncementsSet.o TimeServerConfig.o TimeServerFrame.o TimeServerGatewaySet.o TimeServerLogRedirect.o \
|
|
|
|
|
TimeServerPreferences.o TimeServerThread.o TimeServerThreadHelper.o
|
|
|
|
|
|
2018-11-11 17:13:17 +01:00
|
|
|
.PHONY: all
|
2018-09-19 22:05:28 +02:00
|
|
|
all: timeserver
|
|
|
|
|
|
2018-11-11 18:35:30 +01:00
|
|
|
timeserver: $(OBJECTS) ../GUICommon/GUICommon.a ../Common/Common.a
|
2018-09-19 22:05:28 +02:00
|
|
|
$(CXX) $(OBJECTS) ../GUICommon/GUICommon.a ../Common/Common.a $(LDFLAGS) $(GUILIBS) -o timeserver
|
|
|
|
|
|
2018-11-11 17:13:17 +01:00
|
|
|
-include $(OBJECTS:.o=.d)
|
|
|
|
|
|
2018-09-19 22:05:28 +02:00
|
|
|
%.o: %.cpp
|
|
|
|
|
$(CXX) $(CFLAGS) -I../Common -I../GUICommon -c -o $@ $<
|
2018-11-11 17:13:17 +01:00
|
|
|
$(CXX) -MM $(CFLAGS) -I../Common -I../GUICommon $< > $*.d
|
2018-09-19 22:05:28 +02:00
|
|
|
|
2018-11-11 17:13:17 +01:00
|
|
|
.PHONY: install
|
2018-09-19 22:05:28 +02:00
|
|
|
install:
|
|
|
|
|
install -g bin -o root -m 0775 timeserver $(BINDIR)
|
|
|
|
|
|
2018-11-11 17:13:17 +01:00
|
|
|
.PHONY: clean
|
2018-09-19 22:05:28 +02:00
|
|
|
clean:
|
|
|
|
|
$(RM) timeserver *.o *.d *.bak *~
|
|
|
|
|
|
2018-11-11 18:35:30 +01:00
|
|
|
../GUICommon/GUICommon.a:
|
|
|
|
|
../Common/Common.a:
|