diff --git a/makefile b/makefile index 44a8b46..5d7ed69 100644 --- a/makefile +++ b/makefile @@ -53,7 +53,7 @@ BIN := $(DIR_BIN)/$(NAME)$(EXT) C_SRC := $(shell find src/ -name '*.c') C_OBJ := $(patsubst src/%,$(DIR_OBJ)/%,$(C_SRC:.c=.o)) 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_DEP := $(RSOUT)/libmcaselector_lite.d RSOUT := @@ -109,6 +109,9 @@ else compile_commands.json: endif +# disable implicit rules +.SUFFIXES: + # include the dependencies -include $(C_DEP) -include $(RS_DEP)