1997-09-16 01:07:48 +00:00
|
|
|
#
|
1997-10-28 03:13:18 +00:00
|
|
|
# GNUmakefile.in
|
1997-09-16 01:07:48 +00:00
|
|
|
#
|
1997-10-28 03:13:18 +00:00
|
|
|
# Main GNUmakefile for the GNUstep GNUmakefile Package.
|
1997-09-16 01:07:48 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
#
|
1997-10-28 03:13:18 +00:00
|
|
|
# I've thought about using the Makefile package files
|
|
|
|
# to install the GNUmakefile package, a cool little recursion,
|
1997-09-16 01:07:48 +00:00
|
|
|
# but there is nothing to made, and the files get installed
|
|
|
|
# in a special directory, so it was simpler this way.
|
|
|
|
#
|
|
|
|
|
1997-09-25 19:26:02 +00:00
|
|
|
include config.make
|
|
|
|
|
2000-02-19 00:40:47 +00:00
|
|
|
prefix = @prefix@
|
|
|
|
GNUSTEP_INSTALLATION_DIR=$(prefix)
|
1999-10-11 15:40:37 +00:00
|
|
|
GNUSTEP_PREFIX = @GNUSTEP_PREFIX@
|
1997-09-16 01:07:48 +00:00
|
|
|
srcdir = @srcdir@
|
1997-09-22 22:49:02 +00:00
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
libdir = @libdir@
|
|
|
|
includedir = @includedir@
|
|
|
|
datadir = @datadir@
|
1997-09-16 01:07:48 +00:00
|
|
|
|
1997-09-22 22:49:02 +00:00
|
|
|
GNUSTEP_TARGET_CPU := @target_cpu@
|
|
|
|
GNUSTEP_TARGET_OS := @target_os@
|
1998-05-13 20:56:38 +00:00
|
|
|
GNUSTEP_LIB_COMBO := @ac_cv_library_combo@
|
1997-09-18 01:36:07 +00:00
|
|
|
|
1997-09-24 21:29:08 +00:00
|
|
|
GNUSTEP_TARGET_CPU := $(shell ./clean_cpu.sh $(GNUSTEP_TARGET_CPU))
|
|
|
|
GNUSTEP_TARGET_VENDOR := $(shell ./clean_vendor.sh $(GNUSTEP_TARGET_VENDOR))
|
|
|
|
GNUSTEP_TARGET_OS := $(shell ./clean_os.sh $(GNUSTEP_TARGET_OS))
|
1997-09-18 01:36:07 +00:00
|
|
|
|
1997-09-16 01:07:48 +00:00
|
|
|
makedir = $(prefix)/Makefiles
|
1997-10-13 23:30:17 +00:00
|
|
|
tooldir = $(prefix)/Tools
|
1998-05-13 20:56:38 +00:00
|
|
|
librarydir = $(prefix)/Libraries
|
1997-09-18 01:36:07 +00:00
|
|
|
GNUSTEP_TARGET_DIR = $(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)
|
1997-09-16 01:07:48 +00:00
|
|
|
|
1997-10-03 22:02:27 +00:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
2000-06-13 15:14:23 +00:00
|
|
|
PERL = @PERL@
|
|
|
|
|
|
|
|
MAKE_FILES = aggregate.make application.make bundle.make service.make \
|
2000-08-07 22:06:04 +00:00
|
|
|
common.make brain.make java.make jni.make library.make rules.make \
|
|
|
|
target.make tool.make ctool.make test-library.make names.make \
|
|
|
|
objc.make test-application.make test-tool.make subproject.make \
|
2000-06-13 15:14:23 +00:00
|
|
|
palette.make gswapp.make gswbundle.make woapp.make wobundle.make \
|
|
|
|
documentation.make MediaBook.func executable.template
|
1997-10-03 22:02:27 +00:00
|
|
|
|
1998-12-15 20:27:09 +00:00
|
|
|
all: generated-files which_lib$(EXEEXT)
|
1997-09-26 20:44:59 +00:00
|
|
|
|
1998-12-15 20:27:09 +00:00
|
|
|
which_lib$(EXEEXT): which_lib.c
|
1999-03-02 08:58:30 +00:00
|
|
|
$(CC) @CFLAGS@ -Wall -o $@ $^
|
1997-09-16 01:07:48 +00:00
|
|
|
|
1997-10-03 21:19:55 +00:00
|
|
|
install: all
|
1999-10-18 02:52:31 +00:00
|
|
|
$(srcdir)/mkinstalldirs $(prefix) $(makedir) \
|
1997-09-18 01:36:07 +00:00
|
|
|
$(makedir)/$(GNUSTEP_TARGET_CPU) \
|
1997-09-22 22:49:02 +00:00
|
|
|
$(makedir)/$(GNUSTEP_TARGET_DIR) \
|
1997-10-13 23:30:17 +00:00
|
|
|
$(tooldir) \
|
1998-04-06 03:01:59 +00:00
|
|
|
$(prefix)/share \
|
|
|
|
$(prefix)/Apps \
|
|
|
|
$(prefix)/Libraries/$(GNUSTEP_TARGET_DIR) \
|
1998-05-13 20:56:38 +00:00
|
|
|
$(prefix)/Libraries/$(GNUSTEP_TARGET_DIR)/$(GNUSTEP_LIB_COMBO) \
|
1998-04-06 03:01:59 +00:00
|
|
|
$(prefix)/Headers/$(GNUSTEP_TARGET_DIR) \
|
|
|
|
$(prefix)/Tools/$(GNUSTEP_TARGET_DIR) \
|
|
|
|
$(prefix)/Library \
|
2000-01-09 03:38:05 +00:00
|
|
|
$(prefix)/Library/Colors \
|
1998-04-06 03:01:59 +00:00
|
|
|
$(prefix)/Library/PostScript \
|
1998-11-23 13:34:24 +00:00
|
|
|
$(prefix)/Library/Services \
|
1999-10-11 15:40:37 +00:00
|
|
|
$(prefix)/Documentation/info \
|
|
|
|
$(prefix)/Documentation/man \
|
|
|
|
$(GNUSTEP_PREFIX)/Local \
|
|
|
|
$(GNUSTEP_PREFIX)/Local/Users \
|
|
|
|
$(GNUSTEP_PREFIX)/Local/Users/Administrator \
|
|
|
|
$(GNUSTEP_PREFIX)/Network
|
1998-12-15 20:27:09 +00:00
|
|
|
$(INSTALL_PROGRAM) -m 755 which_lib$(EXEEXT) $(makedir)/$(GNUSTEP_TARGET_DIR)
|
1997-11-13 21:28:59 +00:00
|
|
|
for f in config.guess config.sub install-sh mkinstalldirs \
|
|
|
|
GNUstep.sh MediaBook.sh clean_cpu.sh clean_os.sh \
|
|
|
|
clean_vendor.sh cpu.sh ld_lib_path.sh os.sh \
|
1998-04-06 03:01:59 +00:00
|
|
|
transform_paths.sh vendor.sh \
|
1999-02-18 06:22:33 +00:00
|
|
|
rootinstall.sh rootuninstall.sh \
|
1998-04-06 03:01:59 +00:00
|
|
|
GNUstep.csh ld_lib_path.csh ; do \
|
1997-09-25 19:26:02 +00:00
|
|
|
$(INSTALL_PROGRAM) -m 755 $$f $(makedir); \
|
|
|
|
done
|
1997-10-13 23:30:17 +00:00
|
|
|
$(INSTALL_PROGRAM) -m 755 openapp $(tooldir); \
|
1997-10-20 15:53:51 +00:00
|
|
|
$(INSTALL_PROGRAM) -m 755 debugapp $(tooldir); \
|
1999-02-18 06:22:33 +00:00
|
|
|
$(INSTALL_PROGRAM) -m 755 opentool $(tooldir); \
|
2000-06-13 15:14:23 +00:00
|
|
|
for f in $(MAKE_FILES); do \
|
1997-09-25 19:26:02 +00:00
|
|
|
$(INSTALL_DATA) $$f $(makedir); \
|
|
|
|
done
|
1997-09-26 03:52:34 +00:00
|
|
|
$(INSTALL_DATA) config.site $(prefix)/share
|
1997-09-25 19:26:02 +00:00
|
|
|
$(INSTALL_DATA) config.make $(makedir)/$(GNUSTEP_TARGET_DIR)
|
1997-09-16 01:07:48 +00:00
|
|
|
|
|
|
|
uninstall:
|
1998-12-15 20:27:09 +00:00
|
|
|
rm -f $(makedir)/$(GNUSTEP_TARGET_DIR)/which_lib$(EXEEXT)
|
1997-11-13 21:28:59 +00:00
|
|
|
for f in config.guess config.sub install-sh mkinstalldirs \
|
|
|
|
GNUstep.sh MediaBook.sh clean_cpu.sh clean_os.sh \
|
|
|
|
clean_vendor.sh cpu.sh ld_lib_path.sh os.sh \
|
1998-04-06 03:01:59 +00:00
|
|
|
transform_paths.sh vendor.sh \
|
1999-02-18 06:22:33 +00:00
|
|
|
rootinstall.sh rootuninstall.sh \
|
1998-04-06 03:01:59 +00:00
|
|
|
GNUstep.csh ld_lib_path.csh ; do \
|
1997-11-13 21:28:59 +00:00
|
|
|
rm -f $(makedir)/$$f; \
|
|
|
|
done
|
|
|
|
rm -f $(tooldir)/openapp; \
|
|
|
|
rm -f $(tooldir)/debugapp; \
|
1999-02-18 06:22:33 +00:00
|
|
|
rm -f $(tooldir)/opentool; \
|
2000-06-13 15:14:23 +00:00
|
|
|
for f in $(MAKE_FILES); do \
|
1997-11-13 21:28:59 +00:00
|
|
|
rm -f $(makedir)/$$f; \
|
|
|
|
done
|
|
|
|
rm -f $(prefix)/share/config.site
|
|
|
|
rm -f $(makedir)/$(GNUSTEP_TARGET_DIR)/config.make
|
1997-09-16 01:07:48 +00:00
|
|
|
|
|
|
|
clean:
|
1998-12-15 20:27:09 +00:00
|
|
|
rm -f *~ which_lib$(EXEEXT)
|
1997-09-16 01:07:48 +00:00
|
|
|
|
|
|
|
distclean: clean
|
1997-10-28 03:13:18 +00:00
|
|
|
rm -f GNUmakefile config.make
|
1997-09-16 01:07:48 +00:00
|
|
|
rm -f config.cache config.log config.status
|
|
|
|
|
1998-04-06 03:01:59 +00:00
|
|
|
generated-files: GNUmakefile GNUstep.sh GNUstep.csh config.h config.make debugapp openapp
|
1997-10-30 22:43:44 +00:00
|
|
|
|
1997-10-28 03:13:18 +00:00
|
|
|
GNUmakefile: GNUmakefile.in config.status
|
1997-09-16 01:07:48 +00:00
|
|
|
$(SHELL) config.status
|
1997-10-30 22:43:44 +00:00
|
|
|
|
|
|
|
GNUstep.sh: GNUstep.sh.in
|
|
|
|
$(SHELL) config.status
|
|
|
|
|
1998-04-06 03:01:59 +00:00
|
|
|
GNUstep.csh: GNUstep.csh.in
|
|
|
|
$(SHELL) config.status
|
|
|
|
|
1997-10-30 22:43:44 +00:00
|
|
|
config.h: config.h.in
|
|
|
|
$(SHELL) config.status
|
|
|
|
|
|
|
|
config.make: config.make.in
|
|
|
|
$(SHELL) config.status
|
|
|
|
|
|
|
|
debugapp: debugapp.in
|
|
|
|
$(SHELL) config.status
|
|
|
|
|
|
|
|
openapp: openapp.in
|
|
|
|
$(SHELL) config.status
|
1999-02-18 06:22:33 +00:00
|
|
|
|
|
|
|
opentool: opentool.in
|
|
|
|
$(SHELL) config.status
|