Merge pull request #3 from F4FXL/MakefileTweaks
Makefile improvements an dependencies checkspull/6/head
commit
3e939b06f1
@ -1,17 +1,23 @@
|
||||
OBJECTS = DStarRepeaterApp.o DStarRepeaterLogRedirect.o DStarRepeaterRXThread.o DStarRepeaterStatusData.o \
|
||||
DStarRepeaterThread.o DStarRepeaterTRXThread.o DStarRepeaterTXRXThread.o DStarRepeaterTXThread.o
|
||||
|
||||
.PHONY: all
|
||||
all: dstarrepeaterd
|
||||
|
||||
dstarrepeaterd: $(OBJECTS)
|
||||
dstarrepeaterd: $(OBJECTS) ../Common/Common.a
|
||||
$(CXX) $(OBJECTS) ../Common/Common.a $(LDFLAGS) $(LIBS) -o dstarrepeaterd
|
||||
|
||||
-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 dstarrepeaterd $(BINDIR)
|
||||
|
||||
clean:
|
||||
$(RM) dstarrepeaterd *.o *.d *.bak *~
|
||||
|
||||
../Common/Common.a:
|
||||
|
||||
@ -1,13 +1,18 @@
|
||||
OBJECTS = AddressTextCtrl.o CallsignTextCtrl.o MessageTextCtrl.o PortTextCtrl.o RestrictedTextCtrl.o
|
||||
|
||||
.PHONY: all
|
||||
all: GUICommon.a
|
||||
|
||||
GUICommon.a: $(OBJECTS)
|
||||
$(AR) rcs GUICommon.a $(OBJECTS)
|
||||
|
||||
-include $(OBJECTS:.o=.d)
|
||||
|
||||
%.o: %.cpp
|
||||
$(CXX) $(CFLAGS) -c -o $@ $<
|
||||
$(CXX) -MM $(CFLAGS) $< > $*.d
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
$(RM) GUICommon.a *.o *.d *.bak *~
|
||||
|
||||
|
||||
Loading…
Reference in new issue