summaryrefslogtreecommitdiff
path: root/libloragw/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libloragw/Makefile')
-rw-r--r--libloragw/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/libloragw/Makefile b/libloragw/Makefile
index 4575bdc..7e95eca 100644
--- a/libloragw/Makefile
+++ b/libloragw/Makefile
@@ -1,6 +1,6 @@
### get external defined data
-LIBLORAGW_VERSION := `cat ../VERSION`
+LIBLORAGW_VERSION := $(shell git describe)
include library.cfg
### constant symbols
@@ -10,7 +10,7 @@ CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
AR := $(CROSS_COMPILE)ar
-CFLAGS := -O2 -Wall -Wextra -std=c99 -Iinc -I. -isystem =/usr/include/gps
+CFLAGS := -O2 -Wall -Wextra -std=c99 -Iinc -I. -isystem =/usr/include/gps -DLIBLORAGW_VERSION=\"$(LIBLORAGW_VERSION)\"
OBJDIR = obj
INCLUDES = $(wildcard inc/*.h)
@@ -31,7 +31,7 @@ clean:
### transpose library.cfg into a C header file : config.h
-inc/config.h: ../VERSION library.cfg
+inc/config.h: library.cfg
@echo "*** Checking libloragw library configuration ***"
@rm -f $@
#File initialization