NXDNClients/NXDNGateway/Makefile

31 lines
815 B
Makefile
Raw Normal View History

2020-09-06 08:45:06 -04:00
CC = cc
CXX = c++
2020-06-21 12:43:31 -04:00
2020-06-21 12:45:02 -04:00
# Use the following CFLAGS and LIBS if you don't want to use gpsd.
2024-01-29 11:17:53 -05:00
CFLAGS = -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread
2020-06-21 12:45:02 -04:00
LIBS = -lpthread
2020-06-21 12:43:31 -04:00
2020-06-21 12:45:02 -04:00
# Use the following CFLAGS and LIBS if you do want to use gpsd.
2024-01-29 11:17:53 -05:00
#CFLAGS = -g -O3 -Wall -DHAVE_LOG_H -DUSE_GPSD -std=c++0x -pthread
2020-06-21 12:52:16 -04:00
#LIBS = -lpthread -lgps
2020-06-21 12:45:02 -04:00
2018-03-13 18:16:48 -04:00
LDFLAGS = -g
2020-06-01 06:35:02 -04: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 07:24:29 -04:00
Reflectors.o RptNetwork.o StopWatch.o Thread.o Timer.o UDPSocket.o Utils.o Voice.o
2018-03-13 18:16:48 -04:00
all: NXDNGateway
NXDNGateway: $(OBJECTS)
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o NXDNGateway
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
2020-06-25 05:05:38 -04:00
install:
install -m 755 NXDNGateway /usr/local/bin/
2018-03-13 18:16:48 -04:00
clean:
$(RM) NXDNGateway *.o *.d *.bak *~
2020-06-01 06:35:02 -04:00