包括opencv和人脸识别模块arcface的Makefile模板
CC = g++ CFLAGS += -g -O3 -Wall INC += -I ../inc/ `pkg-config --cflags opencv` LIBDIRS += -L ../linux_so/ LIBS += `pkg-config --libs opencv` -larcsoft_face -larcsoft_face_engine -lsqlite3 TARGET = main OBJS += main.o face_recog.o all:$(TARGET) $(TARGET):$(OBJS) $(CC) $(INC) $(CFLAGS) $(OBJS) -o $(TARGET) $(LIBDIRS) $(LIBS) $(OBJS):%.o:%.cpp $(CC) $(INC) $(CFLAGS) -c $< -o $@ .PHONY:clean clean: rm -r *.o $(TARGET)