forked from LAStools/LAStools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (36 loc) · 2.03 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
# makefile for all example of how to use LASlib (when linking statically)
#
#COPTS = -g -Wall
COPTS = -O3 -Wall -Wno-strict-aliasing -Wno-unused-result
COMPILER = g++
LINKER = g++
#BITS = -64
#LIBS = -L/usr/lib32
#LIBS = -L/usr/lib64
INCLUDE = -I/usr/include
LASLIBS = -L../lib
LASINCLUDE = -I../../LASzip/src -I../inc
all: lasexample lasexample_write_only lasexample_add_rgb lasexample_simple_classification lasexample_write_only_full_waveform lasexample_write_only_with_extra_bytes
lasexample: lasexample.o
${LINKER} ${BITS} ${COPTS} lasexample.o -llas -o $@ ${LIBS} ${LASLIBS} $(INCLUDE) $(LASINCLUDE)
lasexample_write_only: lasexample_write_only.o
${LINKER} ${BITS} ${COPTS} lasexample_write_only.o -llas -o $@ ${LIBS} ${LASLIBS} $(INCLUDE) $(LASINCLUDE)
lasexample_add_rgb: lasexample_add_rgb.o
${LINKER} ${BITS} ${COPTS} lasexample_add_rgb.o -llas -o $@ ${LIBS} ${LASLIBS} $(INCLUDE) $(LASINCLUDE)
lasexample_simple_classification: lasexample_simple_classification.o
${LINKER} ${BITS} ${COPTS} lasexample_simple_classification.o -llas -o $@ ${LIBS} ${LASLIBS} $(INCLUDE) $(LASINCLUDE)
lasexample_write_only_full_waveform: lasexample_write_only_full_waveform.o
${LINKER} ${BITS} ${COPTS} lasexample_write_only_full_waveform.o -llas -o $@ ${LIBS} ${LASLIBS} $(INCLUDE) $(LASINCLUDE)
lasexample_write_only_with_extra_bytes: lasexample_write_only_with_extra_bytes.o
${LINKER} ${BITS} ${COPTS} lasexample_write_only_with_extra_bytes.o -llas -o $@ ${LIBS} ${LASLIBS} $(INCLUDE) $(LASINCLUDE)
.cpp.o:
${COMPILER} ${BITS} -c ${COPTS} ${INCLUDE} $(LASINCLUDE) $< -o $@
.c.o:
${COMPILER} ${BITS} -c ${COPTS} ${INCLUDE} $(LASINCLUDE) $< -o $@
clean:
rm -rf *.o
rm -rf lasexample lasexample_write_only lasexample_add_rgb lasexample_simple_classification lasexample_write_only_full_waveform lasexample_write_only_with_extra_bytes
clobber:
rm -rf *.o
rm -rf lasexample lasexample_write_only lasexample_add_rgb lasexample_simple_classification lasexample_write_only_full_waveform lasexample_write_only_with_extra_bytes
rm -rf *~