Only build command line D-Star Repeater on Linux.

pull/1/head
Jonathan Naylor 8 years ago
parent 4507618fe1
commit 85fd6de82c

@ -13,7 +13,7 @@ Common.a: $(OBJECTS)
$(AR) rcs Common.a $(OBJECTS)
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
$(CXX) -DwxUSE_GUI=0 $(CFLAGS) -c -o $@ $<
clean:
$(RM) Common.a *.o *.d *.bak *~

@ -305,8 +305,7 @@ void CDStarRepeaterApp::setPosition(int x, int y)
void CDStarRepeaterApp::OnRemoteCmd(wxThreadEvent& event)
{
wxLogMessage("Request to execute command %s (%d)",
m_commandLine[event.GetInt()], event.GetInt());
wxLogMessage("Request to execute command %s (%d)", m_commandLine[event.GetInt()], event.GetInt());
// XXX sanity check the command line here.
wxShell(m_commandLine[event.GetInt()]);
}
@ -646,7 +645,7 @@ void CDStarRepeaterApp::createThread()
#if defined(__WINDOWS__)
wxFileName blFilename(wxFileName::GetHomeDir(), PRIMARY_BLACKLIST_FILE_NAME);
#else
wxFileName blFilename(CONF_DIR, PRIMARY_BLACKLIST_FILE_NAME);
wxFileName blFilename(CONF_DIR, PRIMARY_BLACKLIST_FILE_NAME);
#endif
exists = blFilename.FileExists();

@ -1,17 +1,17 @@
OBJECTS = DStarRepeaterApp.o DStarRepeaterFrame.o DStarRepeaterLogger.o DStarRepeaterRXThread.o DStarRepeaterStatusData.o \
OBJECTS = DStarRepeaterApp.o DStarRepeaterLogger.o DStarRepeaterRXThread.o DStarRepeaterStatusData.o \
DStarRepeaterThread.o DStarRepeaterTRXThread.o DStarRepeaterTXRXThread.o DStarRepeaterTXThread.o
all: dstarrepeater
dstarrepeater: $(OBJECTS)
$(CXX) $(OBJECTS) ../Common/Common.a $(LDFLAGS) $(LIBS) -o dstarrepeater
$(CXX) $(OBJECTS) ../Common/Common.a $(LDFLAGS) $(LIBS) -o dstarrepeaterd
%.o: %.cpp
$(CXX) $(CFLAGS) -I../Common -c -o $@ $<
$(CXX) -DwxUSE_GUI=0 $(CFLAGS) -I../Common -c -o $@ $<
install:
install -g bin -o root -m 0775 dstarrepeater $(BINDIR)
install -g bin -o root -m 0775 dstarrepeaterd $(BINDIR)
clean:
$(RM) dstarrepeater *.o *.d *.bak *~
$(RM) dstarrepeaterd *.o *.d *.bak *~

@ -8,7 +8,7 @@ OBJECTS = DStarRepeaterConfigActiveHangSet.o DStarRepeaterConfigAnnouncementSet.
all: dstarrepeaterconfig
dstarrepeaterconfig: $(OBJECTS)
$(CXX) $(OBJECTS) ../GUICommon/GUICommon.a ../Common/Common.a $(LDFLAGS) $(LIBS) -o dstarrepeaterconfig
$(CXX) $(OBJECTS) ../GUICommon/GUICommon.a ../Common/Common.a $(LDFLAGS) $(GUILIBS) -o dstarrepeaterconfig
%.o: %.cpp
$(CXX) $(CFLAGS) -I../GUICommon -I../Common -c -o $@ $<

@ -5,7 +5,8 @@ export BINDIR := "/usr/bin"
export CXX := $(shell wx-config --cxx)
export CFLAGS := -O2 -Wall $(shell wx-config --cxxflags) -DLOG_DIR='$(LOGDIR)' -DCONF_DIR='$(CONFDIR)' -DDATA_DIR='$(DATADIR)'
export LIBS := $(shell wx-config --libs adv,core) -lasound -lusb-1.0
export GUILIBS := $(shell wx-config --libs adv,core,base) -lasound
export LIBS := $(shell wx-config --libs base) -lasound -lusb-1.0
export LDFLAGS :=
all: DStarRepeater/dstarrepeater DStarRepeaterConfig/dstarrepeaterconfig

Loading…
Cancel
Save

Powered by TurnKey Linux.