mirror of
https://github.com/ShaYmez/MMDVM_CM.git
synced 2024-11-15 20:51:49 -05:00
26 lines
808 B
Makefile
26 lines
808 B
Makefile
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 \
|
|
SHA256.o StopWatch.o Sync.o Thread.o Timer.o UDPSocket.o Utils.o MBEVocoder.o P252DMR.o
|
|
|
|
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 $@ $<
|
|
|
|
install:
|
|
install -m 755 P252DMR /usr/local/bin/
|
|
|
|
clean:
|
|
$(RM) P252DMR *.o *.d *.bak *~
|
|
|