mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-03-24 05:44:41 +01:00
Improve the build process.
This commit is contained in:
parent
a2b30fcc1f
commit
4786d779b5
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -3,6 +3,7 @@ Release
|
|||
x64
|
||||
DMRGateway
|
||||
*.o
|
||||
*.d
|
||||
*.opendb
|
||||
*.bak
|
||||
*.obj
|
||||
|
|
|
|||
16
Makefile
16
Makefile
|
|
@ -2,27 +2,27 @@ CC = cc
|
|||
CXX = c++
|
||||
|
||||
# Use the following CFLAGS and LIBS if you don't want to use gpsd.
|
||||
CFLAGS = -g -O3 -Wall -std=c++0x -pthread
|
||||
CFLAGS = -g -O3 -Wall -std=c++0x -MMD -MD -pthread
|
||||
LIBS = -lpthread -lmosquitto
|
||||
|
||||
# Use the following CFLAGS and LIBS if you do want to use gpsd.
|
||||
#CFLAGS = -g -O3 -Wall -DUSE_GPSD -std=c++0x -pthread
|
||||
#CFLAGS = -g -O3 -Wall -DUSE_GPSD -std=c++0x -MMD -MD -pthread
|
||||
#LIBS = -lpthread -lgps -lmosquitto
|
||||
|
||||
LDFLAGS = -g
|
||||
|
||||
OBJECTS = APRSWriter.o BPTC19696.o Conf.o CRC.o DMRCSBK.o DMRData.o DMRDataHeader.o DMREmbeddedData.o DMREMB.o DMRFullLC.o DMRGateway.o \
|
||||
DMRLC.o DMRNetwork.o DMRSlotType.o DynVoice.o Golay2087.o GPSD.o Hamming.o Log.o MMDVMNetwork.o MQTTConnection.o PassAllPC.o \
|
||||
PassAllTG.o QR1676.o Reflectors.o RemoteControl.o Rewrite.o RewriteDstId.o RewriteDynTGNet.o RewriteDynTGRF.o RewritePC.o \
|
||||
RewriteSrc.o RewriteSrcId.o RewriteTG.o RewriteType.o RS129.o SHA256.o StopWatch.o Sync.o Thread.o Timer.o UDPSocket.o Utils.o XLXVoice.o
|
||||
SRCS = $(wildcard *.cpp)
|
||||
OBJS = $(SRCS:.cpp=.o)
|
||||
DEPS = $(SRCS:.cpp=.d)
|
||||
|
||||
all: DMRGateway
|
||||
|
||||
DMRGateway: GitVersion.h $(OBJECTS)
|
||||
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o DMRGateway
|
||||
DMRGateway: GitVersion.h $(OBJS)
|
||||
$(CXX) $(OBJS) $(CFLAGS) $(LIBS) -o DMRGateway
|
||||
|
||||
%.o: %.cpp
|
||||
$(CXX) $(CFLAGS) -c -o $@ $<
|
||||
-include $(DEPS)
|
||||
|
||||
DMRGateway.o: GitVersion.h FORCE
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue