diff options
author | Fred Fish <fnf@specifix.com> | 1993-03-23 01:01:49 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1993-03-23 01:01:49 +0000 |
commit | 1a0edbc7d7bf551740b2cc44552f7adf7e45ec88 (patch) | |
tree | d9c96951d85f1cfb555021296f52f61c34163b24 /gdb/Makefile.in | |
parent | e0fd5860a1e0ff76be778fdb372f496d9452da01 (diff) | |
download | gdb-1a0edbc7d7bf551740b2cc44552f7adf7e45ec88.zip gdb-1a0edbc7d7bf551740b2cc44552f7adf7e45ec88.tar.gz gdb-1a0edbc7d7bf551740b2cc44552f7adf7e45ec88.tar.bz2 |
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 1e77814..d3925b3 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -124,7 +124,8 @@ RL_LIB = ./../readline${subdir}/libreadline.a # All the includes used for CFLAGS and for lint. # -I. for config files. # -I${srcdir} possibly for regex.h also. -INCLUDE_CFLAGS = -I. -I${srcdir} -I$(INCLUDE_DIR) +# -I${srcdir}/config for more generic config files. +INCLUDE_CFLAGS = -I. -I${srcdir} -I${srcdir}/config -I$(INCLUDE_DIR) # M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS # from the config/ directory. @@ -340,7 +341,7 @@ LINTFILES = $(SFILES) $(YYFILES) init.c SFILES_STAND = $(SFILES) standalone.c SFILES_KGDB = $(SFILES) stuff.c kdb-start.c -# Header files that are not named in config/* Makefile fragments go here. +# Header files that are not named in config/*/* Makefile fragments go here. HFILES= breakpoint.h buildsym.h call-cmds.h command.h defs.h \ environ.h expression.h frame.h gdbcmd.h gdbcore.h gdbtypes.h \ ieee-float.h inferior.h language.h \ @@ -497,7 +498,7 @@ rapp: $(RAPP_OBS) alldeps.mak: ${srcdir}/config rm -f alldeps.mak alldeps.tmp allparam.tmp allconfig.tmp - for i in `ls -d ${srcdir}/config/*.m[ht]` ; do \ + for i in `ls -d ${srcdir}/config/*/*.m[ht]` ; do \ echo $$i >>allconfig.tmp; \ awk <$$i ' \ $$1 == "TDEPFILES=" || $$1 == "XDEPFILES=" \ @@ -521,6 +522,9 @@ alldeps.mak: ${srcdir}/config -e 's!udip2soc.o!29k-share/udi/udip2soc.c!' \ -e 's/\.o/.c/' \ >alldeps2.tmp + for i in `cat allparam.tmp` ; do \ + find config -name $$i -print >>allparam2.tmp ; \ + done echo '# Start of "alldeps.mak" definitions' \ >>alldeps.mak; echo 'ALLDEPFILES = $$(ALLDEPFILES_MAINDIR) $$(ALLDEPFILES_SUBDIR) $$(ALLDEP_FILES_SUBSUBDIR)' \ @@ -540,7 +544,7 @@ alldeps.mak: ${srcdir}/config NR == 0 {printf $$0;} \ NR != 0 {printf "\\\n" $$0} \ END {printf "\n\n"}' >>alldeps.mak; - sort <allparam.tmp | uniq | awk 'BEGIN {printf "ALLPARAM="} \ + sort <allparam2.tmp | uniq | awk 'BEGIN {printf "ALLPARAM="} \ NR == 0 {printf $$0;} \ NR != 0 {printf "\\\n" $$0} \ END {printf "\n\n"}' >>alldeps.mak; @@ -550,7 +554,7 @@ alldeps.mak: ${srcdir}/config END {printf "\n\n"}' >>alldeps.mak; echo '# End of "alldeps.mak" definitions' \ >>alldeps.mak; - rm -f alldeps.tmp alldeps2.tmp allparam.tmp allconfig.tmp + rm -f alldeps.tmp alldeps2.tmp allparam.tmp allparam2.tmp allconfig.tmp # The sed script makes everything which depends on {x,t}m.h depend on # config.status as well, in case someone reconfigures gdb out from |