# 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 # # Contributor(s): # # # $Id: Makefile.in.refDatabases,v 1.12 2003-02-10 11:54:30 dimitr Exp $ # ROOT=.. ObjModuleName=refDatabases include $(ROOT)/gen/make.platform include $(ROOT)/gen/make.rules include $(ROOT)/gen/make.defaults 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.gdb yachts.lnk empty.gdb : $(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.gdb $(RM) -f yachts.lnk ln -fs $(SRC_ROOT)/empty.gdb 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.gdb help.gdb metadata.gdb security.fdb msg.gdb: $(SRC_ROOT)/msgs/msg.gbak $(BIN)/gbak_static -MODE read_only -R $< $@ touch $@ chmod 444 $@ help.gdb: $(FIREBIRD)/help/help.gdb $(RM) -f $@ ln -fs $^ $@ $(FIREBIRD)/help/help.gdb: $(SRC_ROOT)/misc/help.gbak $(BIN)/gbak_static -MODE read_only -R $< $@ touch $@ chmod 444 $@ security.fdb: $(FIREBIRD)/security.fdb $(RM) -f $@ ln -fs $^ $@ $(FIREBIRD)/security.fdb: $(SRC_ROOT)/misc/security.gbak $(BIN)/gbak_static -R $< $@ touch $@ chmod 666 $@ metadata.gdb: $(SRC_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.gdb.x: $(SRC_ROOT)/misc/metadata.sql $(BIN)/isql -i $< touch $@ chmod 444 $@ FORCE: