mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 22:43:03 +01:00
127 lines
3.7 KiB
Makefile
127 lines
3.7 KiB
Makefile
# This library is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
# License as published by the Free Software Foundation; either
|
|
# version 2.1 of the License, or (at your option) any later version.
|
|
# You may obtain a copy of the Licence at
|
|
# http://www.gnu.org/licences/lgpl.html
|
|
#
|
|
# As a special exception this file can also be included in modules
|
|
# with other source code as long as that source code has been
|
|
# released under an Open Source Initiative certificed licence.
|
|
# More information about OSI certification can be found at:
|
|
# http://www.opensource.org
|
|
#
|
|
# This module is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Lesser General Public Licence for more details.
|
|
#
|
|
# This module was created by members of the firebird development
|
|
# team. All individual contributions remain the Copyright (C) of
|
|
# those individuals and all rights are reserved. Contributors to
|
|
# this file are either listed below or can be obtained from a CVS
|
|
# history command.
|
|
#
|
|
# Created by: Mark O'Donohue <mark.odonohue@ludwig.edu.au>
|
|
#
|
|
# Contributor(s):
|
|
#
|
|
#
|
|
# $Id: Makefile.in.refDatabases,v 1.18 2003-07-11 02:23:58 brodsom Exp $
|
|
#
|
|
ROOT=..
|
|
ObjModuleName=refDatabases
|
|
|
|
|
|
include $(ROOT)/gen/make.defaults
|
|
include $(ROOT)/gen/make.platform
|
|
include $(ROOT)/gen/make.rules
|
|
include $(ROOT)/gen/make.shared.variables
|
|
|
|
@SET_MAKE@
|
|
|
|
# If we export the username/password we get an error because we can't connect
|
|
# to security.fdb! So we won't export them while we make the databases...
|
|
#
|
|
unexport ISC_USER
|
|
unexport ISC_PASSWORD
|
|
export DYLD_FRAMEWORK_PATH
|
|
DYLD_FRAMEWORK_PATH= $(OBJS)/firebird
|
|
export INTERBASE
|
|
|
|
|
|
|
|
.PHONY: empty_db refDatabases
|
|
|
|
# This is where you are going to have trouble if there is one, at creating
|
|
# the first empty database. Things to watch out for, fb_lock_mgr not being
|
|
# able to be started, $INTERBASE variable pointing in the wrong place,
|
|
# shared library path LD_LIBRARY_PATH not pointing to new stuff (mind you this
|
|
# point it should be creating using create_db statically linked).
|
|
# Also you don't need to worry about lock mgr not being able to set uid to
|
|
# superuser. You do not have to be root to build classic, it's just a warning
|
|
# and the build process works fine.
|
|
|
|
empty_db : empty.fdb yachts.lnk
|
|
|
|
empty.fdb : $(BIN)/create_db
|
|
-$(RM) $@
|
|
$(BIN)/create_db $@
|
|
$(TOUCH) $@
|
|
$(CHMOD) 444 $@
|
|
|
|
# Ok so Jim had/has a sailing theme, and the sample database that a lot
|
|
# of .epp files require to compile is yachts.lnk. MOD 05-Aug-2002
|
|
|
|
yachts.lnk: empty.fdb
|
|
$(RM) -f yachts.lnk
|
|
$(LN) -f empty.fdb yachts.lnk
|
|
|
|
|
|
|
|
# These are the rest of the databases used to build the system. We also build
|
|
# the help database from here.
|
|
|
|
.PHONY: ref_databases
|
|
|
|
ref_databases : msg.fdb help.fdb metadata.fdb security.fdb
|
|
|
|
msg.fdb: $(BLD_ROOT)/misc/msg.gbak
|
|
$(BIN)/gbak_static -MODE read_only -R $< $@
|
|
$(TOUCH) $@
|
|
$(CHMOD) 444 $@
|
|
|
|
help.fdb: $(FIREBIRD)/help/help.fdb
|
|
$(RM) -f $@
|
|
$(LN) -f $^ $@
|
|
|
|
$(FIREBIRD)/help/help.fdb: $(BLD_ROOT)/misc/help.gbak
|
|
$(BIN)/gbak_static -MODE read_only -R $< $@
|
|
$(TOUCH) $@
|
|
$(CHMOD) 444 $@
|
|
|
|
security.fdb: $(FIREBIRD)/security.fdb
|
|
$(RM) -f $@
|
|
$(LN) -f $^ $@
|
|
|
|
$(FIREBIRD)/security.fdb: $(BLD_ROOT)/misc/security.gbak
|
|
$(BIN)/gbak_static -R $< $@
|
|
$(TOUCH) $@
|
|
$(CHMOD) 666 $@
|
|
|
|
metadata.fdb: $(BLD_ROOT)/misc/metadata.gbak
|
|
$(BIN)/gbak_static -MODE read_only -R $< $@
|
|
$(TOUCH) $@
|
|
$(CHMOD) 444 $@
|
|
|
|
# An alternative metadata creation method, this one is actually preferred
|
|
# since it ensures the data is valid.
|
|
|
|
metadata.fdb.x: $(SRC_ROOT)/misc/metadata.sql
|
|
$(BIN)/isql -i $<
|
|
$(TOUCH) $@
|
|
$(CHMOD) 444 $@
|
|
|
|
|
|
FORCE:
|