2002-02-01 12:48:46 +01:00
|
|
|
|
# Top level -*- makefile -*- fragment for GNU Objective-C
|
2001-12-04 01:25:20 +01:00
|
|
|
|
# Copyright (C) 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
|
1997-06-22 02:42:06 +02:00
|
|
|
|
|
|
|
|
|
#This file is part of GNU CC.
|
|
|
|
|
|
|
|
|
|
#GNU CC 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, or (at your option)
|
|
|
|
|
#any later version.
|
|
|
|
|
|
|
|
|
|
#GNU CC 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 General Public License for more details.
|
|
|
|
|
|
|
|
|
|
#You should have received a copy of the GNU General Public License
|
|
|
|
|
#along with GNU CC; see the file COPYING. If not, write to
|
|
|
|
|
#the Free Software Foundation, 59 Temple Place - Suite 330,
|
|
|
|
|
#Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
|
|
# This file provides the language dependent support in the main Makefile.
|
|
|
|
|
# Each language makefile fragment must provide the following targets:
|
|
|
|
|
#
|
|
|
|
|
# foo.all.build, foo.all.cross, foo.start.encap, foo.rest.encap,
|
|
|
|
|
# foo.info, foo.dvi,
|
|
|
|
|
# foo.install-normal, foo.install-common, foo.install-info, foo.install-man,
|
2000-11-05 11:35:33 +01:00
|
|
|
|
# foo.uninstall,
|
1997-06-22 02:42:06 +02:00
|
|
|
|
# foo.mostlyclean, foo.clean, foo.distclean, foo.extraclean,
|
|
|
|
|
# foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4
|
|
|
|
|
#
|
|
|
|
|
# where `foo' is the name of the language.
|
|
|
|
|
#
|
|
|
|
|
# It should also provide rules for:
|
|
|
|
|
#
|
|
|
|
|
# - making any compiler driver (eg: g++)
|
|
|
|
|
# - the compiler proper (eg: cc1plus)
|
|
|
|
|
# - define the names for selecting the language in LANGUAGES.
|
|
|
|
|
|
1997-07-22 01:17:44 +02:00
|
|
|
|
#
|
1997-06-22 02:42:06 +02:00
|
|
|
|
# Define the names for selecting Objective-C in LANGUAGES.
|
1998-09-17 03:19:28 +02:00
|
|
|
|
OBJC objc: cc1obj$(exeext)
|
|
|
|
|
OBJECTIVE-C objective-c: cc1obj$(exeext)
|
1997-06-22 02:42:06 +02:00
|
|
|
|
|
|
|
|
|
# Tell GNU make to ignore these if they exist.
|
|
|
|
|
.PHONY: objective-c objc ObjC
|
|
|
|
|
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
# Use maximal warnings for this front end.
|
|
|
|
|
objc-warn = $(STRICT_WARN)
|
|
|
|
|
|
1997-06-22 02:42:06 +02:00
|
|
|
|
# Language-specific object files for Objective C.
|
2001-12-04 01:25:20 +01:00
|
|
|
|
OBJC_OBJS = objc-lang.o objc-parse.o objc-act.o $(C_AND_OBJC_OBJS)
|
1997-06-22 02:42:06 +02:00
|
|
|
|
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
cc1obj$(exeext): $(OBJC_OBJS) $(BACKEND) $(LIBDEPS)
|
[multiple changes]
2000-08-04 Andreas Schwab <schwab@suse.de>
* cppmain.c (cb_def_pragma): Skip the first two tokens from the
token list, which are always `#' and `pragma'.
2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
* tree.c (tree_expr_nonnegative_p): Move to...
* fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
(rtl_expr_nonnegative_p): New.
* tree.h: Add prototype for rtl_expr_nonnegative_p.
* real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
CONST_DOUBLE_CHAIN: Move to...
* rtl.h: ...here. Use XCINT/XCEXP.
* Makefile.in: Remove toplev.o from OBJS. Add rule to make
libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
to VOL_FILES.
* objc/Make-lang.in (cc1obj): Link with $(BACKEND).
ch:
* Make-lang.in (cc1chill): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in (cc1chill): Link with $(BACKEND). Define BACKEND,
eliminate C_OBJS (was commented out), OBJS, OBJDEPS.
cp:
* Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
(cc1plus): Link with $(BACKEND) and $(C_OBJS).
f:
* Make-lang.in (f771): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add BACKEND; delete OBJS, OBJDEPS.
(f771): Link with $(BACKEND).
java:
* Make-lang.in (jc1, jv-scan): Depend on $(BACKEND), not stamp-objlist.
* Makefile.in: Add BACKEND; delete OBJS, OBJDEPS.
(jc1): Link with $(BACKEND).
(jv-scan): Depend on version.o, not all of $(OBJS) or $(BACKEND).
From-SVN: r35501
2000-08-05 02:50:02 +02:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(OBJC_OBJS) $(BACKEND) $(LIBS)
|
1997-06-22 02:42:06 +02:00
|
|
|
|
|
|
|
|
|
# Objective C language specific files.
|
|
|
|
|
|
2001-12-04 01:25:20 +01:00
|
|
|
|
objc-lang.o : $(srcdir)/objc/objc-lang.c \
|
|
|
|
|
$(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(srcdir)/c-tree.h \
|
|
|
|
|
$(srcdir)/c-common.h $(srcdir)/toplev.h $(srcdir)/objc/objc-act.h \
|
|
|
|
|
$(srcdir)/langhooks.h $(srcdir)/langhooks-def.h
|
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -I$(srcdir)/objc \
|
|
|
|
|
-c $(srcdir)/objc/objc-lang.c $(OUTPUT_OPTION)
|
|
|
|
|
|
2000-07-29 21:45:41 +02:00
|
|
|
|
objc-parse.o : $(srcdir)/objc/objc-parse.c \
|
2002-05-26 00:01:55 +02:00
|
|
|
|
$(CONFIG_H) $(TREE_H) $(C_COMMON_H) $(srcdir)/toplev.h $(srcdir)/ggc.h \
|
|
|
|
|
$(srcdir)/c-pragma.h $(srcdir)/c-tree.h \
|
1999-07-20 12:41:10 +02:00
|
|
|
|
$(srcdir)/input.h $(srcdir)/flags.h $(srcdir)/output.h \
|
2002-05-26 00:01:55 +02:00
|
|
|
|
$(srcdir)/objc/objc-act.h $(SYSTEM_H)
|
1997-06-22 02:42:06 +02:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -I$(srcdir)/objc \
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
-c $(srcdir)/objc/objc-parse.c $(OUTPUT_OPTION)
|
1997-06-22 02:42:06 +02:00
|
|
|
|
|
Makefile.in (INTL_TARGETS, POSUB): Delete all references.
* Makefile.in (INTL_TARGETS, POSUB): Delete all references.
(INTL_SUBDIRS): Just intl.
(.SUFFIXES): Add .gmo .po .pox.
(native): Also depend on build-@POSUB@.
(intl.all, intl.install): Depend on config.h and things it includes.
(po-generated): New target; depend on c-parse.c and tradcif.c.
(install-normal): Also depend on install-@POSUB@.
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
(build-, install-, build-po, update-po, install-po,
.po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
* aclocal.m4: Prefix each entry in CATALOGS with "po/"
* configure.in: Don't munge XGETTEXT. Don't generate
po/Makefile.in.
* configure: Regenerate.
* exgettext: Delete.
* config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
* cp/Make-lang.in, java/Make-lang.in, objc/Make-lang.in: Replace
$(INTL_TARGETS) with po-generated.
po:
* EXCLUDES: New file.
* exgettext: New helper script; completely rewritten.
* Makefile.in.in, POTFILES.in: Delete.
From-SVN: r46680
2001-10-31 18:40:07 +01:00
|
|
|
|
po-generated: $(srcdir)/objc/objc-parse.c
|
2000-07-29 21:45:41 +02:00
|
|
|
|
$(srcdir)/objc/objc-parse.c : $(srcdir)/objc/objc-parse.y
|
|
|
|
|
cd $(srcdir)/objc; \
|
2002-02-01 12:48:46 +01:00
|
|
|
|
if $(BISON) $(BISONFLAGS) -o op$$$$.c objc-parse.y ; then \
|
|
|
|
|
test -f op$$$$.output && mv -f op$$$$.output objc-parse.output ; \
|
|
|
|
|
mv -f op$$$$.c objc-parse.c ; \
|
|
|
|
|
else \
|
|
|
|
|
rm -f op$$$$.* ; \
|
|
|
|
|
false ; \
|
|
|
|
|
fi
|
2000-07-29 21:45:41 +02:00
|
|
|
|
|
|
|
|
|
$(srcdir)/objc/objc-parse.y: $(srcdir)/c-parse.in
|
|
|
|
|
echo '/*WARNING: This file is automatically generated!*/' >tmp-objc-prs.y
|
|
|
|
|
sed -e "/^ifc$$/,/^end ifc$$/d" \
|
|
|
|
|
-e "/^ifobjc$$/d" -e "/^end ifobjc$$/d" \
|
|
|
|
|
$(srcdir)/c-parse.in >>tmp-objc-prs.y
|
|
|
|
|
$(SHELL) $(srcdir)/move-if-change tmp-objc-prs.y $(srcdir)/objc/objc-parse.y
|
1997-06-22 02:42:06 +02:00
|
|
|
|
|
1997-06-28 00:34:54 +02:00
|
|
|
|
objc-act.o : $(srcdir)/objc/objc-act.c \
|
2001-08-10 00:33:35 +02:00
|
|
|
|
$(CONFIG_H) $(TREE_H) $(RTL_H) $(SYSTEM_H) $(EXPR_H) $(TARGET_H) \
|
2002-06-05 21:35:45 +02:00
|
|
|
|
$(C_COMMON_H) $(srcdir)/c-tree.h $(srcdir)/diagnostic.h \
|
1999-07-20 12:41:10 +02:00
|
|
|
|
$(srcdir)/toplev.h $(srcdir)/flags.h $(srcdir)/objc/objc-act.h \
|
2001-11-06 22:12:14 +01:00
|
|
|
|
$(srcdir)/input.h $(srcdir)/function.h $(srcdir)/output.h $(srcdir)/debug.h \
|
2002-06-04 09:11:05 +02:00
|
|
|
|
$(srcdir)/langhooks.h $(LANGHOOKS_DEF_H) gtype-objc.h
|
1997-06-22 02:42:06 +02:00
|
|
|
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -I$(srcdir)/objc \
|
1997-06-28 00:34:54 +02:00
|
|
|
|
-c $(srcdir)/objc/objc-act.c
|
1997-06-22 02:42:06 +02:00
|
|
|
|
|
2002-06-04 09:11:05 +02:00
|
|
|
|
gtype-objc.h : s-gtype ; @true
|
|
|
|
|
|
1997-07-22 01:17:44 +02:00
|
|
|
|
#
|
1997-06-22 02:42:06 +02:00
|
|
|
|
# Build hooks:
|
|
|
|
|
|
|
|
|
|
objc.all.build:
|
|
|
|
|
objc.all.cross:
|
|
|
|
|
objc.start.encap:
|
|
|
|
|
objc.rest.encap:
|
|
|
|
|
|
|
|
|
|
objc.info:
|
|
|
|
|
objc.dvi:
|
2001-11-29 17:50:19 +01:00
|
|
|
|
objc.generated-manpages:
|
1997-06-22 02:42:06 +02:00
|
|
|
|
|
1997-07-22 01:17:44 +02:00
|
|
|
|
#
|
1997-06-22 02:42:06 +02:00
|
|
|
|
# Install hooks:
|
|
|
|
|
# cc1obj is installed elsewhere as part of $(COMPILERS).
|
|
|
|
|
|
1998-09-17 03:19:28 +02:00
|
|
|
|
objc.install-normal:
|
1997-06-22 02:42:06 +02:00
|
|
|
|
|
|
|
|
|
objc.install-common:
|
|
|
|
|
|
|
|
|
|
objc.install-info:
|
|
|
|
|
|
|
|
|
|
objc.install-man:
|
|
|
|
|
|
|
|
|
|
objc.uninstall:
|
1997-07-22 01:17:44 +02:00
|
|
|
|
#
|
1997-06-22 02:42:06 +02:00
|
|
|
|
# Clean hooks:
|
|
|
|
|
# A lot of the ancillary files are deleted by the main makefile.
|
|
|
|
|
# We just have to delete files specific to us.
|
|
|
|
|
objc.mostlyclean:
|
|
|
|
|
-rm -f tmp-objc-prs.y
|
|
|
|
|
-rm -f objc/*$(objext) objc/xforward objc/fflags
|
2002-08-08 11:10:39 +02:00
|
|
|
|
-rm -f objc/*$(coverageexts)
|
1997-06-22 02:42:06 +02:00
|
|
|
|
objc.clean: objc.mostlyclean
|
|
|
|
|
-rm -rf objc-headers
|
|
|
|
|
objc.distclean:
|
|
|
|
|
-rm -f objc/Makefile objc/Make-host objc/Make-target
|
|
|
|
|
-rm -f objc/config.status objc/config.cache
|
2000-07-29 21:45:41 +02:00
|
|
|
|
-rm -f objc-parse.output
|
1997-06-22 02:42:06 +02:00
|
|
|
|
objc.extraclean:
|
|
|
|
|
objc.maintainer-clean:
|
configure.in: If not NO_MINUS_C_MINUS_O, substitute OUTPUT_OPTION with '-o $@'.
* configure.in: If not NO_MINUS_C_MINUS_O, substitute
OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
top level. Kill oldstyle_subdirs. Do not include
$srcdir/$s/Makefile.in in all_lang_makefiles, but do include
$outputs. Do not run configure.lang from config.status.
Rearrange warning-flag logic to correspond to what the
makefile wants. Put special vax stage1 options in
@stage1_flags@ not @stage1_warn_cflags@. Don't do anything
with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
(--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
switch is given, nothing otherwise.
* configure.lang: Delete.
* Makefile.in: Expunge all traces of extra_c_objs,
extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
@maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
warning options via a three level scheme so that -pedantic and
-Wtraditional are not used for non-C front ends: LOOSE_WARN,
STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
generation rules. Wrap all rules that change the current
directory in parentheses; pmake doesn't spawn a new shell for
each command. Expunge all references to $(P). When one
command depends on another and they're run all at once, use &&
to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
and beyond.
* cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in,
objc/Make-lang.in: Wrap all rules that change the current
directory in parentheses. Expunge all references to $(P).
When one command depends on another and they're run all at
once, use && to separate them, not ;. Add OUTPUT_OPTION to
all object-file generation rules. Delete obsolete variables.
Move all build rules here from the corresponding Makefile.in and
adapt to the new environment.
* cp/Makefile.in, f/Makefile.in, java/Makefile.in, objc/Makefile.in:
Delete.
* cp/config-lang.in, f/config-lang.in, java/config-lang.in:
Delete outputs= line.
From-SVN: r37088
2000-10-27 22:22:28 +02:00
|
|
|
|
-rm -f $(srcdir)/objc/objc-parse.y
|
|
|
|
|
-rm -f $(srcdir)/objc/objc-parse.c $(srcdir)/objc/objc-parse.output
|
1997-06-22 02:42:06 +02:00
|
|
|
|
|
1997-07-22 01:17:44 +02:00
|
|
|
|
#
|
1997-06-22 02:42:06 +02:00
|
|
|
|
# Stage hooks:
|
|
|
|
|
|
1998-01-25 12:29:50 +01:00
|
|
|
|
objc.stage1: stage1-start
|
1997-06-22 02:42:06 +02:00
|
|
|
|
-mv objc/*$(objext) stage1/objc
|
|
|
|
|
-mv cc1obj$(exeext) stage1
|
1998-01-25 12:29:50 +01:00
|
|
|
|
objc.stage2: stage2-start
|
1997-06-22 02:42:06 +02:00
|
|
|
|
-mv objc/*$(objext) stage2/objc
|
|
|
|
|
-mv cc1obj$(exeext) stage2
|
1998-01-25 12:29:50 +01:00
|
|
|
|
objc.stage3: stage3-start
|
1997-06-22 02:42:06 +02:00
|
|
|
|
-mv objc/*$(objext) stage3/objc
|
|
|
|
|
-mv cc1obj$(exeext) stage3
|
1998-01-25 12:29:50 +01:00
|
|
|
|
objc.stage4: stage4-start
|
1997-06-22 02:42:06 +02:00
|
|
|
|
-mv objc/*$(objext) stage4/objc
|
|
|
|
|
-mv cc1obj$(exeext) stage4
|