YSFClients/YSFGateway/Makefile

27 lines
701 B
Makefile
Raw Normal View History

2016-05-27 18:55:44 +02:00
CC = gcc
CXX = g++
2020-06-21 18:38:34 +02:00
# Use the following CFLAGS if you don't want to use gpsd.
2016-06-06 20:29:23 +02:00
CFLAGS = -g -O3 -Wall -std=c++0x -pthread
2020-06-21 18:38:34 +02:00
# Use the following CFLAGS if you do want to use gpsd.
CFLAGS = -g -O3 -Wall -DUSE_GPSD -std=c++0x -pthread
2020-06-03 13:41:00 +02:00
LIBS = -lm -lpthread -lgps
2016-05-27 18:55:44 +02:00
LDFLAGS = -g
2020-06-01 13:03:34 +02: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 13:41:00 +02:00
UDPSocket.o Utils.o WiresX.o YSFConvolution.o YSFFICH.o YSFGateway.o YSFNetwork.o YSFPayload.o YSFReflectors.o
2016-05-27 18:55:44 +02:00
2016-06-06 20:29:23 +02:00
all: YSFGateway
2016-05-27 18:55:44 +02:00
2016-06-06 20:29:23 +02:00
YSFGateway: $(OBJECTS)
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o YSFGateway
2016-05-27 18:55:44 +02:00
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
clean:
2016-06-06 20:29:23 +02:00
$(RM) YSFGateway *.o *.d *.bak *~
2020-06-03 13:41:00 +02:00