xref: /aoo42x/main/boost/makefile.mk (revision 2c75065c)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir# dmake create_clean -- just unpacks
25cdf0e10cSrcweir# dmake patch -- unpacks and applies patch file
26cdf0e10cSrcweir# dmake create_patch -- creates a patch file
27cdf0e10cSrcweir
28cdf0e10cSrcweirPRJ=.
29cdf0e10cSrcweir
30cdf0e10cSrcweirPRJNAME=boost
31cdf0e10cSrcweirTARGET=ooo_boost
32cdf0e10cSrcweir
33cdf0e10cSrcweir# --- Settings -----------------------------------------------------
34cdf0e10cSrcweir
35cdf0e10cSrcweir.INCLUDE :	settings.mk
36cdf0e10cSrcweir
37cdf0e10cSrcweir# force patched boost for sunpro CC
38cdf0e10cSrcweir# to workaround opt bug when compiling with -xO3
39cdf0e10cSrcweir.IF "$(SYSTEM_BOOST)" == "YES" && ("$(OS)"!="SOLARIS" || "$(COM)"=="GCC")
40cdf0e10cSrcweirall:
41cdf0e10cSrcweir	@echo "An already available installation of boost should exist on your system."
42cdf0e10cSrcweir	@echo "Therefore the version provided here does not need to be built in addition."
43cdf0e10cSrcweir.ELSE			# "$(SYSTEM_BOOST)" == "YES" && ("$(OS)"!="SOLARIS" || "$(COM)"=="GCC")
44cdf0e10cSrcweir
45cdf0e10cSrcweir# --- Files --------------------------------------------------------
46cdf0e10cSrcweir
47ecad6845SPedro GiffuniTARFILE_NAME=boost_1_48_0
48ecad6845SPedro GiffuniTARFILE_MD5=d1e9a7a7f532bb031a3c175d86688d95
49*2c75065cSPedro GiffuniPATCH_FILES=\
50*2c75065cSPedro Giffuni	$(TARFILE_NAME).patch \
51*2c75065cSPedro Giffuni	boost_freebsd.patch
52cdf0e10cSrcweir
53cdf0e10cSrcweirCONFIGURE_DIR=
54cdf0e10cSrcweirCONFIGURE_ACTION=
55cdf0e10cSrcweir
56cdf0e10cSrcweirBUILD_DIR=
57cdf0e10cSrcweirBUILD_ACTION=
58cdf0e10cSrcweirBUILD_FLAGS=
59cdf0e10cSrcweir
60cdf0e10cSrcweir# --- Targets ------------------------------------------------------
61cdf0e10cSrcweir
62cdf0e10cSrcweir.INCLUDE : set_ext.mk
63cdf0e10cSrcweir.INCLUDE : target.mk
64cdf0e10cSrcweir.INCLUDE : tg_ext.mk
65cdf0e10cSrcweir
66cdf0e10cSrcweir# --- post-build ---------------------------------------------------
67cdf0e10cSrcweir
68cdf0e10cSrcweir# "normalize" the output structure, in that the C++ headers are
69cdf0e10cSrcweir# copied to the canonic location in OUTPATH
70cdf0e10cSrcweir# The allows, later on, to use the standard mechanisms to deliver those
71cdf0e10cSrcweir# files, instead of delivering them out of OUTPATH/misc/build/..., which
72cdf0e10cSrcweir# could cause problems
73cdf0e10cSrcweir
74cdf0e10cSrcweirNORMALIZE_FLAG_FILE=so_normalized_$(TARGET)
75cdf0e10cSrcweir
76cdf0e10cSrcweir$(PACKAGE_DIR)$/$(NORMALIZE_FLAG_FILE) : $(PACKAGE_DIR)$/$(BUILD_FLAG_FILE)
77cdf0e10cSrcweir    -@$(MKDIRHIER) $(INCCOM)$/$(PRJNAME)
7862840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/*.h $(INCCOM)$/$(PRJNAME)
7962840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/*.hpp $(INCCOM)$/$(PRJNAME)
8062840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/bind $(INCCOM)$/$(PRJNAME)
8162840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/config $(INCCOM)$/$(PRJNAME)
8262840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/detail $(INCCOM)$/$(PRJNAME)
8362840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/exception $(INCCOM)$/$(PRJNAME)
8462840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/function $(INCCOM)$/$(PRJNAME)
8562840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/iterator $(INCCOM)$/$(PRJNAME)
8662840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/mpl $(INCCOM)$/$(PRJNAME)
8762840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/numeric $(INCCOM)$/$(PRJNAME)
8862840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/optional $(INCCOM)$/$(PRJNAME)
8962840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/pending $(INCCOM)$/$(PRJNAME)
9062840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/pool $(INCCOM)$/$(PRJNAME)
9162840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/preprocessor $(INCCOM)$/$(PRJNAME)
9262840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/ptr_container $(INCCOM)$/$(PRJNAME)
9362840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/range $(INCCOM)$/$(PRJNAME)
9462840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/spirit $(INCCOM)$/$(PRJNAME)
9562840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/smart_ptr $(INCCOM)$/$(PRJNAME)
9662840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/tuple $(INCCOM)$/$(PRJNAME)
9762840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/type_traits $(INCCOM)$/$(PRJNAME)
9862840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/utility $(INCCOM)$/$(PRJNAME)
9962840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/variant $(INCCOM)$/$(PRJNAME)
100cdf0e10cSrcweir    @$(TOUCH) $(PACKAGE_DIR)$/$(NORMALIZE_FLAG_FILE)
101cdf0e10cSrcweir
102cdf0e10cSrcweirnormalize: $(PACKAGE_DIR)$/$(NORMALIZE_FLAG_FILE)
103cdf0e10cSrcweir
104cdf0e10cSrcweir$(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE) : normalize
105cdf0e10cSrcweir.ENDIF			# "$(SYSTEM_BOOST)" == "YES" && ("$(OS)"!="SOLARIS" || "$(COM)"=="GCC")
106