update makefile.

This commit is contained in:
Gatsby Van
2023-12-21 23:09:22 +08:00
parent 3a54546cbb
commit 9d023e2726
9 changed files with 47 additions and 92 deletions
+5 -9
View File
@@ -3,17 +3,13 @@
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../src/util/crc.c \
../src/util/util.c
UTIL_SRC := $(wildcard ../src/util/*.c)
OBJS += \
./src/util/crc.o \
./src/util/util.o
C_SRCS += $(UTIL_SRC)
C_DEPS += \
./src/util/crc.d \
./src/util/util.d
OBJS += $(patsubst ../src/util/%.c, ./src/util/%.o, $(UTIL_SRC))
C_DEPS += $(patsubst ../src/util/%.c, ./src/util/%.d, $(UTIL_SRC))
# Each subdirectory must supply rules for building sources it contributes