有事,就在这里给我留言吧!
- 作者:xiaoxiao
- 发表时间:2020-12-23 10:39
- 来源:未知
include helper_daemon/daemon.mk BUILD_DIR=build ifneq ($(BUILD_DIR), $(wildcard $(BUILD_DIR))) $(shell mkdir $(BUILD_DIR)) endif
TARGET = helperd OBJ_FILE = $(addprefix $(BUILD_DIR)/,$(patsubst %.c,%.o,$(notdir $(SRC_FILE))))
$(TARGET) : $(OBJ_FILE) gcc -o $@ $^
clean: rm -f $(OBJ_FILE) $(TARGET)