diff -ur FbdReader.orig/inc/FbdReader.hxx FbdReader/inc/FbdReader.hxx
old
|
new
|
|
71 | 71 | |
72 | 72 | #include <GeomPlate_CurveConstraint.hxx> |
73 | 73 | #include <GeomAdaptor_Curve.hxx> |
74 | | #include <GeomAdaptor_HCurve.hxx> |
75 | 74 | #include <GeomPlate_CurveConstraint.hxx> |
76 | 75 | #include <GeomPlate_BuildPlateSurface.hxx> |
77 | 76 | #include <GeomPlate_MakeApprox.hxx> |
diff -ur FbdReader.orig/src/Makefile FbdReader/src/Makefile
old
|
new
|
|
9 | 9 | #Example makefile: (Source: https://www.cs.swarthmore.edu/~newhall/unixhelp/howto_makefiles.html) |
10 | 10 | |
11 | 11 | #Define path to Open Cascade library |
12 | | OCCT = /usr/local/opencascade-7.1.0/bin/lin64/gcc/lib |
| 12 | OCCT = @PREFIX@/lib |
13 | 13 | #Define path to Open Cascade headers |
14 | | OCCINC = /usr/local/opencascade-7.1.0/inc |
| 14 | OCCINC = @PREFIX@/include/opencascade |
15 | 15 | #Define path to CadReader |
16 | | PROGPATH = /usr/local/cgxCadTools/FbdReader |
| 16 | PROGPATH = ../../FbdReader |
17 | 17 | |
18 | | # define the C compiler to use |
19 | | CC = gcc |
20 | 18 | |
21 | 19 | # define any compile-time flags |
22 | | CFLAGS = -Wall -std=c++11 |
| 20 | CXXFLAGS += -Wall -std=c++11 |
| 21 | LDFLAGS += |
23 | 22 | |
24 | 23 | # define directories containing header files: The OpenCASCADE Libraries are in the inc direcory of OpenCASCADE |
25 | 24 | INCLUDES = -I$(PROGPATH)/inc -I$(OCCINC) |
… |
… |
|
29 | 28 | |
30 | 29 | # define any libraries to link into executable: The OpenCASCADE Libraries are in the lib direcory of OpenCASCADE |
31 | 30 | LIBS = -L$(OCCT) \ |
32 | | -L/usr/local/opencascade-7.1.0/bin/lin64/gcc/lib -lTKBinL -lTKBin -lTKBinTObj -lTKBinXCAF -lTKBool -lTKBO -lTKBRep -lTKCAF \ |
| 31 | -lTKBinL -lTKBin -lTKBinTObj -lTKBinXCAF -lTKBool -lTKBO -lTKBRep -lTKCAF \ |
33 | 32 | -lTKCDF -lTKDCAF -lTKDraw -lTKernel -lTKFeat -lTKFillet -lTKG2d -lTKG3d -lTKGeomAlgo -lTKGeomBase -lTKHLR -lTKIGES -lTKLCAF -lTKMath -lTKMesh \ |
34 | 33 | -lTKMeshVS -lTKOffset -lTKOpenGl -lTKPrim -lTKQADraw -lTKService -lTKShHealing -lTKStdL -lTKStd -lTKSTEP209 -lTKSTEPAttr -lTKSTEPBase -lTKSTEP \ |
35 | 34 | -lTKSTL -lTKTObjDRAW -lTKTObj -lTKTopAlgo -lTKTopTest -lTKV3d -lTKVCAF -lTKViewerTest -lTKVRML -lTKXCAF -lTKXDEDRAW -lTKXDEIGES -lTKXDESTEP \ |
36 | | -lTKXMesh -lTKXmlL -lTKXml -lTKXmlTObj -lTKXmlXCAF -lTKXSBase -lTKXSDRAW -lstdc++ -lm |
| 35 | -lTKXMesh -lTKXmlL -lTKXml -lTKXmlTObj -lTKXmlXCAF -lTKXSBase -lTKXSDRAW -lm |
37 | 36 | |
38 | 37 | |
39 | 38 | # define the C++ source files |
… |
… |
|
72 | 71 | @echo fbd2cad has been compiled successfully |
73 | 72 | |
74 | 73 | $(MAIN): $(OBJS) |
75 | | $(CC) $(CFLAGS) $(INCLUDES) -o $(MAIN) $(OBJS) $(LFLAGS) $(LIBS) |
| 74 | $(CXX) $(CXXFLAGS) $(LDFLAGS) $(INCLUDES) -o $(MAIN) $(OBJS) $(LFLAGS) $(LIBS) |
76 | 75 | |
77 | 76 | # this is a suffix replacement rule for building .o's from .c's |
78 | 77 | # it uses automatic variables $<: the name of the prerequisite of |
79 | 78 | # the rule(a .c file) and $@: the name of the target of the rule (a .o file) |
80 | 79 | # (see the gnu make manual section about automatic variables) |
81 | 80 | .cpp.o: |
82 | | $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ |
| 81 | $(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@ |
83 | 82 | |
84 | 83 | clean: |
85 | 84 | $(RM) *.o *~ $(MAIN) |