3,881
社区成员
发帖
与我相关
我的任务
分享
、
#################################################################
# Standard Rules
.PHONY: all clean
all: clean $(bin)
clean:
$(RM) $(objs)
$(bin): $(objs)
$(LINK) $@ $? $(LIBS)
#################################################################
# Additional Rules
$(obj)/%.o: $(main_src)/%.c
$(COMPILE.c) $< -o $@
FALGS:Wall -O2 -g
CC:g++
SRC:main.cpp c.cpp
OBJ:${SRC:%.cpp=%.o}
all:depend main
depend:
@$(CC) -MM $(FLAGS) $(SRC) > .depend
-include .depend
main:$(OBJ)
$(CC) $(FALGS) -o $@ $(OBJ)
clean:
-rm -rfi $(OBJ) main .depend