ircDDBGateway/TimerControl/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

26 lines
647 B
Makefile

OBJECTS = TimerControlAppD.o TimerControlConfig.o TimerControlItemFile.o TimerControlRemoteControlHandler.o TimerControlThread.o \
TimerControlThreadHelper.o
.PHONY: all
all: timercontrold
timercontrold: $(OBJECTS) ../Common/Common.a
$(CXX) $(OBJECTS) ../Common/Common.a $(LDFLAGS) $(LIBS) -o timercontrold
-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 timercontrold $(DESTDIR)$(BINDIR)
.PHONY: clean
clean:
$(RM) timercontrold *.o *.d *.bak *~
../Common/Common.a: