# -include src/subdir.mk
# Add inputs and outputs from these tool invocations to the build variables
-CPP_SRCS += \
-$(CLI_SRC)
+CPP_SRCS += $(wildcard ../src/*.cpp)
-OBJS += \
-$(CLI_OBJ)
+TMP_FILES += $(patsubst ../src/%, ./src/%, $(CPP_SRCS))
-CPP_DEPS += \
-$(CLI_DEPS)
+OBJS += $(TMP_FILES:.cpp=.o)
+
+CPP_DEPS += $(TMP_FILES:.cpp=.d)
# Each subdirectory must supply rules for building sources it contributes
src/%.o: ../src/%.cpp
# -include src/subdir.mk
# Add inputs and outputs from these tool invocations to the build variables
-CPP_SRCS += \
-$(CLI_SRC)
+CPP_SRCS += $(wildcard ../src/*.cpp)
-OBJS += \
-$(CLI_OBJ)
+TMP_FILES += $(patsubst ../src/%, ./src/%, $(CPP_SRCS))
-CPP_DEPS += \
-$(CLI_DEPS)
+OBJS += $(TMP_FILES:.cpp=.o)
+
+CPP_DEPS += $(TMP_FILES:.cpp=.d)
# Each subdirectory must supply rules for building sources it contributes
# -include src/subdir.mk
# Add inputs and outputs from these tool invocations to the build variables
-CPP_SRCS += \
-$(CLI_SRC)
+CPP_SRCS += $(wildcard ../src/*.cpp)
-OBJS += \
-$(CLI_OBJ)
+TMP_FILES += $(patsubst ../src/%, ./src/%, $(CPP_SRCS))
-CPP_DEPS += \
-$(CLI_DEPS)
+OBJS += $(TMP_FILES:.cpp=.o)
+
+CPP_DEPS += $(TMP_FILES:.cpp=.d)
# Each subdirectory must supply rules for building sources it contributes