fix linking libraries also using libraries

This commit is contained in:
King Kévin 2017-06-27 15:46:50 +02:00
parent af48bf09d6
commit 87b788b19e
1 changed files with 2 additions and 2 deletions

View File

@ -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