Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这就是我创建 *.o 文件所拥有的,我不想创建普通文件。这个 GNUmake 位于 /obj 中。不用说,它不起作用。你碰巧知道我做错了什么吗?
试试这个:
all: $(OBJS) %.o: $(SRC_DIR)/%.c $(CC) -I$(INC_DIR) -c $< -o $@