You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
600 B
Makefile

4 years ago
TARGET = plots
SRC = \
cvplot.cpp \
plot_sample.cpp \
INCLUDE = \
-I. \
LIB = \
DEFINE = \
CC = g++
#CFLAGS = `pkg-config opencv --cflags` \
-lm -lml -lcvaux -lhighgui -lcv -lcxcore \
-O3 \
-Wall \
CFLAGS = `pkg-config opencv --cflags` `pkg-config opencv --libs`\
-O3 \
-Wall \
#CFLAGS = `pkg-config opencv --cflags` `pkg-config opencv --libs`\
-g
OBJ = $(patsubst %.cpp,%.o,$(filter %.cpp,$(SRC)))
.SUFFIXES: .cpp .o
.cpp.o:
$(CC) $(CFLAGS) $(DEFINE) $(INCLUDE) -c $< -o $@
all: $(TARGET)
$(TARGET): $(OBJ)
$(CC) -o $@ $^ $(LIB) $(CFLAGS)
clean:
rm $(TARGET) $(OBJ)