ircDDBGateway/TimeServer/Makefile
Adam Kolakowski 41e01d4f34 Adds DESTDIR build variable
Setting DESTDIR on `make install` allows for installing artefacts
in staging location for automated build, packaging etc.
2020-05-28 23:13:19 +02:00

24 lines
562 B
Makefile

OBJECTS = TimeServerD.o TimeServerConfig.o TimeServerThread.o TimeServerThreadHelper.o
.PHONY: all
all: timeserverd
timeserverd: $(OBJECTS) ../Common/Common.a
$(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 root -o root -m 0755 timeserverd $(DESTDIR)$(BINDIR)
.PHONY: clean
clean:
$(RM) timeserverd *.o *.d *.bak *~
../Common/Common.a: