root/trunk/clustr/Makefile

Revision 460, 447 bytes (checked in by aaron, 1 year ago)

initial public release

Line 
1 # DEBUG  := -ggdb
2 CFLAGS := $(shell gdal-config --cflags) $(DEBUG) -O3 -funroll-loops
3 LIBS   := $(shell gdal-config --libs) -lCGAL
4 objects = clustr.o component.o shapefile.o polygon.o
5
6 clustr: $(objects)
7         g++ $(CFLAGS) -o $@ $+ $(LIBS)
8
9 $(objects): %.o: %.cpp
10         g++ $(CFLAGS) -c $+
11
12 shape_test: stuff/ogr_test.cpp shapefile.cpp
13         g++ -I. $(CFLAGS) -o $@ $+ $(LIBS)
14
15 all: clustr
16
17 clean:
18         -rm -f clustr
19         -rm -f *.o *.shp *.shx *.dbf *.prj *.gch *.rpo
Note: See TracBrowser for help on using the browser.