mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2026-04-04 22:07:43 +00:00
Add generation of dependency files
Generate dependency files so that when changing one file only stuff dependant on that file gets rebuilt. Avoid cleaning the whole thing on every small change
This commit is contained in:
parent
86744087a4
commit
e66484340b
18 changed files with 100 additions and 0 deletions
|
|
@ -1,17 +1,23 @@
|
|||
OBJECTS = TimerControlAppD.o TimerControlConfig.o TimerControlItemFile.o TimerControlRemoteControlHandler.o TimerControlThread.o \
|
||||
TimerControlThreadHelper.o
|
||||
|
||||
.PHONY: all
|
||||
all: timercontrold
|
||||
|
||||
timercontrold: $(OBJECTS)
|
||||
$(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 bin -o root -m 0775 timercontrold $(BINDIR)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
$(RM) timercontrold *.o *.d *.bak *~
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue