1
# This library is free software; you can redistribute it and/or
2
# modify it under the terms of the GNU Lesser General Public
3
# License as published by the Free Software Foundation; either
4
# version 2.1 of the License, or (at your option) any later version.
5
# You may obtain a copy of the Licence at
6
# http://www.gnu.org/licences/lgpl.html
8
# As a special exception this file can also be included in modules
9
# with other source code as long as that source code has been
10
# released under an Open Source Initiative certificed licence.
11
# More information about OSI certification can be found at:
12
# http://www.opensource.org
14
# This module is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
# GNU Lesser General Public Licence for more details.
19
# This module was created by members of the firebird development
20
# team. All individual contributions remain the Copyright (C) of
21
# those individuals and all rights are reserved. Contributors to
22
# this file are either listed below or can be obtained from a CVS
25
# Created by: Blas Rodriguez Somoza
32
ObjModuleType=superclient
33
FB_CFLAGS+=-DSUPERCLIENT @PTHREAD_CFLAGS@
35
include $(ROOT)/gen/make.defaults
36
include $(ROOT)/gen/make.platform
37
include $(ROOT)/gen/make.rules
38
include $(ROOT)/gen/make.shared.variables
44
FBUDF_Other_Sources = common/classes/timestamp.cpp
45
FBUDF_Files = fbudf.cpp
46
FBUDF_Sources = $(addprefix extlib/fbudf/, $(FBUDF_Files)) $(FBUDF_Other_Sources)
47
FBUDF_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(FBUDF_Sources))))
49
UTIL_Files = ib_util.c
50
UTIL_Sources = $(addprefix extlib/, $(UTIL_Files))
51
UTIL_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(UTIL_Sources))))
53
CLASSES_Files = timestamp.cpp
54
CLASSES_Sources = $(addprefix common/classes/, $(CLASSES_Files))
55
CLASSES_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(CLASSES_Sources))))
57
AllObjects = $(FBUDF_Objects) $(FBUTIL_Objects) $(CLASSES_Objects)
58
Dependencies = $(AllObjects:.o=.d)
66
# The libraries in this directory could do with a bit more work, since they
67
# the previous code (presumably by John) that does the ar crv stuff, might
68
# work still, even if the .o files have directory prefixes on them.
69
# And the udf stuff doesn't want to do .$(SHRLIB_EXT).X.X.X extensions in UDF directory
70
# or the loader gets confused with loading the links.
76
# User defined functions. (I've put the .$(SHRLIB_EXT) extension back onto the library)
79
lib_fbudf: $(UDF)/fbudf.$(SHRLIB_EXT)
81
$(UDF)/fbudf.$(SHRLIB_EXT): $(AllObjects)
82
ifeq ($(PLATFORM),win32)
83
$(LIB_LINK) $(LIB_LINK_OPTIONS) $(LIB_LINK_SONAME)fbudf.$(SHRLIB_EXT) \
84
-o $@ $^ @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
86
ifeq ($(PLATFORM),DARWIN)
87
$(LIB_LINK) $(LIB_BUNDLE_OPTIONS) \
88
-L$(LIB) -lm -o $@ $^ @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
90
$(LIB_LINK) $(LIB_LINK_OPTIONS) $(LIB_LINK_SONAME)fbudf.$(SHRLIB_EXT) \
91
$(LIB_LINK_RPATH)$(FirebirdInstallPrefix)/lib -L$(LIB) -lm -o $@ $^ @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
95
include $(ROOT)/gen/make.shared.targets
97
-include $(Dependencies)