1
0
Fork 0

Add the install target.

ycs232-kbc
Jonathan Naylor 4 years ago
parent a68ab1b89c
commit ef7268642a

@ -6,8 +6,8 @@ CFLAGS = -g -O3 -Wall -std=c++0x -pthread
LIBS = -lm -lpthread
# Use the following CFLAGS and LIBS if you do want to use gpsd.
CFLAGS = -g -O3 -Wall -DUSE_GPSD -std=c++0x -pthread
LIBS = -lm -lpthread -lgps
#CFLAGS = -g -O3 -Wall -DUSE_GPSD -std=c++0x -pthread
#LIBS = -lm -lpthread -lgps
LDFLAGS = -g
@ -22,6 +22,9 @@ YSFGateway: $(OBJECTS)
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
install:
install -m 755 YSFGateway /usr/local/bin/
clean:
$(RM) YSFGateway *.o *.d *.bak *~

@ -14,6 +14,9 @@ YSFParrot: $(OBJECTS)
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
install:
install -m 755 YSFParrot /usr/local/bin/
clean:
$(RM) YSFParrot *.o *.d *.bak *~

@ -1,19 +0,0 @@
CC = gcc
CXX = g++
CFLAGS = -g -O3 -Wall -std=c++0x -pthread
LIBS = -lsocket -lpthread
LDFLAGS = -g
OBJECTS = Network.o Parrot.o StopWatch.o Thread.o Timer.o UDPSocket.o YSFParrot.o
all: YSFParrot
YSFParrot: $(OBJECTS)
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o YSFParrot
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
clean:
$(RM) YSFParrot *.o *.d *.bak *~

@ -14,6 +14,9 @@ YSFReflector: $(OBJECTS)
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
install:
install -m 755 YSFReflector /usr/local/bin/
clean:
$(RM) YSFReflector *.o *.d *.bak *~

@ -1,19 +0,0 @@
CC = gcc
CXX = g++
CFLAGS = -g -O3 -Wall -std=c++0x -pthread
LIBS = -lsocket -lpthread
LDFLAGS = -g
OBJECTS = Conf.o Log.o Network.o StopWatch.o Thread.o Timer.o UDPSocket.o Utils.o YSFReflector.o
all: YSFReflector
YSFReflector: $(OBJECTS)
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o YSFReflector
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
clean:
$(RM) YSFReflector *.o *.d *.bak *~
Loading…
Cancel
Save