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 \
|
OBJECTS = DStarRepeaterApp.o DStarRepeaterLogRedirect.o DStarRepeaterRXThread.o DStarRepeaterStatusData.o \
|
||||||
DStarRepeaterThread.o DStarRepeaterTRXThread.o DStarRepeaterTXRXThread.o DStarRepeaterTXThread.o
|
DStarRepeaterThread.o DStarRepeaterTRXThread.o DStarRepeaterTXRXThread.o DStarRepeaterTXThread.o
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
all: dstarrepeaterd
|
all: dstarrepeaterd
|
||||||
|
|
||||||
dstarrepeaterd: $(OBJECTS)
|
dstarrepeaterd: $(OBJECTS) ../Common/Common.a
|
||||||
$(CXX) $(OBJECTS) ../Common/Common.a $(LDFLAGS) $(LIBS) -o dstarrepeaterd
|
$(CXX) $(OBJECTS) ../Common/Common.a $(LDFLAGS) $(LIBS) -o dstarrepeaterd
|
||||||
|
|
||||||
|
-include $(OBJECTS:.o=.d)
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CXX) -DwxUSE_GUI=0 $(CFLAGS) -I../Common -c -o $@ $<
|
$(CXX) -DwxUSE_GUI=0 $(CFLAGS) -I../Common -c -o $@ $<
|
||||||
|
$(CXX) -MM -DwxUSE_GUI=0 $(CFLAGS) -I../Common $< > $*.d
|
||||||
|
|
||||||
|
.PHONY: install
|
||||||
install:
|
install:
|
||||||
install -g bin -o root -m 0775 dstarrepeaterd $(BINDIR)
|
install -g bin -o root -m 0775 dstarrepeaterd $(BINDIR)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) dstarrepeaterd *.o *.d *.bak *~
|
$(RM) dstarrepeaterd *.o *.d *.bak *~
|
||||||
|
|
||||||
|
../Common/Common.a:
|
||||||
|
|||||||
@ -1,13 +1,18 @@
|
|||||||
OBJECTS = AddressTextCtrl.o CallsignTextCtrl.o MessageTextCtrl.o PortTextCtrl.o RestrictedTextCtrl.o
|
OBJECTS = AddressTextCtrl.o CallsignTextCtrl.o MessageTextCtrl.o PortTextCtrl.o RestrictedTextCtrl.o
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
all: GUICommon.a
|
all: GUICommon.a
|
||||||
|
|
||||||
GUICommon.a: $(OBJECTS)
|
GUICommon.a: $(OBJECTS)
|
||||||
$(AR) rcs GUICommon.a $(OBJECTS)
|
$(AR) rcs GUICommon.a $(OBJECTS)
|
||||||
|
|
||||||
|
-include $(OBJECTS:.o=.d)
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CXX) $(CFLAGS) -c -o $@ $<
|
$(CXX) $(CFLAGS) -c -o $@ $<
|
||||||
|
$(CXX) -MM $(CFLAGS) $< > $*.d
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
$(RM) GUICommon.a *.o *.d *.bak *~
|
$(RM) GUICommon.a *.o *.d *.bak *~
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in new issue