diff options
author | Christian Pointner <equinox@spreadspace.org> | 2017-08-26 21:00:05 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2017-08-26 21:00:05 +0200 |
commit | 6f93f6b1adefa0f541b6e81d37b7677a4cb34460 (patch) | |
tree | 1afcb738ea103a473543f6acc34678e2e74ddedc /spl.mk | |
parent | build spl doxygen if available (diff) |
fix linking to external libs
Diffstat (limited to 'spl.mk')
-rw-r--r-- | spl.mk | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |