diff options
author | Jason Reiss <jreiss@multitech.com> | 2019-09-19 08:46:03 -0500 |
---|---|---|
committer | Jason Reiss <jreiss@multitech.com> | 2019-09-19 08:46:03 -0500 |
commit | 124cf5d915aeaaceef412b835a955eca9953ea31 (patch) | |
tree | 395b56849fddd4a51c219e12d67507a690500314 /lora_pkt_fwd/Makefile | |
parent | 48dfa609049df40313262de0c0c3bdb321927789 (diff) | |
download | packet_forwarder_mtac_full-124cf5d915aeaaceef412b835a955eca9953ea31.tar.gz packet_forwarder_mtac_full-124cf5d915aeaaceef412b835a955eca9953ea31.tar.bz2 packet_forwarder_mtac_full-124cf5d915aeaaceef412b835a955eca9953ea31.zip |
Add gpsd patch
Diffstat (limited to 'lora_pkt_fwd/Makefile')
-rw-r--r-- | lora_pkt_fwd/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lora_pkt_fwd/Makefile b/lora_pkt_fwd/Makefile index 1330d62..dda589e 100644 --- a/lora_pkt_fwd/Makefile +++ b/lora_pkt_fwd/Makefile @@ -22,7 +22,7 @@ RELEASE_VERSION := `cat ../VERSION` CC := $(CROSS_COMPILE)gcc AR := $(CROSS_COMPILE)ar -CFLAGS := -O2 -Wall -Wextra -std=c99 -Iinc -I. +MORECFLAGS := -Wall -Wextra -std=c99 -Iinc -I. -isystem =/usr/include/gps VFLAG := -D VERSION_STRING="\"$(RELEASE_VERSION)\"" ### Constants for Lora concentrator HAL library @@ -38,7 +38,7 @@ LGW_INC += $(LGW_PATH)/inc/loragw_gps.h ### Linking options -LIBS := -lloragw -lrt -lpthread -lm +LIBS := -lloragw -lrt -lpthread -lm -lgps ### General build targets @@ -54,12 +54,14 @@ $(OBJDIR): mkdir -p $(OBJDIR) $(OBJDIR)/%.o: src/%.c $(INCLUDES) | $(OBJDIR) - $(CC) -c $(CFLAGS) -I$(LGW_PATH)/inc $< -o $@ + @echo compile $@ + $(CC) -c $(CFLAGS) $(MORECFLAGS) -I$(LGW_PATH)/inc $< -o $@ ### Main program compilation and assembly $(OBJDIR)/$(APP_NAME).o: src/$(APP_NAME).c $(LGW_INC) $(INCLUDES) | $(OBJDIR) - $(CC) -c $(CFLAGS) $(VFLAG) -I$(LGW_PATH)/inc $< -o $@ + @echo compile $@ + $(CC) -c $(CFLAGS) $(MORECFLAGS) $(VFLAG) -I$(LGW_PATH)/inc $< -o $@ $(APP_NAME): $(OBJDIR)/$(APP_NAME).o $(LGW_PATH)/libloragw.a $(OBJDIR)/parson.o $(OBJDIR)/base64.o $(OBJDIR)/jitqueue.o $(OBJDIR)/timersync.o $(CC) -L$(LGW_PATH) $< $(OBJDIR)/parson.o $(OBJDIR)/base64.o $(OBJDIR)/jitqueue.o $(OBJDIR)/timersync.o -o $@ $(LIBS) |