]> err.no Git - sope/blob - sope-gdl1/MySQL/GNUmakefile.preamble
fixed some NGMail framework build issue
[sope] / sope-gdl1 / MySQL / GNUmakefile.preamble
1
2 # GNUmakefile
3 #
4 # Copyright (C) 2003-2005 Helge Hess
5 #
6 # Author: Helge Hess (helge.hess@opengroupware.org)
7 #
8 # This file is part of the SQLite3 Adaptor Library
9 #
10 # This library is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU Library General Public
12 # License as published by the Free Software Foundation; either
13 # version 2 of the License, or (at your option) any later version.
14 #
15 # This library is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 # Library General Public License for more details.
19 #
20 # You should have received a copy of the GNU Library General Public
21 # License along with this library; see the file COPYING.LIB.
22 # If not, write to the Free Software Foundation,
23 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
25 SOPE_ROOT=../..
26
27 ifeq ($(frameworks),yes)
28 BUNDLE_INSTALL_DIR := $(FRAMEWORK_INSTALL_DIR)/GDLAccess.framework/Resources/GDLAdaptors/
29 else
30 BUNDLE_INSTALL_DIR = $(GNUSTEP_INSTALLATION_DIR)/Library/GDLAdaptors-$(MAJOR_VERSION).$(MINOR_VERSION)/
31 endif
32
33
34 MySQL_BUNDLE_LIBS += \
35         -lGDLAccess     \
36         -lEOControl     \
37         `mysql_config --libs`
38
39 MySQLD_BUNDLE_LIBS += \
40         -lGDLAccess     \
41         -lEOControl     \
42         `mysql_config --libs`
43
44 gdltest_TOOL_LIBS += \
45         -lGDLAccess     \
46         -lNGExtensions
47
48 # set compile flags and go
49
50 ADDITIONAL_CFLAGS += `mysql_config --cflags`
51
52 ADDITIONAL_INCLUDE_DIRS += \
53         -I../GDLAccess -I.. -I$(SOPE_ROOT)
54
55 ADDITIONAL_INCLUDE_DIRS += \
56         -I$(SOPE_ROOT)/sope-core/               \
57         -I$(SOPE_ROOT)/sope-core/NGExtensions
58
59
60 # dependencies
61
62
63 # library/framework search pathes
64
65 DEP_DIRS = \
66         ../GDLAccess \
67         $(SOPE_ROOT)/sope-core/EOControl
68
69 ifneq ($(frameworks),yes)
70 ADDITIONAL_LIB_DIRS += \
71         $(foreach dir,$(DEP_DIRS),\
72           -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
73 else
74 ADDITIONAL_LIB_DIRS += \
75         $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
76 endif
77
78 SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib