MMDVM_CM/P252DMR/Makefile

23 lines
757 B
Makefile
Raw Normal View History

2020-06-14 11:49:11 -04:00
CC ?= gcc
CXX ?= g++
CFLAGS ?= -g -O3 -Wall -std=c++0x -pthread
LIBS = -lm -lpthread -limbe_vocoder -lmd380_vocoder
LDFLAGS ?= -g
OBJECTS = BPTC19696.o Conf.o CRC.o DelayBuffer.o DMRData.o DMREMB.o DMREmbeddedData.o \
DMRFullLC.o DMRLC.o DMRLookup.o DMRNetwork.o DMRSlotType.o P25Network.o Golay2087.o \
Golay24128.o Hamming.o Log.o ModeConv.o Mutex.o QR1676.o Reflectors.o RS129.o \
2020-06-15 16:34:06 -04:00
SHA256.o StopWatch.o Sync.o Thread.o Timer.o UDPSocket.o Utils.o MBEVocoder.o P252DMR.o
2020-06-14 11:49:11 -04:00
all: P252DMR
P252DMR: $(OBJECTS)
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o P252DMR -Xlinker --section-start=.firmware=0x0800C000 -Xlinker --section-start=.sram=0x20000000
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
clean:
$(RM) P252DMR *.o *.d *.bak *~