#17 Add DGWRemoteControl
parent
46d00ede09
commit
fbe9fdaa9b
@ -0,0 +1,27 @@
|
|||||||
|
SRCS = $(wildcard *.cpp)
|
||||||
|
OBJS = $(SRCS:.cpp=.o)
|
||||||
|
DEPS = $(SRCS:.cpp=.d)
|
||||||
|
|
||||||
|
dgwremotecontrol: ../VersionInfo/GitVersion.h $(OBJS) ../DStarBase/DStarBase.a ../BaseCommon/BaseCommon.a
|
||||||
|
$(CC) $(CPPFLAGS) -o dgwremotecontrol $(OBJS) ../DStarBase/DStarBase.a ../BaseCommon/BaseCommon.a $(LDFLAGS)
|
||||||
|
|
||||||
|
%.o : %.cpp
|
||||||
|
$(CC) -I../APRS -I../Common -I../BaseCommon -I../DStarBase -I../IRCDDB -I../VersionInfo $(CPPFLAGS) -MMD -MD -c $< -o $@
|
||||||
|
|
||||||
|
.PHONY clean:
|
||||||
|
clean:
|
||||||
|
$(RM) *.o *.d dgwremotecontrol.a
|
||||||
|
|
||||||
|
.PHONY install:
|
||||||
|
install: dgwremotecontrol
|
||||||
|
# copy executable
|
||||||
|
@cp -f dgwremotecontrol $(BIN_DIR)
|
||||||
|
|
||||||
|
# copy and adjust config
|
||||||
|
@cp -fn example.cfg $(CFG_DIR)/dgwremotecontrol.cfg
|
||||||
|
@sed -i "s|path=/var/log/dgwremotecontrol/|path=$(LOG_DIR)|g" $(CFG_DIR)/dgwremotecontrol.cfg
|
||||||
|
@sed -i "s|data=/usr/local/share/dgwremotecontrol.d/|data=$(DATA_DIR)|g" $(CFG_DIR)/dgwremotecontrol.cfg
|
||||||
|
|
||||||
|
../BaseCommon/BaseCommon.a:
|
||||||
|
../DStarBase/DStarBase.a:
|
||||||
|
../VersionInfo/GitVersion.h:
|
||||||
Loading…
Reference in new issue