From 3c708b5b757159719e033eda46ab9c70d5c6f581 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Thu, 25 Jun 2020 10:09:06 +0100 Subject: [PATCH] Add the install target. --- P25Gateway/Makefile | 3 +++ P25Gateway/Makefile.Solaris | 18 ------------------ P25Parrot/Makefile | 3 +++ P25Parrot/Makefile.Solaris | 18 ------------------ P25Reflector/Makefile | 3 +++ P25Reflector/Makefile.Solaris | 19 ------------------- 6 files changed, 9 insertions(+), 55 deletions(-) delete mode 100644 P25Gateway/Makefile.Solaris delete mode 100644 P25Parrot/Makefile.Solaris delete mode 100644 P25Reflector/Makefile.Solaris diff --git a/P25Gateway/Makefile b/P25Gateway/Makefile index d5c5c67..470d2ce 100644 --- a/P25Gateway/Makefile +++ b/P25Gateway/Makefile @@ -14,6 +14,9 @@ P25Gateway: $(OBJECTS) %.o: %.cpp $(CXX) $(CFLAGS) -c -o $@ $< +install: + install -m 755 P25Gateway /usr/local/bin/ + clean: $(RM) P25Gateway *.o *.d *.bak *~ \ No newline at end of file diff --git a/P25Gateway/Makefile.Solaris b/P25Gateway/Makefile.Solaris deleted file mode 100644 index e5851f7..0000000 --- a/P25Gateway/Makefile.Solaris +++ /dev/null @@ -1,18 +0,0 @@ -CC = gcc -CXX = g++ -CFLAGS = -g -O3 -Wall -std=c++0x -pthread -LIBS = -lsocket -lpthread -LDFLAGS = -g - -OBJECTS = Conf.o DMRLookup.o Log.o Mutex.o Network.o P25Gateway.o Reflectors.o StopWatch.o Thread.o Timer.o UDPSocket.o Utils.o Voice.o - -all: P25Gateway - -P25Gateway: $(OBJECTS) - $(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o P25Gateway - -%.o: %.cpp - $(CXX) $(CFLAGS) -c -o $@ $< - -clean: - $(RM) P25Gateway *.o *.d *.bak *~ diff --git a/P25Parrot/Makefile b/P25Parrot/Makefile index 843f0e0..cb5430e 100644 --- a/P25Parrot/Makefile +++ b/P25Parrot/Makefile @@ -14,5 +14,8 @@ P25Parrot: $(OBJECTS) %.o: %.cpp $(CXX) $(CFLAGS) -c -o $@ $< +install: + install -m 755 P25Parrot /usr/local/bin/ + clean: $(RM) P25Parrot *.o *.d *.bak *~ diff --git a/P25Parrot/Makefile.Solaris b/P25Parrot/Makefile.Solaris deleted file mode 100644 index fd49cea..0000000 --- a/P25Parrot/Makefile.Solaris +++ /dev/null @@ -1,18 +0,0 @@ -CC = gcc -CXX = g++ -CFLAGS = -g -O3 -Wall -std=c++0x -pthread -LIBS = -lsocket -lpthread -LDFLAGS = -g - -OBJECTS = Network.o P25Parrot.o Parrot.o StopWatch.o Thread.o Timer.o UDPSocket.o - -all: P25Parrot - -P25Parrot: $(OBJECTS) - $(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o P25Parrot - -%.o: %.cpp - $(CXX) $(CFLAGS) -c -o $@ $< - -clean: - $(RM) P25Parrot *.o *.d *.bak *~ diff --git a/P25Reflector/Makefile b/P25Reflector/Makefile index f296e1f..3fbbde7 100644 --- a/P25Reflector/Makefile +++ b/P25Reflector/Makefile @@ -14,6 +14,9 @@ P25Reflector: $(OBJECTS) %.o: %.cpp $(CXX) $(CFLAGS) -c -o $@ $< +install: + install -m 755 P25Reflector /usr/local/bin/ + clean: $(RM) P25Reflector *.o *.d *.bak *~ \ No newline at end of file diff --git a/P25Reflector/Makefile.Solaris b/P25Reflector/Makefile.Solaris deleted file mode 100644 index d486510..0000000 --- a/P25Reflector/Makefile.Solaris +++ /dev/null @@ -1,19 +0,0 @@ -CC = gcc -CXX = g++ -CFLAGS = -g -O3 -Wall -std=c++0x -pthread -LIBS = -lsocket -lpthread -LDFLAGS = -g - -OBJECTS = Conf.o DMRLookup.o Log.o Mutex.o Network.o P25Reflector.o StopWatch.o Thread.o Timer.o UDPSocket.o Utils.o - -all: P25Reflector - -P25Reflector: $(OBJECTS) - $(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o P25Reflector - -%.o: %.cpp - $(CXX) $(CFLAGS) -c -o $@ $< - -clean: - $(RM) P25Reflector *.o *.d *.bak *~ - \ No newline at end of file