forked from LAStools/LAStools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
68 lines (52 loc) · 2.29 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# makefile for LGPL-licensed LAStools
#
#COPTS = -g -Wall -Wno-deprecated -DDEBUG
COPTS = -O3 -Wall -Wno-deprecated -Wno-strict-aliasing -Wno-write-strings -Wno-unused-result -DNDEBUG
#COMPILER = CC
COMPILER = g++
LINKER = g++
#BITS = -64
#LIBS = -L/usr/lib64
#LIBS = -L/usr/lib32
#INCLUDE = -I/usr/include
LASLIBS = -L../LASlib/lib
LASINCLUDE = -I../LASzip/src -I../LASlib/inc
all: laszip lasinfo lasprecision las2txt txt2las las2las lasdiff lasmerge lasindex
laszip: laszip.o geoprojectionconverter.o
${LINKER} ${BITS} ${COPTS} laszip.o geoprojectionconverter.o -llas -o $@ ${LIBS} ${LASLIBS} $(INCLUDE) $(LASINCLUDE)
cp $@ ../bin
lasinfo: lasinfo.o geoprojectionconverter.o
${LINKER} ${BITS} ${COPTS} lasinfo.o geoprojectionconverter.o -llas -o $@ ${LIBS} ${LASLIBS} $(INCLUDE) $(LASINCLUDE)
cp $@ ../bin
lasprecision: lasprecision.o geoprojectionconverter.o
${LINKER} ${BITS} ${COPTS} lasprecision.o geoprojectionconverter.o -llas -o $@ ${LIBS} ${LASLIBS} $(INCLUDE) $(LASINCLUDE)
cp $@ ../bin
las2txt: las2txt.o
${LINKER} ${BITS} ${COPTS} las2txt.o -llas -o $@ ${LIBS} ${LASLIBS} $(INCLUDE) $(LASINCLUDE)
cp $@ ../bin
txt2las: txt2las.o geoprojectionconverter.o
${LINKER} ${BITS} ${COPTS} txt2las.o geoprojectionconverter.o -llas -o $@ ${LIBS} ${LASLIBS} $(INCLUDE) $(LASINCLUDE)
cp $@ ../bin
las2las: las2las.o geoprojectionconverter.o
${LINKER} ${BITS} ${COPTS} las2las.o geoprojectionconverter.o -llas -o $@ ${LIBS} ${LASLIBS} $(INCLUDE) $(LASINCLUDE)
cp $@ ../bin
lasdiff: lasdiff.o
${LINKER} ${BITS} ${COPTS} lasdiff.o -llas -o $@ ${LIBS} ${LASLIBS} $(INCLUDE) $(LASINCLUDE)
cp $@ ../bin
lasmerge: lasmerge.o geoprojectionconverter.o
${LINKER} ${BITS} ${COPTS} lasmerge.o geoprojectionconverter.o -llas -o $@ ${LIBS} ${LASLIBS} $(INCLUDE) $(LASINCLUDE)
cp $@ ../bin
lasindex: lasindex.o
${LINKER} ${BITS} ${COPTS} lasindex.o -llas -o $@ ${LIBS} ${LASLIBS} $(INCLUDE) $(LASINCLUDE)
cp $@ ../bin
.cpp.o:
${COMPILER} ${BITS} -c ${COPTS} ${INCLUDE} $(LASINCLUDE) $< -o $@
.c.o:
${COMPILER} ${BITS} -c ${COPTS} ${INCLUDE} $(LASINCLUDE) $< -o $@
clean:
rm -rf *.o
rm -rf laszip lasinfo lasprecision las2txt txt2las las2las lasdiff lasmerge lasindex
clobber:
rm -rf *.o
rm -rf laszip lasinfo lasprecision las2txt txt2las las2las lasdiff lasmerge lasindex
rm -rf *~