Add package installation.

pull/1/head
Jonathan Naylor 8 years ago
parent 69f802e68f
commit 4507618fe1

2
.gitignore vendored

@ -7,4 +7,4 @@ Release
*~
*.bak
.vs
*.a

@ -9,6 +9,9 @@ dstarrepeater: $(OBJECTS)
%.o: %.cpp
$(CXX) $(CFLAGS) -I../Common -c -o $@ $<
install:
install -g bin -o root -m 0775 dstarrepeater $(BINDIR)
clean:
$(RM) dstarrepeater *.o *.d *.bak *~

@ -13,6 +13,9 @@ dstarrepeaterconfig: $(OBJECTS)
%.o: %.cpp
$(CXX) $(CFLAGS) -I../GUICommon -I../Common -c -o $@ $<
install:
install -g bin -o root -m 0775 dstarrepeaterconfig $(BINDIR)
clean:
$(RM) dstarrepeaterconfig *.o *.d *.bak *~

@ -1,11 +1,12 @@
export DATADIR := "/usr/local/etc"
export DATADIR := "/usr/share/dstarrepeater"
export LOGDIR := "/var/log"
export CONFDIR := "/etc"
export BINDIR := "/usr/bin"
export CXX := $(shell wx-config --cxx)
export CFLAGS := -g -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 LDFLAGS := -g
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 LDFLAGS :=
all: DStarRepeater/dstarrepeater DStarRepeaterConfig/dstarrepeaterconfig
@ -21,6 +22,11 @@ GUICommon/GUICommon.a:
Common/Common.a:
make -C Common
install: all
make -C Data install
make -C DStarRepeater install
make -C DStarRepeaterConfig install
clean:
make -C Common clean
make -C GUICommon clean

Loading…
Cancel
Save

Powered by TurnKey Linux.