fix linking libraries also using libraries
This commit is contained in:
parent
af48bf09d6
commit
87b788b19e
4
Makefile
4
Makefile
|
@ -41,9 +41,9 @@ STM32F1_LIB = opencm3_stm32f1
|
|||
# source files (this will be populated using includes based DEPENDENCIES)
|
||||
CSRC = global.c
|
||||
# headers corresponding to source files
|
||||
CHDR = $(patsubst %.c,%.h,$(CSRC))
|
||||
CHDR = $(sort $(patsubst %.c,%.h,$(CSRC)))
|
||||
# objects compiled from source files
|
||||
OBJ = $(patsubst %.c,%.o,$(CSRC))
|
||||
OBJ = $(sort $(patsubst %.c,%.o,$(CSRC)))
|
||||
# figure out based on the main sources files which library files are used
|
||||
DEPENDENCIES = $(patsubst %,%.inc,$(FIRMWARE))
|
||||
# populates CSRC based on the library files used
|
||||
|
|
Loading…
Reference in New Issue