xref: /aoo42x/main/boost/makefile.mk (revision 62840caa)
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
47cdf0e10cSrcweirTARFILE_NAME=boost_1_39_0
48cdf0e10cSrcweirTARFILE_MD5=fcc6df1160753d0b8c835d17fdeeb0a7
49cdf0e10cSrcweirPATCH_FILES=$(TARFILE_NAME).patch
50cdf0e10cSrcweir# See https://svn.boost.org/trac/boost/ticket/3780
51cdf0e10cSrcweirPATCH_FILES+=aliasing.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)
78*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/*.h $(INCCOM)$/$(PRJNAME)
79*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/*.hpp $(INCCOM)$/$(PRJNAME)
80*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/bind $(INCCOM)$/$(PRJNAME)
81*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/config $(INCCOM)$/$(PRJNAME)
82*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/detail $(INCCOM)$/$(PRJNAME)
83*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/exception $(INCCOM)$/$(PRJNAME)
84*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/function $(INCCOM)$/$(PRJNAME)
85*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/iterator $(INCCOM)$/$(PRJNAME)
86*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/mpl $(INCCOM)$/$(PRJNAME)
87*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/numeric $(INCCOM)$/$(PRJNAME)
88*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/optional $(INCCOM)$/$(PRJNAME)
89*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/pending $(INCCOM)$/$(PRJNAME)
90*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/pool $(INCCOM)$/$(PRJNAME)
91*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/preprocessor $(INCCOM)$/$(PRJNAME)
92*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/ptr_container $(INCCOM)$/$(PRJNAME)
93*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/range $(INCCOM)$/$(PRJNAME)
94*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/spirit $(INCCOM)$/$(PRJNAME)
95*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/smart_ptr $(INCCOM)$/$(PRJNAME)
96*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/tuple $(INCCOM)$/$(PRJNAME)
97*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/type_traits $(INCCOM)$/$(PRJNAME)
98*62840caaSPedro Giffuni    @$(GNUCOPY) -R $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/utility $(INCCOM)$/$(PRJNAME)
99*62840caaSPedro 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