-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
62 lines (51 loc) · 2.22 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
## This make file is hard-coded to work on Debian 10 with the following
## packages:
## apt-get install libocct-data-exchange-dev libocct-draw-dev libocct-foundation-dev \
## libocct-modeling-algorithms-dev libocct-modeling-data-dev \
## libocct-ocaf-dev libocct-visualization-dev \
## libtbb-dev
##
## Other systems will likely need adjustments.
##
## An easy(?) way to see how to build with OpenCASCADE on your system
## is to follow the installation examples of:
## https://github.com/miho/OCC-CSG/
##
## After building it, run:
## cmake .
## make VERBOSE=1
## And you'll see the exact G++ command-line that was used.
##
##
CPPFLAGS=-I/usr/include/opencascade
CXXFLAGS=-std=c++11 -g -O0
LDFLAGS=-lTKSTL -lTKXDESTEP -lTKBinXCAF -lTKXmlXCAF -lTKXDEIGES -lTKXCAF \
-lTKIGES -lTKSTEP -lTKSTEP209 -lTKSTEPAttr -lTKSTEPBase -lTKXSBase \
-lTKStd -lTKStdL -lTKXml -lTKBin -lTKXmlL -lTKBinL -lTKCAF -lTKXCAF \
-lTKLCAF -lTKCDF -lTKMeshVS -lTKOpenGl -lTKV3d -lTKService \
-lTKXMesh -lTKMesh -lTKOffset -lTKFeat -lTKFillet -lTKHLR -lTKBool \
-lTKBO -lTKShHealing -lTKPrim -lTKTopAlgo -lTKGeomAlgo -lTKBRep \
-lTKGeomBase -lTKG3d -lTKG2d -lTKIGES -lTKSTEP -lTKSTEP209 \
-lTKSTEPAttr -lTKSTEPBase -lTKXSBase -lTKStd -lTKStdL -lTKXml \
-lTKBin -lTKXmlL -lTKBinL -lTKCAF -lTKLCAF -lTKCDF -lTKMeshVS \
-lTKOpenGl -lTKV3d -lTKService -lTKXMesh -lTKMesh -lTKOffset \
-lTKFeat -lTKFillet -lTKHLR -lTKBool -lTKBO -lTKShHealing \
-lTKPrim -lTKTopAlgo -lTKGeomAlgo -lTKBRep -lTKGeomBase \
-lTKG3d -lTKG2d \
\
/usr/lib/x86_64-linux-gnu/libTKMath.so.7.3.0 \
/usr/lib/x86_64-linux-gnu/libTKernel.so.7.3.0 \
\
-lfreetype -lpthread -lrt -lstdc++ -ldl -lm\
all: openscad-step-reader
openscad-step-reader: openscad-step-reader.o \
tessellation.o \
openscad-triangle-writer.o \
explore-shape.o
openscad-step-reader.o: openscad-step-reader.cpp triangle.h
tessellation.o: tessellation.cpp tessellation.h triangle.h
openscad-triangle-writer.o: openscad-triangle-writer.cpp openscad-triangle-writer.h triangle.h
explore-shape.o: explore-shape.cpp explore-shape.h
.PHONY: clean
clean:
rm -f explore-shape.o openscad-step-reader.o openscad-step-reader tessellation.o openscad-triangle-writer.o