summaryrefslogtreecommitdiff
path: root/loragw_spi_stress/Makefile
diff options
context:
space:
mode:
authorSylvain Miermont <smiermont@semtech.com>2013-10-22 18:23:52 +0200
committerSylvain Miermont <smiermont@semtech.com>2013-10-24 09:29:51 +0200
commit4977430ef31fb52994fed42b9cb180930ed943d0 (patch)
tree27f4fadea5fa35f25933d59bcd7b99cca8c965c8 /loragw_spi_stress/Makefile
parentb922932d1c9869d82042b600db2382d8c15f63dc (diff)
downloadlora_gateway-4977430ef31fb52994fed42b9cb180930ed943d0.tar.gz
lora_gateway-4977430ef31fb52994fed42b9cb180930ed943d0.tar.bz2
lora_gateway-4977430ef31fb52994fed42b9cb180930ed943d0.zip
Beta 8v1.b8
- API: lgw_receive now return info on RX frequency and RF path for each packet (no need to keep track of RF/IF settings) - Unified some portion of the code with the 470 MHz variant of the HAL (use SX1255 radios instead of SX1257) - Improved AGC and ARB firmwares - Adding -Wall -Wextra for compilation, fixing all the new warnings for cleaner code - Fixed bugs in handling of FSK datarate - test_loragw_hal now dumps the content of all Lora registers after configuration in reg_dump.log
Diffstat (limited to 'loragw_spi_stress/Makefile')
-rw-r--r--loragw_spi_stress/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/loragw_spi_stress/Makefile b/loragw_spi_stress/Makefile
new file mode 100644
index 0000000..d2fe09d
--- /dev/null
+++ b/loragw_spi_stress/Makefile
@@ -0,0 +1,34 @@
+### Application-specific constants
+
+APP_NAME=loragw_spi_stress
+
+### constant symbols
+
+CC=gcc
+CFLAGS=-O2 -Wall -Wextra -Iinc
+C99FLAGS=-O2 -Wall -Wextra -std=c99 -Iinc
+FLAG_AUX=
+
+### constants for Lora Gateway HAL library
+
+LGW_PATH=../loragw_hal
+LGW_INC=-I$(LGW_PATH)/inc
+#LGW_LNK=-lloragw -lrt
+LGW_LNK=-lloragw -lrt -lmpsse
+# add libmpsse or not, depending on what option you compiled the libloragw with
+
+### general build targets
+
+all: $(APP_NAME)
+
+clean:
+ rm -f obj/*.o
+ rm -f $(APP_NAME)
+
+### main program compilation and assembly
+
+obj/$(APP_NAME).o: src/$(APP_NAME).c
+ $(CC) -c $(C99FLAGS) -o obj/$(APP_NAME).o $(LGW_INC) src/$(APP_NAME).c $(FLAG_AUX)
+
+$(APP_NAME): $(LGW_PATH)/libloragw.a obj/$(APP_NAME).o
+ $(CC) -o $(APP_NAME) obj/$(APP_NAME).o -L$(LGW_PATH) $(LGW_LNK)