0
|
1 |
#-----------------------------------------------------------------------------
|
|
2 |
# Makefile for ann2fig
|
|
3 |
#
|
|
4 |
# ANN: Approximate Nearest Neighbors
|
|
5 |
# Version: 1.1.1 08/04/06
|
|
6 |
#-----------------------------------------------------------------------------
|
|
7 |
# Copyright (c) 1997-2005 University of Maryland and Sunil Arya and
|
|
8 |
# David Mount. All Rights Reserved.
|
|
9 |
#
|
|
10 |
# This software and related documentation is part of the Approximate
|
|
11 |
# Nearest Neighbor Library (ANN). This software is provided under
|
|
12 |
# the provisions of the Lesser GNU Public License (LGPL). See the
|
|
13 |
# file ../ReadMe.txt for further information.
|
|
14 |
#
|
|
15 |
# The University of Maryland (U.M.) and the authors make no
|
|
16 |
# representations about the suitability or fitness of this software for
|
|
17 |
# any purpose. It is provided "as is" without express or implied
|
|
18 |
# warranty.
|
|
19 |
#-----------------------------------------------------------------------------
|
|
20 |
# Revision 0.1 03/04/98
|
|
21 |
# Initial release
|
|
22 |
# Revision 1.1.1 08/04/06
|
|
23 |
# Added copyright/license
|
|
24 |
#-----------------------------------------------------------------------------
|
|
25 |
|
|
26 |
#-----------------------------------------------------------------------------
|
|
27 |
# Basic definitions
|
|
28 |
# BASEDIR where include, src, lib, ... are
|
|
29 |
# INCDIR include directory
|
|
30 |
# LIBDIR library directory
|
|
31 |
# BINDIR bin directory
|
|
32 |
# LDFLAGS loader flags
|
|
33 |
# ANNLIB ANN library
|
|
34 |
# OTHERLIB other libraries
|
|
35 |
#-----------------------------------------------------------------------------
|
|
36 |
|
|
37 |
BASEDIR = ..
|
|
38 |
INCDIR = $(BASEDIR)/include
|
|
39 |
LIBDIR = $(BASEDIR)/lib
|
|
40 |
BINDIR = $(BASEDIR)/bin
|
|
41 |
LDFLAGS = -L$(LIBDIR)
|
|
42 |
ANNLIBS = -lANN
|
|
43 |
OTHERLIBS = -lm
|
|
44 |
|
|
45 |
#-----------------------------------------------------------------------------
|
|
46 |
# Some more definitions
|
|
47 |
# ANN2FIG name of executable
|
|
48 |
#-----------------------------------------------------------------------------
|
|
49 |
|
|
50 |
ANN2FIG = ann2fig
|
|
51 |
SOURCES = ann2fig.cpp
|
|
52 |
OBJECTS = $(SOURCES:.cpp=.o)
|
|
53 |
|
|
54 |
#-----------------------------------------------------------------------------
|
|
55 |
# Make the program
|
|
56 |
#-----------------------------------------------------------------------------
|
|
57 |
|
|
58 |
default:
|
|
59 |
@echo "Specify a target configuration"
|
|
60 |
|
|
61 |
targets: $(BINDIR)/$(ANN2FIG)
|
|
62 |
|
|
63 |
$(BINDIR)/$(ANN2FIG): $(OBJECTS)
|
|
64 |
$(C++) $(OBJECTS) -o $(ANN2FIG) $(LDFLAGS) $(ANNLIBS) $(OTHERLIBS)
|
|
65 |
mv $(ANN2FIG) $(BINDIR)
|
|
66 |
|
|
67 |
#-----------------------------------------------------------------------------
|
|
68 |
# configuration definitions
|
|
69 |
#-----------------------------------------------------------------------------
|
|
70 |
|
|
71 |
include ../Make-config
|
|
72 |
|
|
73 |
#-----------------------------------------------------------------------------
|
|
74 |
# Objects
|
|
75 |
#-----------------------------------------------------------------------------
|
|
76 |
|
|
77 |
ann2fig.o: ann2fig.cpp
|
|
78 |
$(C++) -c -I$(INCDIR) ann2fig.cpp
|
|
79 |
|
|
80 |
#-----------------------------------------------------------------------------
|
|
81 |
# Cleaning
|
|
82 |
#-----------------------------------------------------------------------------
|
|
83 |
|
|
84 |
clean:
|
|
85 |
-rm -f *.o core
|
|
86 |
|
|
87 |
realclean: clean
|