mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 06:05:44 +01:00
fix: makefile unable to convert the src/%.c paths into obj/$arch/$prof/%.o paths
had to include the src/ path in the shell finding, due to it otherwise prefixing with ./src (it was aparrently also including files from target/)
This commit is contained in:
5
makefile
5
makefile
@@ -53,7 +53,7 @@ BIN := $(DIR_BIN)/$(NAME)$(EXT)
|
|||||||
C_SRC := $(shell find src/ -name '*.c')
|
C_SRC := $(shell find src/ -name '*.c')
|
||||||
C_OBJ := $(patsubst src/%,$(DIR_OBJ)/%,$(C_SRC:.c=.o))
|
C_OBJ := $(patsubst src/%,$(DIR_OBJ)/%,$(C_SRC:.c=.o))
|
||||||
C_DEP := $(C_OBJ:.o=.d)
|
C_DEP := $(C_OBJ:.o=.d)
|
||||||
RS_SRC := $(shell find -name '*.rs')
|
RS_SRC := $(shell find src/ -name '*.rs')
|
||||||
RS_LIB := $(RSOUT)/libmcaselector_lite.a
|
RS_LIB := $(RSOUT)/libmcaselector_lite.a
|
||||||
RS_DEP := $(RSOUT)/libmcaselector_lite.d
|
RS_DEP := $(RSOUT)/libmcaselector_lite.d
|
||||||
RSOUT :=
|
RSOUT :=
|
||||||
@@ -109,6 +109,9 @@ else
|
|||||||
compile_commands.json:
|
compile_commands.json:
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# disable implicit rules
|
||||||
|
.SUFFIXES:
|
||||||
|
|
||||||
# include the dependencies
|
# include the dependencies
|
||||||
-include $(C_DEP)
|
-include $(C_DEP)
|
||||||
-include $(RS_DEP)
|
-include $(RS_DEP)
|
||||||
|
|||||||
Reference in New Issue
Block a user