summaryrefslogtreecommitdiff
path: root/spl.mk
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-08-26 21:00:05 +0200
committerChristian Pointner <equinox@spreadspace.org>2017-08-26 21:00:05 +0200
commit6f93f6b1adefa0f541b6e81d37b7677a4cb34460 (patch)
tree1afcb738ea103a473543f6acc34678e2e74ddedc /spl.mk
parentbuild spl doxygen if available (diff)
fix linking to external libs
Diffstat (limited to 'spl.mk')
-rw-r--r--spl.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/spl.mk b/spl.mk
index fac0407..5fce4ba 100644
--- a/spl.mk
+++ b/spl.mk
@@ -24,6 +24,9 @@ include $(SPREADSTM8_PATH)/defines.mk
SPL_LIB = $(SPL_PATH)/Libraries/STM8S_StdPeriph_Driver
SPL_CFLAGS = -D$(SPL_MCU)
+ifdef F_XTAL
+ CFLAGS += -DHSE_VALUE="((uint32_t)$(F_XTAL))"
+endif
SPL_CFLAGS += -I$(SPL_LIB)/inc
SPL_CFLAGS += -I./
@@ -39,7 +42,7 @@ endif
OBJ = $(SRC:%.c=%.rel)
-libspl.a: $(OBJ)
+spl.lib: $(OBJ)
$(AR) $@ $(OBJ)
%.rel: %.c