Move the sources to trunk
[opencv] / interfaces / ch / c / Makefile
1 # OPENCV path is set assuming this folder is OPENCV_HOME/ch/c
2 OPENCV =../..
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
6 LFLAG2 = -lhighgui
7
8
9 target: libcv.dl libhighgui.dl
10
11 # for libcv.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) 
16
17 cv_chdl.o: cv_chdl.c
18         ch dlcomp libcv.dl -cplusplus cv_chdl.c $(INC1)
19
20 cxcore_chdl.o: cxcore_chdl.c
21         ch dlcomp libcv.dl -cplusplus cxcore_chdl.c $(INC1)
22
23 cvaux_chdl.o: cvaux_chdl.c
24         ch dlcomp libcv.dl cvaux_chdl.c $(INC1)
25
26 cv_retstruct_chdl.o: handmade/cv/cv_retstruct_chdl.c
27         ch dlcomp libcv.dl -cplusplus handmade/cv/cv_retstruct_chdl.c $(INC1)
28
29 cxcore_retstruct_chdl.o: handmade/cxcore/cxcore_retstruct_chdl.c
30         ch dlcomp libcv.dl -cplusplus handmade/cxcore/cxcore_retstruct_chdl.c $(INC1)
31
32 cvSetIPLAllocators_chdl.o: handmade/cxcore/cvSetIPLAllocators_chdl.c
33         ch dlcomp libcv.dl -cplusplus handmade/cxcore/cvSetIPLAllocators_chdl.c $(INC1)
34
35 cvSetMemoryManager_chdl.o: handmade/cxcore/cvSetMemoryManager_chdl.c
36         ch dlcomp libcv.dl -cplusplus handmade/cxcore/cvSetMemoryManager_chdl.c $(INC1)
37
38 constcharp2_chdl.o: handmade/cxcore/constcharp2_chdl.c
39         ch dlcomp libcv.dl -cplusplus handmade/cxcore/constcharp2_chdl.c $(INC1)
40
41
42 # for libhighgui.dl
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 \
45                   $(LFLAG1) $(LFLAG2)
46
47 highgui_chdl.o: highgui_chdl.c
48         ch dlcomp highgui.dl -cplusplus highgui_chdl.c $(INC1) $(INC2)
49
50 cvSetMouseCallback_chdl.o: handmade/highgui/cvSetMouseCallback_chdl.c
51         ch dlcomp highgui.dl -cplusplus handmade/highgui/cvSetMouseCallback_chdl.c $(INC1) $(INC2)
52
53 cvCreateTrackbar_chdl.o: handmade/highgui/cvCreateTrackbar_chdl.c
54         ch dlcomp highgui.dl -cplusplus handmade/highgui/cvCreateTrackbar_chdl.c $(INC1) $(INC2)
55
56
57 clean:
58         rm -rf *.o *.obj *.dl *.exp *.lib