Add the install target.

This commit is contained in:
Jonathan Naylor 2020-06-25 10:09:06 +01:00
parent b866d44804
commit 3c708b5b75
6 changed files with 9 additions and 55 deletions

View File

@ -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 *~

View File

@ -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 *~

View File

@ -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 *~

View File

@ -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 *~

View File

@ -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 *~

View File

@ -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 *~