ircDDBGateway/TimeServer/Makefile

24 lines
562 B
Makefile
Raw Permalink Normal View History

OBJECTS = TimeServerD.o TimeServerConfig.o TimeServerThread.o TimeServerThreadHelper.o
2018-05-15 20:32:38 +02:00
.PHONY: all
all: timeserverd
2018-05-15 20:32:38 +02:00
timeserverd: $(OBJECTS) ../Common/Common.a
$(CXX) $(OBJECTS) ../Common/Common.a $(LDFLAGS) $(LIBS) -o timeserverd
2018-05-15 20:32:38 +02:00
-include $(OBJECTS:.o=.d)
2018-05-15 20:32:38 +02:00
%.o: %.cpp
$(CXX) -DwxUSE_GUI=0 $(CFLAGS) -I../Common -c -o $@ $<
$(CXX) -MM -DwxUSE_GUI=0 $(CFLAGS) -I../Common $< > $*.d
2018-05-15 20:32:38 +02:00
.PHONY: install
2018-05-15 22:19:47 +02:00
install:
install -g root -o root -m 0755 timeserverd $(DESTDIR)$(BINDIR)
2018-05-15 22:19:47 +02:00
.PHONY: clean
2018-05-15 20:32:38 +02:00
clean:
$(RM) timeserverd *.o *.d *.bak *~
2018-05-15 20:32:38 +02:00
../Common/Common.a: