标签:+= tar make target .PHONY .cpp conf lag code
1 CXX = g++ 2 LIBS +=`pkg-config --libs opencv` 3 INC +=`pkg-config --cflags opencv` 4 CPPFLAGS += -g -std=c++11 -Wall 5 6 SRCS = detect.cpp 7 TARGET = detect 8 OBJS = detect.o 9 10 $(TARGET):$(OBJS) 11 $(CXX) $(INC) $(CPPFLAGS) $(OBJS) -o $(TARGET) $(LIBS) 12 $(OBJS):%.o:%.cpp 13 $(CXX) $(INC) $(CPPFLAGS) -c $< -o $@ 14 15 .PHONY:clean 16 clean: 17 rm -r *.o $(TARGET)
标签:+= tar make target .PHONY .cpp conf lag code
原文地址:https://www.cnblogs.com/buyizhiyou/p/10119721.html