mirror of https://github.com/CGAL/cgal
cleanup generic rules
This commit is contained in:
parent
8ce66f78d5
commit
1b533e66fd
|
|
@ -20,7 +20,7 @@
|
||||||
# Laurent Rineau
|
# Laurent Rineau
|
||||||
|
|
||||||
# defaut rule
|
# defaut rule
|
||||||
all: static_lib
|
defaut: static_lib
|
||||||
|
|
||||||
#---------------------------------------------------------------------#
|
#---------------------------------------------------------------------#
|
||||||
# object files
|
# object files
|
||||||
|
|
@ -44,34 +44,6 @@ SHARED_LIB_CREATE = $(CGAL_BENCHMARK_SHARED_LIB_CREATE)
|
||||||
SHARED_LIB = $(CGAL_BENCHMARK_SHARED_LIB)
|
SHARED_LIB = $(CGAL_BENCHMARK_SHARED_LIB)
|
||||||
STATIC_LIB = $(CGAL_BENCHMARK_LIB)
|
STATIC_LIB = $(CGAL_BENCHMARK_LIB)
|
||||||
|
|
||||||
#---------------------------------------------------------------------#
|
|
||||||
# suffix rules
|
|
||||||
#---------------------------------------------------------------------#
|
|
||||||
|
|
||||||
.SUFFIXES: .cpp
|
|
||||||
|
|
||||||
.cpp$(OBJ_EXT):
|
|
||||||
$(CGAL_CXX) $(CXXFLAGS) -c $<
|
|
||||||
|
|
||||||
FLEX ?=flex
|
|
||||||
BISON ?=bison
|
|
||||||
|
|
||||||
# Apparently, old versions of bison (e.g., 1.28) name the generated definion
|
|
||||||
# header file <base>.cpp.h. The file must be renamed to <base>.hpp
|
|
||||||
BISON_VERSION_CMD =expr match "`bison --version`" '.*\([1-9]\.[0-9]*\)'
|
|
||||||
BISON_VERSION =$(shell $(BISON_VERSION_CMD))
|
|
||||||
OLD_BISON_VERSION_CMD =expr "$(BISON_VERSION)" \<= 1.28
|
|
||||||
OLD_BISON_VERSION =$(shell $(OLD_BISON_VERSION_CMD))
|
|
||||||
|
|
||||||
%.cpp %.hpp : %.y
|
|
||||||
$(BISON) -d $< -o $*.cpp
|
|
||||||
ifeq ($(OLD_BISON_VERSION), 1)
|
|
||||||
mv $*.cpp.h $*.hpp
|
|
||||||
endif
|
|
||||||
|
|
||||||
%.cpp : %.l
|
|
||||||
$(FLEX) -8 -o$@ $<
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------#
|
#---------------------------------------------------------------------#
|
||||||
# common rules for all libraries
|
# common rules for all libraries
|
||||||
#---------------------------------------------------------------------#
|
#---------------------------------------------------------------------#
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue