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: Mark O'Donohue <mark.odonohue@ludwig.edu.au>
33
CFLAGS += -DBOOT_BUILD
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
43
JRDBOOT_Files = dsc.cpp gds.cpp isc.cpp isc_ipc.cpp $(JRDBOOT_Extra_Files)
44
JRDBOOT_Sources = $(addprefix jrd/, $(JRDBOOT_Files))
45
JRDBOOT_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(JRDBOOT_Sources))))
48
GPRECOMMON_Files += cmd.cpp cme.cpp cmp.cpp c_cxx.cpp exp.cpp \
49
gpre.cpp hsh.cpp int_cxx.cpp jrdmet.cpp movg.cpp \
50
msc.cpp par.cpp pat.cpp sqe.cpp sql.cpp
52
GPRE_Files = $(GPRECOMMON_Files) pretty.cpp gpre_meta_boot.cpp
53
GPRE_Sources = $(addprefix gpre/, $(GPRE_Files))
54
GPRE_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(GPRE_Sources))))
58
GPREBOOT_Objects = $(JRDBOOT_Objects) $(GPRE_Objects) $(OS_SPECIFIC_Objects) \
59
$(FBCOMMON_Objects) $(FBCONFIG_Objects) $(FBCLASSES_ClientObjects) $(FBCLASSES_MsgObjects)
61
AllObjects = $(GPREBOOT_Objects)
63
Dependencies = $(AllObjects:.o=.d)
70
gpre_boot : $(GPRE_BOOT)
72
$(GPRE_BOOT): $(GPREBOOT_Objects)
73
$(STATICEXE_LINK) $(LINK_OPTS) $^ -o $@ -L$(LIB) $(LINK_LIBS)
74
-$(RM) $(GPRE_CURRENT)
75
(cd $(@D); $(LN) $(@F) $(notdir $(GPRE_CURRENT)))
79
include $(ROOT)/gen/make.shared.targets
82
-include $(Dependencies)