mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2025-12-06 05:32:02 +01:00
Setting DESTDIR on `make install` allows for installing artefacts in staging location for automated build, packaging etc.
24 lines
562 B
Makefile
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:
|