2020-09-06 13:45:06 +01:00
|
|
|
CC = cc
|
|
|
|
CXX = c++
|
2020-06-21 17:43:31 +01:00
|
|
|
|
2020-06-21 17:45:02 +01:00
|
|
|
# Use the following CFLAGS and LIBS if you don't want to use gpsd.
|
2020-11-04 12:09:04 +00:00
|
|
|
CFLAGS = -g -O3 -Wall -DHAVE_LOG_H -DUDP_SOCKET_MAX=2 -std=c++0x -pthread
|
2020-06-21 17:45:02 +01:00
|
|
|
LIBS = -lpthread
|
2020-06-21 17:43:31 +01:00
|
|
|
|
2020-06-21 17:45:02 +01:00
|
|
|
# Use the following CFLAGS and LIBS if you do want to use gpsd.
|
2020-11-05 07:43:30 +01:00
|
|
|
#CFLAGS = -g -O3 -Wall -DHAVE_LOG_H -DUDP_SOCKET_MAX=2 -DUSE_GPSD -std=c++0x -pthread
|
2020-06-21 17:52:16 +01:00
|
|
|
#LIBS = -lpthread -lgps
|
2020-06-21 17:45:02 +01:00
|
|
|
|
2018-03-13 22:16:48 +00:00
|
|
|
LDFLAGS = -g
|
|
|
|
|
2020-06-01 11:35:02 +01:00
|
|
|
OBJECTS = APRSWriter.o Conf.o GPSHandler.o IcomNetwork.o KenwoodNetwork.o Log.o Mutex.o NXDNCRC.o NXDNGateway.o NXDNLookup.o NXDNNetwork.o \
|
2020-06-03 12:24:29 +01:00
|
|
|
Reflectors.o RptNetwork.o StopWatch.o Thread.o Timer.o UDPSocket.o Utils.o Voice.o
|
2018-03-13 22:16:48 +00:00
|
|
|
|
|
|
|
all: NXDNGateway
|
|
|
|
|
|
|
|
NXDNGateway: $(OBJECTS)
|
|
|
|
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o NXDNGateway
|
|
|
|
|
|
|
|
%.o: %.cpp
|
|
|
|
$(CXX) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
2020-06-25 10:05:38 +01:00
|
|
|
install:
|
|
|
|
install -m 755 NXDNGateway /usr/local/bin/
|
|
|
|
|
2018-03-13 22:16:48 +00:00
|
|
|
clean:
|
|
|
|
$(RM) NXDNGateway *.o *.d *.bak *~
|
2020-06-01 11:35:02 +01:00
|
|
|
|