mirror of https://github.com/CGAL/cgal
Now we can compile this package inside or outside the CGAL tree.
This commit is contained in:
parent
5b41cedf06
commit
4411a51bc9
|
|
@ -119,6 +119,8 @@ Algebraic_kernel_GBRS/include/CGAL/Gbrs_polynomial_1_impl.h -text
|
|||
Algebraic_kernel_GBRS/include/CGAL/Gbrs_polynomial_2.h -text
|
||||
Algebraic_kernel_GBRS/include/CGAL/Gbrs_polynomial_2_impl.h -text
|
||||
Algebraic_kernel_GBRS/include/CGAL/Gbrs_solve_1.h -text
|
||||
Algebraic_kernel_GBRS/install_cgal -text
|
||||
Algebraic_kernel_GBRS/readme.txt -text
|
||||
Algebraic_kernel_GBRS/src/Gbrs/Gbrs_algebraic_1.cpp -text
|
||||
Algebraic_kernel_GBRS/src/Gbrs/Gbrs_polynomial_1.cpp -text
|
||||
Algebraic_kernel_GBRS/src/Gbrs/Gbrs_polynomial_2.cpp -text
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,18 @@
|
|||
There are two ways to compile: inside the CGAL tree or outside it. Clearly,
|
||||
it is easier to do it the second way, but compiling inside CGAL will give you
|
||||
all the advantages of the install script.
|
||||
|
||||
To compile inside the tree, it is necessary to copy all the files to the CGAL
|
||||
root directory, and install it in the normal way, using the provided modified
|
||||
script install_cgal.
|
||||
|
||||
To compile outside the tree, just go to the directory src/Gbrs and type
|
||||
"make outside". It will install the library in the CGAL lib directory.
|
||||
Note that there must be present the environment variables CGAL_MAKEFILE,
|
||||
RS_INCL, RS_LIB, MPFI_INCL and MPFI_LIB.
|
||||
|
||||
Have fun,
|
||||
|
||||
--
|
||||
Luis
|
||||
|
||||
|
|
@ -1,3 +1,15 @@
|
|||
# Copyright (c) 2006 Inria Lorraine (France). All rights reserved.
|
||||
#
|
||||
# This file is part of CGAL (www.cgal.org); you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public License as
|
||||
# published by the Free Software Foundation; version 2.1 of the License.
|
||||
# See the file LICENSE.LGPL distributed with CGAL.
|
||||
#
|
||||
# Licensees holding a valid commercial license may use this file in
|
||||
# accordance with the commercial license agreement provided with the software.
|
||||
#
|
||||
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
# $URL$
|
||||
# $Id$
|
||||
|
|
@ -35,14 +47,13 @@ Gbrs_polynomial_2$(OBJ_EXT)
|
|||
# target entries
|
||||
#---------------------------------------------------------------------#
|
||||
|
||||
#--------------------------------------------------
|
||||
# shared_lib: $(CGAL_OBJECTS)
|
||||
# $(CGAL_SHARED_LIB_CREATE)$(CGAL_SHARED_LIB) \
|
||||
# `ls *$(OBJ_EXT) | awk '{for (i=1; i<=NF;++i){printf "$(CGAL_OBJ_PREFIX)";print $$i}}'`\
|
||||
# $(CGAL_SHARED_LIB_LDFLAGS)
|
||||
# mv $(CGAL_SHARED_LIB) '$(CGAL_LIB_DESTINATION)'
|
||||
# rm $(CGAL_OBJECTS)
|
||||
#--------------------------------------------------
|
||||
all: outside
|
||||
|
||||
outside: CGAL_GBRS_LIB=libCGALGbrs.a
|
||||
outside: CXXFLAGS=$(CGAL_CXXFLAGS)
|
||||
outside: OUTSIDEPARS=-I$(PWD)/../../include -I$(MPFI_INCL) -I$(RS_INCL)
|
||||
outside: static_lib_no_install
|
||||
mv $(CGAL_GBRS_LIB) $(CGAL_LIB_DESTINATION)
|
||||
|
||||
static_lib: static_lib_no_install
|
||||
mv $(CGAL_GBRS_LIB) $(CGAL_LIB_DESTINATION)
|
||||
|
|
@ -64,5 +75,5 @@ clean:
|
|||
.SUFFIXES: .cpp $(SUFFIXES)
|
||||
|
||||
.cpp$(OBJ_EXT):
|
||||
$(CGAL_CXX) $(CXXFLAGS) -c $<
|
||||
$(CGAL_CXX) $(OUTSIDEPARS) $(CXXFLAGS) -c $<
|
||||
|
||||
|
|
|
|||
|
|
@ -17,25 +17,31 @@
|
|||
#
|
||||
# Author(s) : Luis Peñaranda <penarand@loria.fr>
|
||||
|
||||
include ${CGAL_MAKEFILE}
|
||||
include $(CGAL_MAKEFILE)
|
||||
|
||||
EXE_EXT=
|
||||
LIBMPFI=$(MPFI_LIB)/libmpfi.a
|
||||
LIBRS=$(RS_LIB)/librs.a
|
||||
LIBRSE=$(RS_LIB)/librsexport.a
|
||||
LIBCGALGBRS=$(CGAL_LIB_DESTINATION)/libCGALGbrs.a
|
||||
LIBS_FLAGS=-lmpfi -lrs -lrsexport -lCGALGbrs
|
||||
MYFLAGS=-g #-DCGAL_RS_DEBUG -DCGAL_RS_VERB=0
|
||||
|
||||
OBJS=Gbrs_polynomial_1 Gbrs_polynomial_2 Gbrs_algebraic_kernel_1
|
||||
OBJS= \
|
||||
Gbrs_polynomial_1$(EXE_EXT) \
|
||||
Gbrs_polynomial_2$(EXE_EXT) \
|
||||
Gbrs_algebraic_kernel_1$(EXE_EXT)
|
||||
|
||||
all: ${OBJS}
|
||||
outside: OUTSIDEPARS=-I$(PWD)/../../include -I$(RS_INCL) -L$(RS_LIB)
|
||||
outside: $(OBJS)
|
||||
|
||||
# TODO: make general rules
|
||||
|
||||
Gbrs_polynomial_1: Gbrs_polynomial_1.C
|
||||
${CGAL_CXX} ${MYFLAGS} ${CGAL_CXXFLAGS} ${CGAL_LIBPATHFLAGS} $< ${CGAL_LDFLAGS} -o $@
|
||||
|
||||
Gbrs_polynomial_2: Gbrs_polynomial_2.C
|
||||
${CGAL_CXX} ${MYFLAGS} ${CGAL_CXXFLAGS} ${CGAL_LIBPATHFLAGS} $< ${CGAL_LDFLAGS} -o $@
|
||||
|
||||
Gbrs_algebraic_kernel_1: Gbrs_algebraic_kernel_1.C
|
||||
${CGAL_CXX} ${MYFLAGS} ${CGAL_CXXFLAGS} ${CGAL_LIBPATHFLAGS} $< ${CGAL_LDFLAGS} -o $@
|
||||
all: $(OBJS)
|
||||
|
||||
clean:
|
||||
rm -f ${OBJS}
|
||||
rm -f $(OBJS)
|
||||
|
||||
.SUFFIXES: .C $(EXE_EXT) $(SUFFIXES)
|
||||
|
||||
.C$(EXE_EXT):
|
||||
$(CGAL_CXX) $(MYFLAGS) $(OUTSIDEPARS) $(CGAL_CXXFLAGS) $(CGAL_LIBPATHFLAGS) $< $(CGAL_LDFLAGS) $(LIBS_FLAGS) $(LIBMPFI) $(LIBRSE) $(LIBRS) $(LIBCGALGBRS) -o $@
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue