Lines 1-91
Link Here
|
1 |
#************************************************************************* |
|
|
2 |
# |
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
5 |
# Copyright 2008 by Sun Microsystems, Inc. |
6 |
# |
7 |
# OpenOffice.org - a multi-platform office productivity suite |
8 |
# |
9 |
# $RCSfile: makefile.mk,v $ |
10 |
# |
11 |
# $Revision: 1.22 $ |
12 |
# |
13 |
# This file is part of OpenOffice.org. |
14 |
# |
15 |
# OpenOffice.org is free software: you can redistribute it and/or modify |
16 |
# it under the terms of the GNU Lesser General Public License version 3 |
17 |
# only, as published by the Free Software Foundation. |
18 |
# |
19 |
# OpenOffice.org is distributed in the hope that it will be useful, |
20 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
21 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
22 |
# GNU Lesser General Public License version 3 for more details |
23 |
# (a copy is included in the LICENSE file that accompanied this code). |
24 |
# |
25 |
# You should have received a copy of the GNU Lesser General Public License |
26 |
# version 3 along with OpenOffice.org. If not, see |
27 |
# <http://www.openoffice.org/license.html> |
28 |
# for a copy of the LGPLv3 License. |
29 |
# |
30 |
#************************************************************************* |
31 |
|
32 |
PRJ=. |
33 |
|
34 |
PRJNAME=mysqlcppconn |
35 |
TARGET=so_mysqlcppconn |
36 |
|
37 |
EXT_PROJECT_NAME=mysql-connector-cpp |
38 |
|
39 |
# --- Settings ----------------------------------------------------- |
40 |
|
41 |
.INCLUDE : settings.mk |
42 |
|
43 |
# --- Files -------------------------------------------------------- |
44 |
|
45 |
TARFILE_NAME=$(EXT_PROJECT_NAME) |
46 |
TARFILE_MD5=831126a1ee5af269923cfab6050769fe |
47 |
ADDITIONAL_FILES=\ |
48 |
driver$/makefile.mk \ |
49 |
driver$/nativeapi$/makefile.mk \ |
50 |
driver$/nativeapi$/binding_config.h \ |
51 |
cppconn$/config.h |
52 |
|
53 |
CONVERTFILES=\ |
54 |
cppconn$/build_config.h |
55 |
|
56 |
PATCH_FILES=\ |
57 |
$(TARFILE_NAME).patch \ |
58 |
patches/default_to_protocol_tcp.patch |
59 |
|
60 |
BUILD_DIR=driver |
61 |
BUILD_ACTION = \ |
62 |
cd nativeapi \ |
63 |
&& $(MAKE) $(MFLAGS) $(CALLMACROS) \ |
64 |
&& cd .. \ |
65 |
&& $(MAKE) $(MFLAGS) $(CALLMACROS) |
66 |
|
67 |
# --- Targets ------------------------------------------------------ |
68 |
|
69 |
.INCLUDE : set_ext.mk |
70 |
.INCLUDE : target.mk |
71 |
.INCLUDE : tg_ext.mk |
72 |
|
73 |
# --- post-build --------------------------------------------------- |
74 |
|
75 |
# "normalize" the output structure, in that the C/C++ headers are |
76 |
# copied to the canonic location in OUTPATH |
77 |
# The allows, later on, to use the standard mechanisms to deliver those |
78 |
# files, instead of delivering them out of OUTPATH/misc/build/..., which |
79 |
# could cause problems |
80 |
|
81 |
NORMALIZE_FLAG_FILE=so_normalized_$(TARGET) |
82 |
|
83 |
$(PACKAGE_DIR)$/$(NORMALIZE_FLAG_FILE) : $(PACKAGE_DIR)$/$(BUILD_FLAG_FILE) |
84 |
@$(GNUCOPY) -r $(PACKAGE_DIR)$/$(EXT_PROJECT_NAME)$/driver$/mysql_driver.h $(INCCOM) |
85 |
-@$(MKDIRHIER) $(INCCOM)$/cppconn |
86 |
@$(GNUCOPY) -r $(PACKAGE_DIR)$/$(EXT_PROJECT_NAME)$/cppconn$/* $(INCCOM)$/cppconn |
87 |
@$(TOUCH) $(PACKAGE_DIR)$/$(NORMALIZE_FLAG_FILE) |
88 |
|
89 |
normalize: $(PACKAGE_DIR)$/$(NORMALIZE_FLAG_FILE) |
90 |
|
91 |
$(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE) : normalize |