Update Makefile sgs->sgs-xl

feature/IndividualCalls
Geoffrey Merck 6 years ago
parent 182468c6c7
commit 936128150b

@ -1,6 +1,6 @@
# Copyright (c) 2017 by Thomas A. Early N7TAE # Copyright (c) 2017 by Thomas A. Early N7TAE
# if you change these locations, make sure the sgs.service file is updated! # if you change these locations, make sure the sgs-xl.service file is updated!
BINDIR=/usr/local/bin BINDIR=/usr/local/bin
CFGDIR=/usr/local/etc CFGDIR=/usr/local/etc
@ -13,8 +13,8 @@ SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:.cpp=.o) OBJS = $(SRCS:.cpp=.o)
DEPS = $(SRCS:.cpp=.d) DEPS = $(SRCS:.cpp=.d)
sgs : GitVersion.h $(OBJS) sgs-xl : GitVersion.h $(OBJS)
g++ $(CPPFLAGS) -o sgs $(OBJS) -lconfig++ -pthread g++ $(CPPFLAGS) -o sgs-xl $(OBJS) -lconfig++ -pthread
%.o : %.cpp %.o : %.cpp
g++ $(CPPFLAGS) -MMD -MD -c $< -o $@ g++ $(CPPFLAGS) -MMD -MD -c $< -o $@
@ -22,7 +22,7 @@ sgs : GitVersion.h $(OBJS)
.PHONY: clean .PHONY: clean
clean: clean:
$(RM) GitVersion.h $(OBJS) $(DEPS) sgs $(RM) GitVersion.h $(OBJS) $(DEPS) sgs-xl
-include $(DEPS) -include $(DEPS)
@ -31,21 +31,21 @@ newhostfiles :
/usr/bin/wget http://www.pistar.uk/downloads/DExtra_Hosts.txt && sudo /bin/mv -f DExtra_Hosts.txt $(CFGDIR) /usr/bin/wget http://www.pistar.uk/downloads/DExtra_Hosts.txt && sudo /bin/mv -f DExtra_Hosts.txt $(CFGDIR)
/usr/bin/wget http://www.pistar.uk/downloads/DCS_Hosts.txt && sudo /bin/mv -f DCS_Hosts.txt $(CFGDIR) /usr/bin/wget http://www.pistar.uk/downloads/DCS_Hosts.txt && sudo /bin/mv -f DCS_Hosts.txt $(CFGDIR)
install : sgs install : sgs-xl
/bin/cp -f sgs.cfg $(CFGDIR) /bin/cp -f sgs-xl.cfg $(CFGDIR)
/bin/cp -f sgs $(BINDIR) /bin/cp -f sgs-xl $(BINDIR)
/bin/cp -f sgs.service /lib/systemd/system /bin/cp -f sgs-xl.service /lib/systemd/system
systemctl enable sgs.service systemctl enable sgs-xl.service
systemctl daemon-reload systemctl daemon-reload
systemctl start sgs.service systemctl start sgs-xl.service
uninstall : uninstall :
systemctl stop sgs.service systemctl stop sgs-xl.service
systemctl disable sgs.service systemctl disable sgs-xl.service
/bin/rm -f /lib/systemd/system/sgs.service /bin/rm -f /lib/systemd/system/sgs-xl.service
systemctl daemon-reload systemctl daemon-reload
/bin/rm -f $(BINDIR)/sgs /bin/rm -f $(BINDIR)/sgs-xl
/bin/rm -f $(CFGDIR)/sgs.cfg /bin/rm -f $(CFGDIR)/sgs-xl.cfg
removehostfiles : removehostfiles :
/bin/rm -f $(CFGDIR)/DExtra_Hosts.txt /bin/rm -f $(CFGDIR)/DExtra_Hosts.txt

Loading…
Cancel
Save

Powered by TurnKey Linux.