MMDVM_CM/YSF2P25/Makefile

22 lines
526 B
Makefile
Raw Normal View History

2018-11-28 04:27:31 -05:00
CC ?= gcc
CXX ?= g++
CFLAGS ?= -g -O3 -Wall -std=c++0x -pthread
2018-05-28 11:02:35 -04:00
LIBS = -lm -lpthread
2018-11-28 04:27:31 -05:00
LDFLAGS ?= -g
2018-05-28 11:02:35 -04:00
OBJECTS = Conf.o CRC.o DMRLookup.o DTMF.o Golay24128.o Hamming.o Log.o ModeConv.o Mutex.o \
P25Network.o StopWatch.o Sync.o Thread.o Timer.o UDPSocket.o Utils.o WiresX.o \
YSF2P25.o YSFConvolution.o YSFFICH.o YSFNetwork.o YSFPayload.o
all: YSF2P25
YSF2P25: $(OBJECTS)
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o YSF2P25
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
clean:
$(RM) YSF2P25 *.o *.d *.bak *~