Makefile

CC = g++

CFLAG = -Wall -g -w
LIB_FLAG = -L/usr/local/lib/OpenCV/lib -L/usr/local/lib -L ./lib
INCLUDE = -I./ -I./include -I/usr/local/lib/OpenCV/include
MY_LIB = -lcv -lcxcore -lhighgui

SRC = .
OBJ = .

libso = $(OBJ)/libImageResize.so

$(libso): %.so:
    @echo ----------------- -----------------------------
    $(CC) -shared -fPIC process.cpp -o $(libso) $(INCLUDE) $(LIB_FLAG) $(MY_LIB)
    @echo ----------------------------------------------

.PHONY : clean
clean :
    -rm -f Log $(objects) bag_test

你可能感兴趣的:(makefile)