mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-24 14:48:53 +00:00
Re-add untrasnfered files
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@9273 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bf408d7086
commit
97619cbd19
7 changed files with 359 additions and 12 deletions
|
@ -66,21 +66,21 @@ compile correctly:
|
|||
have one installed):
|
||||
|
||||
cd location_of_the_libobjc_library
|
||||
/usr/bin/make target=i386-mingw32
|
||||
/usr/bin/make target=i386-mingw32 install
|
||||
/usr/bin/make target=i386-mingw32 BUILD_DLL=yes WITH_DLL=yes
|
||||
/usr/bin/make target=i386-mingw32 BUILD_DLL=yes WITH_DLL=yes install
|
||||
|
||||
7. Now we can configure and make the base library.
|
||||
|
||||
cd location_of_the_core_package/base
|
||||
./configure --target=i386-mingw32
|
||||
/usr/bin/make target=i386-mingw32
|
||||
/usr/bin/make target=i386-mingw32 install
|
||||
./configure --target=i386-mingw32
|
||||
/usr/bin/make target=i386-mingw32 BUILD_DLL=yes WITH_DLL=yes
|
||||
/usr/bin/make target=i386-mingw32 BUILD_DLL=yes WITH_DLL=yes install
|
||||
|
||||
Note that the base library is not completely ported to run on MinGW yet.
|
||||
In particular, the gstep-base DLL doesn't seem to be set up correctly.
|
||||
To compile the gstep-base as a static library, use:
|
||||
|
||||
/usr/bin/make shared=no
|
||||
/usr/bin/make shared=no target=i386-mingw32
|
||||
|
||||
If you get tired of typing "target=i386-mingw32" all the time, then before
|
||||
you exec the GNUstep.sh script, just set the GNUSTEP_HOST:
|
||||
|
@ -95,7 +95,7 @@ Native MinGW
|
|||
(Information provided by Craig Miskell)
|
||||
|
||||
So far, this configuration only works when compiling the Makefile package
|
||||
(gstep-make). It should, in the future work on the libraries. First, you
|
||||
(gnustep-make). It should, in the future work on the libraries. First, you
|
||||
need to get a port of sh (probably zsh) for Windows
|
||||
(ftp://ftp.blarg.net/users/amol/).
|
||||
|
||||
|
|
|
@ -549,28 +549,46 @@ work.
|
|||
@c -----------------------------------------
|
||||
@node Windows with CYGWIN, , Unixware-2.1.3/Intel, Machine Specific
|
||||
@section Windows with CYGWIN (@emph{Unstable!})
|
||||
@c Contact?: Adam Fedor <fedor@gnu.org>
|
||||
|
||||
@table @samp
|
||||
@item Recommended compiler
|
||||
gcc 2.95.2 (Cygwin release 1.1.2 or later)
|
||||
|
||||
@item Extra libs needed
|
||||
Objective-C library DLL (@url{ftp://ftp.gnustep.org/pub/gnustep/contrib})
|
||||
Objective-C library DLL (@url{ftp://ftp.gnustep.org/pub/gnustep/libs})
|
||||
for shared libs.
|
||||
|
||||
@item Special Instructions
|
||||
Static libs require no extra effort (just make shared=no), however, DLLs
|
||||
(shared=yes) are compiled by default, and for this you need a special
|
||||
version of the Objective-C library that also compiles as a DLL. Make sure
|
||||
files and compilation done in Unix mode (no ^M in files). Due to some
|
||||
interesting dependancies, it is recommended that you compile and install
|
||||
each sub-package (make, base, etc) independantly. Gdomap services
|
||||
files and compilation done in Unix mode (no ^M in files). For shared libs
|
||||
you have to type @samp{make BUILD_DLL=yes WITH_DLL=yes} for all packages,
|
||||
despite the fact that this should be set automatically.
|
||||
Gdomap services
|
||||
not set up correctly. Must add services lines to @file{C:\WINDOWS\services}
|
||||
(on Windows 98) or xxx (on Windows NT).
|
||||
Base library only. No native GUI backend.
|
||||
@end table
|
||||
|
||||
@c -----------------------------------------
|
||||
@node Windows with MinGW, , Unixware-2.1.3/Intel, Machine Specific
|
||||
@section Windows with MinGW (@emph{Unstable!})
|
||||
|
||||
@table @samp
|
||||
@item Recommended compiler
|
||||
gcc 2.95.2 (MingW release 1999-11-07)
|
||||
|
||||
@item Extra libs needed
|
||||
Objective-C library DLL (@url{ftp://ftp.gnustep.org/pub/gnustep/libs})
|
||||
for shared libs.
|
||||
|
||||
@item Special Instructions
|
||||
See the @file{README.MinGW} file located in the gnustep-make Documentation
|
||||
directory for instructions.
|
||||
Base library only. No native GUI backend.
|
||||
@end table
|
||||
|
||||
@ifclear HOWTO
|
||||
@include end.texi
|
||||
@end ifclear
|
||||
|
|
50
GNUmakefile.preamble
Normal file
50
GNUmakefile.preamble
Normal file
|
@ -0,0 +1,50 @@
|
|||
#
|
||||
# GNUmakefile.preamble
|
||||
#
|
||||
# Project specific makefile variables, and additional
|
||||
#
|
||||
# Do not put any GNUmakefile rules in this file, instead they should
|
||||
# be put into GNUmakefile.postamble.
|
||||
#
|
||||
|
||||
#
|
||||
# Flags dealing with compiling and linking
|
||||
#
|
||||
|
||||
# Additional flags to pass to the preprocessor
|
||||
ADDITIONAL_CPPFLAGS +=
|
||||
|
||||
# Additional flags to pass to the Objective-C compiler
|
||||
ADDITIONAL_OBJCFLAGS +=
|
||||
|
||||
# Additional flags to pass to the C compiler
|
||||
ADDITIONAL_CFLAGS +=
|
||||
|
||||
# Additional LDFLAGS to pass to the linker
|
||||
ADDITIONAL_LDFLAGS +=
|
||||
|
||||
# Additional include directories the compiler should search
|
||||
ADDITIONAL_INCLUDE_DIRS +=
|
||||
|
||||
# Additional library directories the linker should search
|
||||
ADDITIONAL_LIB_DIRS +=
|
||||
|
||||
# Additional libraries when linking Objective-C programs
|
||||
ADDITIONAL_OBJC_LIBS +=
|
||||
|
||||
# Additional libraries when linking tools
|
||||
ADDITIONAL_TOOL_LIBS +=
|
||||
|
||||
# Additional libraries when linking applications
|
||||
ADDITIONAL_GUI_LIBS +=
|
||||
|
||||
# Libraries that a shared library depends upon
|
||||
LIBRARIES_DEPEND_UPON +=
|
||||
|
||||
#
|
||||
# Flags dealing with installing and uninstalling
|
||||
#
|
||||
|
||||
# Additional directories to be created during installation
|
||||
ADDITIONAL_INSTALL_DIRS +=
|
||||
|
33
clean_cpu.sh
Executable file
33
clean_cpu.sh
Executable file
|
@ -0,0 +1,33 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# clean_cpu.sh
|
||||
#
|
||||
# Clean up the target cpu name.
|
||||
#
|
||||
# Copyright (C) 1997 Free Software Foundation, Inc.
|
||||
#
|
||||
# Author: Scott Christley <scottc@net-community.com>
|
||||
#
|
||||
# This file is part of the GNUstep Makefile Package.
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public
|
||||
# License along with this library; see the file COPYING.LIB.
|
||||
# If not, write to the Free Software Foundation,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
case "$1" in
|
||||
# Intel processors are made equivalent
|
||||
i[3456]86)
|
||||
echo ix86
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo $1
|
||||
exit 0
|
||||
;;
|
||||
esac
|
34
clean_os.sh
Executable file
34
clean_os.sh
Executable file
|
@ -0,0 +1,34 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# clean_os.sh
|
||||
#
|
||||
# Clean up the target OS name for GNUstep.
|
||||
#
|
||||
# Copyright (C) 1997 Free Software Foundation, Inc.
|
||||
#
|
||||
# Author: Scott Christley <scottc@net-community.com>
|
||||
#
|
||||
# This file is part of the GNUstep Makefile Package.
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public
|
||||
# License along with this library; see the file COPYING.LIB.
|
||||
# If not, write to the Free Software Foundation,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
# Nothing to clean right now
|
||||
case "$1" in
|
||||
# Remove version number for FreeBSD
|
||||
freebsdelf*)
|
||||
echo freebsdelf
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo $1
|
||||
exit 0
|
||||
;;
|
||||
esac
|
24
clean_vendor.sh
Executable file
24
clean_vendor.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# clean_vendor.sh
|
||||
#
|
||||
# Clean up the target vendor name.
|
||||
#
|
||||
# Copyright (C) 1997 Free Software Foundation, Inc.
|
||||
#
|
||||
# Author: Scott Christley <scottc@net-community.com>
|
||||
#
|
||||
# This file is part of the GNUstep Makefile Package.
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public
|
||||
# License along with this library; see the file COPYING.LIB.
|
||||
# If not, write to the Free Software Foundation,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
# Nothing to clean right now
|
||||
echo $1
|
188
test-library.make
Normal file
188
test-library.make
Normal file
|
@ -0,0 +1,188 @@
|
|||
#
|
||||
# test-library.make
|
||||
#
|
||||
# Makefile rules for dejagnu/GNUstep based testing
|
||||
#
|
||||
# Copyright (C) 1997 Free Software Foundation, Inc.
|
||||
#
|
||||
# Author: Scott Christley <scottc@net-community.com>
|
||||
# Author: Ovidiu Predescu <ovidiu@net-community.com>
|
||||
#
|
||||
# This file is part of the GNUstep Makefile Package.
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public
|
||||
# License along with this library; see the file COPYING.LIB.
|
||||
# If not, write to the Free Software Foundation,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
# prevent multiple inclusions
|
||||
ifeq ($(TEST_LIBRARY_MAKE_LOADED),)
|
||||
TEST_LIBRARY_MAKE_LOADED=yes
|
||||
|
||||
TEST_LIBRARY_NAME:=$(strip $(TEST_LIBRARY_NAME))
|
||||
|
||||
#
|
||||
# Include in the common makefile rules
|
||||
#
|
||||
include $(GNUSTEP_MAKEFILES)/rules.make
|
||||
|
||||
#
|
||||
# The three main components to perform a test in the framework
|
||||
# a) code to be tested
|
||||
# b) scripts which say what/how to test
|
||||
# c) test driver
|
||||
#
|
||||
# Component A can be any (or all) of the possible build targets
|
||||
# supported by the GNUstep Makefile Package: library, tool,
|
||||
# application, or bundle. The code is assumed to be compiled
|
||||
# elsewhere and just needs to be accessed to run the tests.
|
||||
#
|
||||
# Component B are written by the user. The GNUstep Makefile Package
|
||||
# does not interpret these scripts; it require that you specify
|
||||
# a list of directories which contain the scripts for the code to be
|
||||
# tested, so that this information can be passed to dejagnu.
|
||||
#
|
||||
# Component C is dependent upon the type of code to be tested; generally
|
||||
# an interactive program is its own test driver as it can communicate
|
||||
# directly with dejagnu. Libraries, however, require a test driver which
|
||||
# interactively accepts commands from dejagnu; the Objective-C Testing
|
||||
# Framework is the default test driver.
|
||||
#
|
||||
# Test drivers for the various build targets; the names should be unique
|
||||
# across all of the test drivers:
|
||||
#
|
||||
# TEST_LIBRARY_NAME
|
||||
#
|
||||
# xxx_OBJC_FILES, xxx_C_FILES, and xxx_PSWRAP_FILES holds the files
|
||||
# to be compiled for the xxx test driver.
|
||||
#
|
||||
# xxx_SCRIPT_DIRS is a list of directories containing the test scripts
|
||||
# which will be performed by dejagnu for the xxx test driver.
|
||||
#
|
||||
# xxx_SCRIPTS_DIRECTORY is the directory where the xxx_SCRIPT_DIRS
|
||||
# are located for the xxx test driver.
|
||||
#
|
||||
# xxx_INCLUDE_DIRS are additional headers directories to be searched
|
||||
#
|
||||
# xxx_LIB_DIRS and xxx_LIBS are additional libraries directories and
|
||||
# libraries to link against, respectively to link the xxx test driver.
|
||||
# The same paths are passed to the dynamic linker.
|
||||
#
|
||||
|
||||
ifeq ($(INTERNAL_testlib_NAME),)
|
||||
|
||||
internal-all:: $(TEST_LIBRARY_NAME:=.all.testlib.variables)
|
||||
|
||||
internal-install:: $(TEST_LIBRARY_NAME:=.install.testlib.variables)
|
||||
|
||||
internal-uninstall:: $(TEST_LIBRARY_NAME:=.uninstall.testlib.variables)
|
||||
|
||||
internal-clean:: $(TEST_LIBRARY_NAME:=.clean.testlib.variables)
|
||||
|
||||
internal-distclean:: $(TEST_LIBRARY_NAME:=.distclean.testlib.variables)
|
||||
|
||||
internal-check:: $(TEST_LIBRARY_NAME:=.check.testlib.variables)
|
||||
|
||||
$(TEST_LIBRARY_NAME)::
|
||||
@$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
|
||||
$@.all.testlib.variables
|
||||
|
||||
else
|
||||
|
||||
ifeq ($(SCRIPTS_DIRECTORY),)
|
||||
SCRIPTS_DIRECTORY = .
|
||||
endif
|
||||
|
||||
ALL_TEST_LIBRARY_LIBS = $(ADDITIONAL_LIBRARY_LIBS) $(AUXILIARY_LIBS) \
|
||||
$(AUXILIARY_TOOL_LIBS) $(FND_LIBS) $(OBJC_LIBS) $(TARGET_SYSTEM_LIBS)
|
||||
|
||||
ALL_TEST_LIBRARY_LIBS := \
|
||||
$(shell $(WHICH_LIB_SCRIPT) $(LIB_DIRS_NO_SYSTEM) $(ALL_TEST_LIBRARY_LIBS)\
|
||||
debug=$(debug) profile=$(profile) shared=$(shared) libext=$(LIBEXT) \
|
||||
shared_libext=$(SHARED_LIBEXT))
|
||||
|
||||
internal-testlib-all:: before-$(TARGET)-all $(GNUSTEP_OBJ_DIR) \
|
||||
$(GNUSTEP_OBJ_DIR)/$(INTERNAL_testlib_NAME) after-$(TARGET)-all
|
||||
|
||||
before-$(TARGET)-all::
|
||||
|
||||
after-$(TARGET)-all::
|
||||
|
||||
$(GNUSTEP_OBJ_DIR)/$(INTERNAL_testlib_NAME): $(C_OBJ_FILES) $(OBJC_OBJ_FILES) $(SUBPROJECT_OBJ_FILES)
|
||||
$(LD) $(ALL_LDFLAGS) -o $(LDOUT)$@ \
|
||||
$(C_OBJ_FILES) $(OBJC_OBJ_FILES) $(SUBPROJECT_OBJ_FILES) \
|
||||
$(ALL_LIB_DIRS) $(ALL_TEST_LIBRARY_LIBS)
|
||||
|
||||
dejagnu_vars = "FOUNDATION_LIBRARY=$(FOUNDATION_LIB)" \
|
||||
"OBJC_RUNTIME=$(OBJC_RUNTIME)"
|
||||
|
||||
internal-testlib-check:: $(SCRIPTS_DIRECTORY)/config/unix.exp \
|
||||
really-testlib-check
|
||||
|
||||
really-testlib-check:
|
||||
@(additional_library_paths="`echo $(ADDITIONAL_LIB_DIRS) | sed 's/-L//g'`"; \
|
||||
additional_library_paths="`$(GNUSTEP_MAKEFILES)/transform_paths.sh $$additional_library_paths`"; \
|
||||
. $(GNUSTEP_MAKEFILES)/ld_lib_path.sh; \
|
||||
for f in $(CHECK_SCRIPT_DIRS); do \
|
||||
if [ "$(SCRIPTS_DIRECTORY)" != "" ]; then \
|
||||
echo "cd $(SCRIPTS_DIRECTORY); runtest --tool $$f --srcdir . PROG=../$(GNUSTEP_OBJ_DIR)/$(INTERNAL_testlib_NAME) $(dejagnu_vars) $(ADDITIONAL_DEJAGNU_VARS)"; \
|
||||
(cd $(SCRIPTS_DIRECTORY); runtest --tool $$f --srcdir . PROG=../$(GNUSTEP_OBJ_DIR)/$(INTERNAL_testlib_NAME) $(dejagnu_vars) $(ADDITIONAL_DEJAGNU_VARS)); \
|
||||
else \
|
||||
runtest --tool $$f --srcdir . PROG=./$(INTERNAL_testlib_NAME) \
|
||||
$(dejagnu_vars) $(ADDITIONAL_DEJAGNU_VARS); \
|
||||
fi; \
|
||||
done)
|
||||
|
||||
_FORCE::
|
||||
|
||||
$(SCRIPTS_DIRECTORY)/config/unix.exp: _FORCE
|
||||
@$(MKDIRS) $(SCRIPTS_DIRECTORY)/config
|
||||
@(echo "Creating the $@ file..."; \
|
||||
echo "## Do Not Edit ##" > $@; \
|
||||
(echo "# Contents generated automatically by Makefile"; \
|
||||
echo "#"; \
|
||||
echo ""; \
|
||||
echo "set OBJC_RUNTIME $(OBJC_RUNTIME)"; \
|
||||
echo "set FOUNDATION_LIBRARY $(FOUNDATION_LIB)"; \
|
||||
echo ""; \
|
||||
echo "if {[file isdirectory $(GNUSTEP_USER_LIBRARIES_ROOT)/ObjCTest]} {"; \
|
||||
echo " set OBJCTEST_DIR $(GNUSTEP_USER_LIBRARIES_ROOT)/ObjCTest"; \
|
||||
echo "} elseif {[file isdirectory $(GNUSTEP_LOCAL_LIBRARIES_ROOT)/ObjCTest]} {"; \
|
||||
echo " set OBJCTEST_DIR $(GNUSTEP_LOCAL_LIBRARIES_ROOT)/ObjCTest"; \
|
||||
echo "} elseif {[file isdirectory $(GNUSTEP_SYSTEM_LIBRARIES_ROOT)/ObjCTest]} {"; \
|
||||
echo " set OBJCTEST_DIR $(GNUSTEP_SYSTEM_LIBRARIES_ROOT)/ObjCTest"; \
|
||||
echo "}"; \
|
||||
echo "set objdir `pwd`"; \
|
||||
echo "source \"\$$OBJCTEST_DIR/common.exp\""; \
|
||||
echo ""; \
|
||||
echo "# Maintain your own code in local.exp"; \
|
||||
echo "source \"config/local.exp\"") >>$@)
|
||||
|
||||
internal-testlib-install::
|
||||
|
||||
internal-testlib-uninstall::
|
||||
|
||||
#
|
||||
# Cleaning targets
|
||||
#
|
||||
internal-testlib-clean::
|
||||
rm -rf $(GNUSTEP_OBJ_DIR)
|
||||
|
||||
internal-testlib-distclean::
|
||||
rm -rf shared_obj static_obj shared_debug_obj shared_profile_obj \
|
||||
static_debug_obj static_profile_obj shared_profile_debug_obj \
|
||||
static_profile_debug_obj
|
||||
|
||||
endif
|
||||
|
||||
endif
|
||||
# test-library.make loaded
|
||||
|
||||
## Local variables:
|
||||
## mode: makefile
|
||||
## End:
|
Loading…
Reference in a new issue