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/phy_ctrl/antenna.c \
../src/phy_ctrl/phy_ctrl.c
PHY_CTRL_SRC := $(wildcard ../src/phy_ctrl/*.c)
OBJS += \
./src/phy_ctrl/antenna.o \
./src/phy_ctrl/phy_ctrl.o
C_SRCS += $(PHY_CTRL_SRC)
C_DEPS += \
./src/phy_ctrl/antenna.d \
./src/phy_ctrl/phy_ctrl.d
OBJS += $(patsubst ../src/phy_ctrl/%.c, ./src/phy_ctrl/%.o, $(PHY_CTRL_SRC))
C_DEPS += $(patsubst ../src/phy_ctrl/%.c, ./src/phy_ctrl/%.d, $(PHY_CTRL_SRC))
# Each subdirectory must supply rules for building sources it contributes