root / rgbdslam / gicp / ann_1.1.1 / src / Makefile @ 9240aaa3
History | View | Annotate | Download (3.78 KB)
1 | 9240aaa3 | Alex | #----------------------------------------------------------------------------- |
---|---|---|---|
2 | # Makefile for ANN library |
||
3 | #---------------------------------------------------------------------- |
||
4 | # Copyright (c) 1997-2005 University of Maryland and Sunil Arya and |
||
5 | # David Mount. All Rights Reserved. |
||
6 | # |
||
7 | # This software and related documentation is part of the Approximate |
||
8 | # Nearest Neighbor Library (ANN). This software is provided under |
||
9 | # the provisions of the Lesser GNU Public License (LGPL). See the |
||
10 | # file ../ReadMe.txt for further information. |
||
11 | # |
||
12 | # The University of Maryland (U.M.) and the authors make no |
||
13 | # representations about the suitability or fitness of this software for |
||
14 | # any purpose. It is provided "as is" without express or implied |
||
15 | # warranty. |
||
16 | #---------------------------------------------------------------------- |
||
17 | # History: |
||
18 | # Revision 0.1 03/04/98 |
||
19 | # Initial release |
||
20 | # Revision 1.0 04/01/05 |
||
21 | # Renamed files from .cc to .cpp for Microsoft Visual C++ |
||
22 | # Added kd_dump.cpp |
||
23 | # Revision 1.1 05/03/05 |
||
24 | # Added kd_fix_rad_search.cpp and bd_fix_rad_search.cpp |
||
25 | #---------------------------------------------------------------------- |
||
26 | |||
27 | #----------------------------------------------------------------------------- |
||
28 | # Some basic definitions: |
||
29 | # BASEDIR where include, src, lib, ... are |
||
30 | # INCLIB include directory |
||
31 | # LIBLIB library directory |
||
32 | #----------------------------------------------------------------------------- |
||
33 | BASEDIR = .. |
||
34 | INCDIR = $(BASEDIR)/include |
||
35 | LIBDIR = $(BASEDIR)/lib |
||
36 | |||
37 | SOURCES = ANN.cpp brute.cpp kd_tree.cpp kd_util.cpp kd_split.cpp \ |
||
38 | kd_dump.cpp kd_search.cpp kd_pr_search.cpp kd_fix_rad_search.cpp \ |
||
39 | bd_tree.cpp bd_search.cpp bd_pr_search.cpp bd_fix_rad_search.cpp \ |
||
40 | perf.cpp |
||
41 | |||
42 | HEADERS = kd_tree.h kd_split.h kd_util.h kd_search.h \ |
||
43 | kd_pr_search.h kd_fix_rad_search.h perf.h pr_queue.h pr_queue_k.h |
||
44 | |||
45 | OBJECTS = $(SOURCES:.cpp=.o) |
||
46 | |||
47 | #----------------------------------------------------------------------------- |
||
48 | # Make the library |
||
49 | #----------------------------------------------------------------------------- |
||
50 | |||
51 | default: |
||
52 | @echo "Specify a target configuration" |
||
53 | |||
54 | targets: $(LIBDIR)/$(ANNLIB) |
||
55 | |||
56 | $(LIBDIR)/$(ANNLIB): $(OBJECTS) |
||
57 | $(MAKELIB) $(ANNLIB) $(OBJECTS) |
||
58 | $(RANLIB) $(ANNLIB) |
||
59 | mv $(ANNLIB) $(LIBDIR) |
||
60 | |||
61 | #----------------------------------------------------------------------------- |
||
62 | # Make object files |
||
63 | #----------------------------------------------------------------------------- |
||
64 | |||
65 | ANN.o: ANN.cpp |
||
66 | $(C++) -c -I$(INCDIR) $(CFLAGS) ANN.cpp |
||
67 | |||
68 | brute.o: brute.cpp |
||
69 | $(C++) -c -I$(INCDIR) $(CFLAGS) brute.cpp |
||
70 | |||
71 | kd_tree.o: kd_tree.cpp |
||
72 | $(C++) -c -I$(INCDIR) $(CFLAGS) kd_tree.cpp |
||
73 | |||
74 | kd_util.o: kd_util.cpp |
||
75 | $(C++) -c -I$(INCDIR) $(CFLAGS) kd_util.cpp |
||
76 | |||
77 | kd_split.o: kd_split.cpp |
||
78 | $(C++) -c -I$(INCDIR) $(CFLAGS) kd_split.cpp |
||
79 | |||
80 | kd_search.o: kd_search.cpp |
||
81 | $(C++) -c -I$(INCDIR) $(CFLAGS) kd_search.cpp |
||
82 | |||
83 | kd_pr_search.o: kd_pr_search.cpp |
||
84 | $(C++) -c -I$(INCDIR) $(CFLAGS) kd_pr_search.cpp |
||
85 | |||
86 | kd_fix_rad_search.o: kd_fix_rad_search.cpp |
||
87 | $(C++) -c -I$(INCDIR) $(CFLAGS) kd_fix_rad_search.cpp |
||
88 | |||
89 | kd_dump.o: kd_dump.cpp |
||
90 | $(C++) -c -I$(INCDIR) $(CFLAGS) kd_dump.cpp |
||
91 | |||
92 | bd_tree.o: bd_tree.cpp |
||
93 | $(C++) -c -I$(INCDIR) $(CFLAGS) bd_tree.cpp |
||
94 | |||
95 | bd_search.o: bd_search.cpp |
||
96 | $(C++) -c -I$(INCDIR) $(CFLAGS) bd_search.cpp |
||
97 | |||
98 | bd_pr_search.o: bd_pr_search.cpp |
||
99 | $(C++) -c -I$(INCDIR) $(CFLAGS) bd_pr_search.cpp |
||
100 | |||
101 | bd_fix_rad_search.o: bd_fix_rad_search.cpp |
||
102 | $(C++) -c -I$(INCDIR) $(CFLAGS) bd_fix_rad_search.cpp |
||
103 | |||
104 | perf.o: perf.cpp |
||
105 | $(C++) -c -I$(INCDIR) $(CFLAGS) perf.cpp |
||
106 | |||
107 | #----------------------------------------------------------------------------- |
||
108 | # Configuration definitions |
||
109 | #----------------------------------------------------------------------------- |
||
110 | |||
111 | include ../Make-config |
||
112 | |||
113 | #----------------------------------------------------------------------------- |
||
114 | # Cleaning |
||
115 | #----------------------------------------------------------------------------- |
||
116 | |||
117 | clean: |
||
118 | -rm -f *.o core |
||
119 | |||
120 | realclean: clean |