Deleted Added
full compact
Makefile.in (52298) Makefile.in (70638)
1# Makefile for GNU C compiler.
2# Copyright (C) 1987, 88, 90-98, 1999 Free Software Foundation, Inc.
3
4#This file is part of GNU CC.
5
6#GNU CC is free software; you can redistribute it and/or modify
7#it under the terms of the GNU General Public License as published by
8#the Free Software Foundation; either version 2, or (at your option)

--- 4 unchanged lines hidden (view full) ---

13#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14#GNU General Public License for more details.
15
16#You should have received a copy of the GNU General Public License
17#along with GNU CC; see the file COPYING. If not, write to
18#the Free Software Foundation, 59 Temple Place - Suite 330,
19#Boston MA 02111-1307, USA.
20
1# Makefile for GNU C compiler.
2# Copyright (C) 1987, 88, 90-98, 1999 Free Software Foundation, Inc.
3
4#This file is part of GNU CC.
5
6#GNU CC is free software; you can redistribute it and/or modify
7#it under the terms of the GNU General Public License as published by
8#the Free Software Foundation; either version 2, or (at your option)

--- 4 unchanged lines hidden (view full) ---

13#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14#GNU General Public License for more details.
15
16#You should have received a copy of the GNU General Public License
17#along with GNU CC; see the file COPYING. If not, write to
18#the Free Software Foundation, 59 Temple Place - Suite 330,
19#Boston MA 02111-1307, USA.
20
21# $FreeBSD: head/contrib/gcc/Makefile.in 52298 1999-10-16 08:21:54Z obrien $
21# $FreeBSD: head/contrib/gcc/Makefile.in 70638 2001-01-03 17:17:00Z obrien $
22
23# The targets for external use include:
24# all, doc, proto, install, install-cross, install-cross-rest,
25# uninstall, TAGS, mostlyclean, clean, distclean, maintainer-clean,
26# stage1, stage2, stage3, stage4.
27
28# Suppress smart makes who think they know how to automake Yacc files
29.y.c:

--- 408 unchanged lines hidden (view full) ---

438OTHER_FIXINCLUDES_DIRS=
439
440# A list of all the language-specific executables.
441# This is overridden by configure.
442COMPILERS = cc1$(exeext) @all_compilers@
443
444# List of things which should already be built whenever we try to use xgcc
445# to compile anything (without linking).
22
23# The targets for external use include:
24# all, doc, proto, install, install-cross, install-cross-rest,
25# uninstall, TAGS, mostlyclean, clean, distclean, maintainer-clean,
26# stage1, stage2, stage3, stage4.
27
28# Suppress smart makes who think they know how to automake Yacc files
29.y.c:

--- 408 unchanged lines hidden (view full) ---

438OTHER_FIXINCLUDES_DIRS=
439
440# A list of all the language-specific executables.
441# This is overridden by configure.
442COMPILERS = cc1$(exeext) @all_compilers@
443
444# List of things which should already be built whenever we try to use xgcc
445# to compile anything (without linking).
446GCC_PASSES=xgcc$(exeext) cc1$(exeext) cpp$(exeext) $(EXTRA_PASSES)
446GCC_PASSES=xgcc$(exeext) cc1$(exeext) cpp0$(exeext) $(EXTRA_PASSES)
447
448# List of things which should already be built whenever we try to use xgcc
449# to link anything.
450GCC_PARTS=$(GCC_PASSES) $(LIBGCC) $(EXTRA_PROGRAMS) $(USE_COLLECT2) $(EXTRA_PARTS)
451
452# Directory to link to, when using the target `maketest'.
453DIR = ../gcc
454

--- 246 unchanged lines hidden (view full) ---

701 s-flags s-config s-codes s-mlib s-under\
702 s-output s-recog s-emit s-extract s-peep s-check \
703 s-attr s-attrtab s-opinit s-crt s-crtS s-crt0 \
704 genemit$(build_exeext) genoutput$(build_exeext) genrecog$(build_exeext) \
705 genextract$(build_exeext) genflags$(build_exeext) gencodes$(build_exeext) \
706 genconfig$(build_exeext) genpeep$(build_exeext) genattrtab$(build_exeext) \
707 genattr$(build_exeext) genopinit$(build_exeext) gengenrtl$(build_exeext) \
708 gencheck$(build_exeext) \
447
448# List of things which should already be built whenever we try to use xgcc
449# to link anything.
450GCC_PARTS=$(GCC_PASSES) $(LIBGCC) $(EXTRA_PROGRAMS) $(USE_COLLECT2) $(EXTRA_PARTS)
451
452# Directory to link to, when using the target `maketest'.
453DIR = ../gcc
454

--- 246 unchanged lines hidden (view full) ---

701 s-flags s-config s-codes s-mlib s-under\
702 s-output s-recog s-emit s-extract s-peep s-check \
703 s-attr s-attrtab s-opinit s-crt s-crtS s-crt0 \
704 genemit$(build_exeext) genoutput$(build_exeext) genrecog$(build_exeext) \
705 genextract$(build_exeext) genflags$(build_exeext) gencodes$(build_exeext) \
706 genconfig$(build_exeext) genpeep$(build_exeext) genattrtab$(build_exeext) \
707 genattr$(build_exeext) genopinit$(build_exeext) gengenrtl$(build_exeext) \
708 gencheck$(build_exeext) \
709 xgcc$(exeext) xcpp$(exeext) cc1$(exeext) cpp$(exeext) $(EXTRA_PASSES) \
709 xgcc$(exeext) cpp$(exeext) cc1$(exeext) cpp0$(exeext) $(EXTRA_PASSES) \
710 $(EXTRA_PARTS) $(EXTRA_PROGRAMS) gcc-cross$(exeext) \
711 $(CCCP)$(exeext) cc1obj$(exeext) enquire$(exeext) \
712 protoize$(exeext) unprotoize$(exeext) \
713 specs collect2$(exeext) $(USE_COLLECT2) underscore.c \
714 gcov$(exeext) *.bp \
715 *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop \
716 *.dbr *.jump2 *.sched *.cse2 *.sched2 *.stack *.gcse *.flow2 \
717 *.[si] libcpp.a \

--- 119 unchanged lines hidden (view full) ---

837
838all.internal: start.encap rest.encap doc
839# This is what to compile if making a cross-compiler.
840# Note that we can compile enquire using the cross-compiler just built,
841# although we can't run it on this machine.
842all.cross: native gcc-cross specs stmp-headers $(STMP_FIXPROTO) $(LIBGCC) \
843 $(LIBGCC1_TEST) $(EXTRA_PARTS) lang.all.cross doc
844# This is what to compile if making gcc with a cross-compiler.
710 $(EXTRA_PARTS) $(EXTRA_PROGRAMS) gcc-cross$(exeext) \
711 $(CCCP)$(exeext) cc1obj$(exeext) enquire$(exeext) \
712 protoize$(exeext) unprotoize$(exeext) \
713 specs collect2$(exeext) $(USE_COLLECT2) underscore.c \
714 gcov$(exeext) *.bp \
715 *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop \
716 *.dbr *.jump2 *.sched *.cse2 *.sched2 *.stack *.gcse *.flow2 \
717 *.[si] libcpp.a \

--- 119 unchanged lines hidden (view full) ---

837
838all.internal: start.encap rest.encap doc
839# This is what to compile if making a cross-compiler.
840# Note that we can compile enquire using the cross-compiler just built,
841# although we can't run it on this machine.
842all.cross: native gcc-cross specs stmp-headers $(STMP_FIXPROTO) $(LIBGCC) \
843 $(LIBGCC1_TEST) $(EXTRA_PARTS) lang.all.cross doc
844# This is what to compile if making gcc with a cross-compiler.
845all.build: native xgcc$(exeext) xcpp$(exeext) $(EXTRA_PARTS) lang.all.build
845all.build: native xgcc$(exeext) cpp$(exeext) $(EXTRA_PARTS) lang.all.build
846# This is what must be made before installing GCC and converting libraries.
846# This is what must be made before installing GCC and converting libraries.
847start.encap: native xgcc$(exeext) xcpp$(exeext) specs $(LIBGCC1) \
847start.encap: native xgcc$(exeext) cpp$(exeext) specs $(LIBGCC1) \
848 xlimits.h lang.start.encap
849# These can't be made until after GCC can run.
850rest.encap: stmp-headers $(STMP_FIXPROTO) $(LIBGCC) $(EXTRA_PARTS) lang.rest.encap
851# This is what is made with the host's compiler
852# whether making a cross compiler or not.
848 xlimits.h lang.start.encap
849# These can't be made until after GCC can run.
850rest.encap: stmp-headers $(STMP_FIXPROTO) $(LIBGCC) $(EXTRA_PARTS) lang.rest.encap
851# This is what is made with the host's compiler
852# whether making a cross compiler or not.
853native: config.status auto-host.h cpp$(exeext) intl.all $(LANGUAGES) \
853native: config.status auto-host.h intl.all $(LANGUAGES) \
854 $(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(USE_COLLECT2)
855
856# Define the names for selecting languages in LANGUAGES.
857C c: cc1$(exeext)
858PROTO: proto
859
860# Tell GNU make these are phony targets.
861.PHONY: C c PROTO proto

--- 28 unchanged lines hidden (view full) ---

890 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o gccspec.o intl.o \
891 prefix.o version.o $(EXTRA_GCC_OBJS) $(LIBS)
892
893# We call this executable `xcpp' rather than `cpp'
894# since the real preprocessor is named `cpp'. It too is renamed
895# when it is installed.
896# The only difference from xgcc is that it's linked with cppspec.o
897# instead of gccspec.o.
854 $(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(USE_COLLECT2)
855
856# Define the names for selecting languages in LANGUAGES.
857C c: cc1$(exeext)
858PROTO: proto
859
860# Tell GNU make these are phony targets.
861.PHONY: C c PROTO proto

--- 28 unchanged lines hidden (view full) ---

890 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o gccspec.o intl.o \
891 prefix.o version.o $(EXTRA_GCC_OBJS) $(LIBS)
892
893# We call this executable `xcpp' rather than `cpp'
894# since the real preprocessor is named `cpp'. It too is renamed
895# when it is installed.
896# The only difference from xgcc is that it's linked with cppspec.o
897# instead of gccspec.o.
898xcpp$(exeext): gcc.o cppspec.o version.o intl.o prefix.o \
898cpp$(exeext): gcc.o cppspec.o version.o intl.o prefix.o \
899 version.o $(LIBDEPS) $(EXTRA_GCC_OBJS)
900 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o cppspec.o intl.o \
901 prefix.o version.o $(EXTRA_GCC_OBJS) $(LIBS)
902
903# Dump a specs file to make -B./ read these specs over installed ones.
904specs: xgcc$(exeext)
905 $(GCC_FOR_TARGET) -dumpspecs > tmp-specs
906 mv tmp-specs specs

--- 1043 unchanged lines hidden (view full) ---

1950intl.distdir-fixup:
1951 for d in $(INTL_SUBDIRS); do \
1952 ln $$d/Makefile tmp/$$d || cp $$d/Makefile tmp/$$d || exit; \
1953 done
1954#
1955# Remake cpp and protoize.
1956
1957# Making the preprocessor
899 version.o $(LIBDEPS) $(EXTRA_GCC_OBJS)
900 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o cppspec.o intl.o \
901 prefix.o version.o $(EXTRA_GCC_OBJS) $(LIBS)
902
903# Dump a specs file to make -B./ read these specs over installed ones.
904specs: xgcc$(exeext)
905 $(GCC_FOR_TARGET) -dumpspecs > tmp-specs
906 mv tmp-specs specs

--- 1043 unchanged lines hidden (view full) ---

1950intl.distdir-fixup:
1951 for d in $(INTL_SUBDIRS); do \
1952 ln $$d/Makefile tmp/$$d || cp $$d/Makefile tmp/$$d || exit; \
1953 done
1954#
1955# Remake cpp and protoize.
1956
1957# Making the preprocessor
1958cpp$(exeext): $(CCCP)$(exeext)
1959 -rm -f cpp$(exeext)
1960 $(LN) $(CCCP)$(exeext) cpp$(exeext)
1958cpp0$(exeext): $(CCCP)$(exeext)
1959 -rm -f cpp0$(exeext)
1960 $(LN) $(CCCP)$(exeext) cpp0$(exeext)
1961CCCP_OBJS = cccp.o cexp.o intl.o prefix.o version.o @extra_cpp_objs@ mbchar.o
1962cccp$(exeext): $(CCCP_OBJS) $(LIBDEPS)
1963 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(CCCP_OBJS) $(LIBS)
1964cexp.o: $(srcdir)/cexp.c $(CONFIG_H) system.h
1965 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/cexp.c
1966$(srcdir)/cexp.c: $(srcdir)/cexp.y
1967 cd $(srcdir); $(BISON) -o cexp.c cexp.y
1968

--- 476 unchanged lines hidden (view full) ---

2445 @echo You have to install gcc on your target machine by hand.
2446
2447# Run this on the target machine
2448# to finish installation of cross compiler.
2449# This is not used anymore now that float.h does not depend on enquire.
2450install-cross-rest: install-float-h-cross
2451
2452# Handle cpp installation.
1961CCCP_OBJS = cccp.o cexp.o intl.o prefix.o version.o @extra_cpp_objs@ mbchar.o
1962cccp$(exeext): $(CCCP_OBJS) $(LIBDEPS)
1963 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(CCCP_OBJS) $(LIBS)
1964cexp.o: $(srcdir)/cexp.c $(CONFIG_H) system.h
1965 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/cexp.c
1966$(srcdir)/cexp.c: $(srcdir)/cexp.y
1967 cd $(srcdir); $(BISON) -o cexp.c cexp.y
1968

--- 476 unchanged lines hidden (view full) ---

2445 @echo You have to install gcc on your target machine by hand.
2446
2447# Run this on the target machine
2448# to finish installation of cross compiler.
2449# This is not used anymore now that float.h does not depend on enquire.
2450install-cross-rest: install-float-h-cross
2451
2452# Handle cpp installation.
2453install-cpp: xcpp$(exeext)
2453install-cpp: cpp$(exeext)
2454 -rm -f $(bindir)/$(CPP_INSTALL_NAME)$(exeext)
2454 -rm -f $(bindir)/$(CPP_INSTALL_NAME)$(exeext)
2455 $(INSTALL_PROGRAM) -m 755 xcpp$(exeext) $(bindir)/$(CPP_INSTALL_NAME)$(exeext)
2455 $(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(bindir)/$(CPP_INSTALL_NAME)$(exeext)
2456 if [ x$(cpp_install_dir) != x ]; then \
2457 rm -f $(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
2456 if [ x$(cpp_install_dir) != x ]; then \
2457 rm -f $(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
2458 $(INSTALL_PROGRAM) -m 755 xcpp$(exeext) $(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
2458 $(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
2459 else true; fi
2460
2461uninstall-cpp:
2462 -rm -f $(bindir)/cpp
2463 -if [ x$(cpp_install_dir) != x ]; then \
2464 rm -f $(prefix)/$(cpp_install_dir)/cpp; \
2465 else true; fi
2466

--- 74 unchanged lines hidden (view full) ---

2541 $(INSTALL_PROGRAM) protoize$(exeext) $(bindir)/$(PROTOIZE_INSTALL_NAME)$(exeext); \
2542 rm -f $(bindir)/$(UNPROTOIZE_INSTALL_NAME)$(exeext); \
2543 $(INSTALL_PROGRAM) unprotoize$(exeext) $(bindir)/$(UNPROTOIZE_INSTALL_NAME)$(exeext); \
2544 fi ; \
2545 rm -f $(libsubdir)/SYSCALLS.c.X; \
2546 $(INSTALL_DATA) SYSCALLS.c.X $(libsubdir)/SYSCALLS.c.X; \
2547 chmod a-x $(libsubdir)/SYSCALLS.c.X; \
2548 fi
2459 else true; fi
2460
2461uninstall-cpp:
2462 -rm -f $(bindir)/cpp
2463 -if [ x$(cpp_install_dir) != x ]; then \
2464 rm -f $(prefix)/$(cpp_install_dir)/cpp; \
2465 else true; fi
2466

--- 74 unchanged lines hidden (view full) ---

2541 $(INSTALL_PROGRAM) protoize$(exeext) $(bindir)/$(PROTOIZE_INSTALL_NAME)$(exeext); \
2542 rm -f $(bindir)/$(UNPROTOIZE_INSTALL_NAME)$(exeext); \
2543 $(INSTALL_PROGRAM) unprotoize$(exeext) $(bindir)/$(UNPROTOIZE_INSTALL_NAME)$(exeext); \
2544 fi ; \
2545 rm -f $(libsubdir)/SYSCALLS.c.X; \
2546 $(INSTALL_DATA) SYSCALLS.c.X $(libsubdir)/SYSCALLS.c.X; \
2547 chmod a-x $(libsubdir)/SYSCALLS.c.X; \
2548 fi
2549 -rm -f $(libsubdir)/cpp$(exeext)
2550 $(INSTALL_PROGRAM) cpp$(exeext) $(libsubdir)/cpp$(exeext)
2549 -rm -f $(libsubdir)/cpp0$(exeext)
2550 $(INSTALL_PROGRAM) cpp0$(exeext) $(libsubdir)/cpp0$(exeext)
2551# Install gcov if it was compiled.
2552 -if [ -f gcov$(exeext) ]; \
2553 then \
2554 rm -f $(bindir)/gcov$(exeext); \
2555 $(INSTALL_PROGRAM) gcov$(exeext) $(bindir)/$(GCOV_INSTALL_NAME)$(exeext); \
2556 fi
2557
2558# Install the driver program as $(target_alias)-gcc

--- 642 unchanged lines hidden ---
2551# Install gcov if it was compiled.
2552 -if [ -f gcov$(exeext) ]; \
2553 then \
2554 rm -f $(bindir)/gcov$(exeext); \
2555 $(INSTALL_PROGRAM) gcov$(exeext) $(bindir)/$(GCOV_INSTALL_NAME)$(exeext); \
2556 fi
2557
2558# Install the driver program as $(target_alias)-gcc

--- 642 unchanged lines hidden ---