1 # OPENCV path is set assuming this folder is OPENCV_HOME/ch/c
3 INC1 = -I$(OPENCV)/cv/include -I$(OPENCV)/cxcore/include -I$(OPENCV)/cvaux/include
4 INC2 = -I$(OPENCV)/otherlibs/highgui
5 LFLAG1 = -L/usr/local/lib -lcxcore -lcv -lcvaux
9 target: libcv.dl libhighgui.dl
12 libcv.dl: cv_chdl.o cv_retstruct_chdl.o cxcore_retstruct_chdl.o cvSetIPLAllocators_chdl.o \
13 cvSetMemoryManager_chdl.o cxcore_chdl.o cvaux_chdl.o constcharp2_chdl.o
14 ch dllink libcv.dl cv_chdl.o cv_retstruct_chdl.o cxcore_retstruct_chdl.o cvSetIPLAllocators_chdl.o \
15 cvSetMemoryManager_chdl.o cxcore_chdl.o cvaux_chdl.o constcharp2_chdl.o $(LFLAG1)
18 ch dlcomp libcv.dl -cplusplus cv_chdl.c $(INC1)
20 cxcore_chdl.o: cxcore_chdl.c
21 ch dlcomp libcv.dl -cplusplus cxcore_chdl.c $(INC1)
23 cvaux_chdl.o: cvaux_chdl.c
24 ch dlcomp libcv.dl cvaux_chdl.c $(INC1)
26 cv_retstruct_chdl.o: handmade/cv/cv_retstruct_chdl.c
27 ch dlcomp libcv.dl -cplusplus handmade/cv/cv_retstruct_chdl.c $(INC1)
29 cxcore_retstruct_chdl.o: handmade/cxcore/cxcore_retstruct_chdl.c
30 ch dlcomp libcv.dl -cplusplus handmade/cxcore/cxcore_retstruct_chdl.c $(INC1)
32 cvSetIPLAllocators_chdl.o: handmade/cxcore/cvSetIPLAllocators_chdl.c
33 ch dlcomp libcv.dl -cplusplus handmade/cxcore/cvSetIPLAllocators_chdl.c $(INC1)
35 cvSetMemoryManager_chdl.o: handmade/cxcore/cvSetMemoryManager_chdl.c
36 ch dlcomp libcv.dl -cplusplus handmade/cxcore/cvSetMemoryManager_chdl.c $(INC1)
38 constcharp2_chdl.o: handmade/cxcore/constcharp2_chdl.c
39 ch dlcomp libcv.dl -cplusplus handmade/cxcore/constcharp2_chdl.c $(INC1)
43 libhighgui.dl: highgui_chdl.o cvCreateTrackbar_chdl.o cvSetMouseCallback_chdl.o
44 ch dllink libhighgui.dl highgui_chdl.o cvCreateTrackbar_chdl.o cvSetMouseCallback_chdl.o \
47 highgui_chdl.o: highgui_chdl.c
48 ch dlcomp highgui.dl -cplusplus highgui_chdl.c $(INC1) $(INC2)
50 cvSetMouseCallback_chdl.o: handmade/highgui/cvSetMouseCallback_chdl.c
51 ch dlcomp highgui.dl -cplusplus handmade/highgui/cvSetMouseCallback_chdl.c $(INC1) $(INC2)
53 cvCreateTrackbar_chdl.o: handmade/highgui/cvCreateTrackbar_chdl.c
54 ch dlcomp highgui.dl -cplusplus handmade/highgui/cvCreateTrackbar_chdl.c $(INC1) $(INC2)
58 rm -rf *.o *.obj *.dl *.exp *.lib