add support of new gps (ubx)
[fpv.git] / imuboard / Makefile
index cdc4913..ad4d255 100644 (file)
@@ -2,6 +2,9 @@ TARGET = main
 
 AVERSIVE_DIR ?= ../..
 
+#GPS_VENUS=1
+GPS_UBX=1
+
 # List C source files here. (C dependencies are automatically generated.)
 SRC = $(TARGET).c
 SRC += commands.c
@@ -18,7 +21,14 @@ SRC += sd_main.c
 SRC += partition.c
 SRC += sd_raw.c
 SRC += gps.c
+ifeq ($(GPS_VENUS), 1)
 SRC += gps_venus.c
+CFLAGS += -DGPS_VENUS
+endif
+ifeq ($(GPS_UBX), 1)
+SRC += gps_ubx.c
+CFLAGS += -DGPS_UBX
+endif
 SRC += sd_log.c
 SRC += i2c_protocol.c