makefile: allow override of install paths

This commit is contained in:
Philippe Teuwen 2019-08-23 21:07:20 +02:00
commit e0cdb5d7a7
2 changed files with 12 additions and 0 deletions

View file

@ -15,6 +15,12 @@ FALSE = false
CFLAGS ?= -Wall -Werror -O3
CFLAGS += $(MYDEFS) $(MYCFLAGS) $(MYINCLUDES)
ifneq (,$(PM3_BIN_PATH))
CFLAGS += -DPM3_BIN_PATH=\"$(PM3_BIN_PATH)\"
endif
ifneq (,$(PM3_SHARE_PATH))
CFLAGS += -DPM3_SHARE_PATH=\"$(PM3_SHARE_PATH)\"
endif
platform = $(shell uname)