YSFClients/YSFGateway/Makefile

31 lines
799 B
Makefile
Raw Normal View History

2016-05-27 17:55:44 +01:00
CC = gcc
CXX = g++
2020-06-21 17:38:34 +01:00
2020-06-21 17:45:37 +01:00
# Use the following CFLAGS and LIBS if you don't want to use gpsd.
2016-06-06 19:29:23 +01:00
CFLAGS = -g -O3 -Wall -std=c++0x -pthread
2020-06-21 17:45:37 +01:00
LIBS = -lm -lpthread
2020-06-21 17:38:34 +01:00
2020-06-21 17:45:37 +01:00
# Use the following CFLAGS and LIBS if you do want to use gpsd.
2020-06-25 10:12:38 +01:00
#CFLAGS = -g -O3 -Wall -DUSE_GPSD -std=c++0x -pthread
#LIBS = -lm -lpthread -lgps
2020-06-21 17:45:37 +01:00
2016-05-27 17:55:44 +01:00
LDFLAGS = -g
2020-06-01 12:03:34 +01:00
OBJECTS = APRSWriter.o Conf.o CRC.o DTMF.o FCSNetwork.o Golay24128.o GPS.o Log.o StopWatch.o Sync.o Thread.o Timer.o \
2020-06-03 12:41:00 +01:00
UDPSocket.o Utils.o WiresX.o YSFConvolution.o YSFFICH.o YSFGateway.o YSFNetwork.o YSFPayload.o YSFReflectors.o
2016-05-27 17:55:44 +01:00
2016-06-06 19:29:23 +01:00
all: YSFGateway
2016-05-27 17:55:44 +01:00
2016-06-06 19:29:23 +01:00
YSFGateway: $(OBJECTS)
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o YSFGateway
2016-05-27 17:55:44 +01:00
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
2020-06-25 10:12:38 +01:00
install:
install -m 755 YSFGateway /usr/local/bin/
2016-05-27 17:55:44 +01:00
clean:
2016-06-06 19:29:23 +01:00
$(RM) YSFGateway *.o *.d *.bak *~
2020-06-03 12:41:00 +01:00