#24 Make Drats a build option

pull/32/head
Geoffrey Merck 4 years ago
parent e442acadc7
commit 948e0889ed

@ -11,6 +11,7 @@
"-j3", "-j3",
"ENABLE_DEBUG=1", "ENABLE_DEBUG=1",
"USE_GPSD=1", "USE_GPSD=1",
"USE_DRATS=1",
"all" "all"
], ],
"group": "build", "group": "build",

@ -240,9 +240,11 @@ bool CDStarGatewayApp::createThread()
delete restrictList; delete restrictList;
} }
#ifdef USE_DRATS
// Drats // Drats
TDRats drats; TDRats drats;
m_config->getDRats(drats); m_config->getDRats(drats);
#endif
// Setup the repeaters // Setup the repeaters
bool ddEnabled = false; bool ddEnabled = false;

@ -38,7 +38,9 @@ export CPPFLAGS+= -DUSE_GPSD
export LDFLAGS+= -lgps export LDFLAGS+= -lgps
endif endif
ifeq ($(USE_DRATS), 1)
export CPPFLAGS+= -DUSE_DRATS export CPPFLAGS+= -DUSE_DRATS
endif
.PHONY: all .PHONY: all
all: DStarGateway/dstargateway DGWRemoteControl/dgwremotecontrol DGWTextTransmit/dgwtexttransmit DGWTimeServer/dgwtimeserver DGWVoiceTransmit/dgwvoicetransmit #tests all: DStarGateway/dstargateway DGWRemoteControl/dgwremotecontrol DGWTextTransmit/dgwtexttransmit DGWTimeServer/dgwtimeserver DGWVoiceTransmit/dgwvoicetransmit #tests

Loading…
Cancel
Save

Powered by TurnKey Linux.