OPCODES = ./../opcodes/libopcodes.a
# Where are the other opcode tables which only have header file
# versions?
-OPCODES_CFLAGS = -I$(INCLUDE_DIR)/opcode
+OP_INCLUDE = $(INCLUDE_DIR)/opcode
+OPCODES_CFLAGS = -I$(OP_INCLUDE)
# All the includes used for CFLAGS and for lint.
# -I. for config files.
SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES)
# Don't include YYFILES (*.tab.c) because we already include *.y in SFILES,
# and it's more useful to see it in the .y file.
-TAGFILES = $(SFILES) $(HFILES) $(ALLPARAM) $(POSSLIBS)
+TAGFILES = $(SFILES) $(HFILES) $(ALLDEPFILES) $(ALLPARAM) $(POSSLIBS)
TARFILES = $(SFILES) $(HFILES) $(NONSRC) $(ALLDEPFILES) $(ALLCONFIG) \
$(ALLPARAM) $(INFOFILES) $(POSSLIBS) $(REMOTE_EXAMPLES)
nroff -man $(srcdir)/gdb.1 | col -b > gdb.t
pack gdb.t ; rm -f gdb.t
mv gdb.t.z gdb.z
-
+
# Traditionally "install" depends on "all". But it may be useful
# not to; for example, if the user has made some trivial change to a
# source file and doesn't care about rebuilding or just wants to save the
@$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
init.c: munch $(OBS) $(TSOBS)
- $(srcdir)/munch $(MUNCH_DEFINE) $(OBS) $(TSOBS) > init.c
+ $(srcdir)/munch $(MUNCH_DEFINE) $(OBS) $(TSOBS) > init.c-new
+ mv init.c-new init.c
+
+.PRECIOUS: init.c
+# Removing the old gdb first works better if it is running, at least on SunOS.
gdb: $(OBS) $(TSOBS) $(ADD_DEPS) $(CDEPS) init.o
+ rm -f gdb
$(CC-LD) $(GLOBAL_CFLAGS) $(LDFLAGS) -o gdb \
init.o $(OBS) $(TSOBS) $(ADD_FILES) $(CLIBS) $(LOADLIBES)
rm -f rapp_init.c
$(srcdir)/munch $(MUNCH_DEFINE) $(RAPP_OBS) > rapp_init.c
$(CC-LD) $(LDFLAGS) -o $@ rapp_init.c $(RAPP_OBS)
-
+
config.status:
@echo "You must configure gdb. Look at the README file for details."
@false
$(MAKE) $(MFLAGS) gdb.info
$(MAKE) $(MFLAGS) refcard.ps
-# Update the "alldeps.mak" file in a source directory.
-update-alldeps: force_update
- ../configure none -norecursion
- rm -f alldeps.mak
- $(MAKE) $(MFLAGS) alldeps.mak
-
# Build a tar file from a proto-gdb.dir.
gdb-$(VERSION).tar.Z: force_update
rm -f gdb.tar gdb-$(VERSION).tar.Z
distclean: clean
@$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(SUBDIRS)" subdir_do
rm -f nm.h tm.h xm.h config.status
- rm -f y.output yacc.acts yacc.tmp
+ rm -f y.output yacc.acts yacc.tmp y.tab.h
rm -f Makefile
realclean: clean
# c-exp.tab.c is generated in objdir from c-exp.y if it doesn't exist
# in srcdir, then compiled in objdir to c-exp.tab.o.
-# c-exp.tab.c is so the command argument will never match c-exp.y
-# (some "makes" rewrite the VPATH into command arguments if they match deps).
+
+# If we said c-exp.tab.c rather than ./c-exp.tab.c some makes
+# would sometimes re-write it into $(srcdir)/c-exp.tab.c.
+
# Remove bogus decls for malloc/realloc/free which conflict with everything
# else.
c-exp.tab.o: c-exp.tab.c
-e 's/realloc/xrealloc/g' \
< y.tab.c > c-exp.new
-rm y.tab.c
- mv c-exp.new c-exp.tab.c
+ mv c-exp.new ./c-exp.tab.c
# ch-exp.tab.c is generated in objdir from ch-exp.y if it doesn't exist
# in srcdir, then compiled in objdir to ch-exp.tab.o.
-e 's/realloc/xrealloc/g' \
< y.tab.c > ch-exp.new
-rm y.tab.c
- mv ch-exp.new ch-exp.tab.c
+ mv ch-exp.new ./ch-exp.tab.c
# m2-exp.tab.c is generated in objdir from m2-exp.y if it doesn't exist
# in srcdir, then compiled in objdir to m2-exp.tab.o.
-e 's/realloc/xrealloc/g' \
< y.tab.c > m2-exp.new
-rm y.tab.c
- mv m2-exp.new m2-exp.tab.c
+ mv m2-exp.new ./m2-exp.tab.c
# These files are updated atomically, so make never has to remove them
.PRECIOUS: m2-exp.tab.c ch-exp.tab.c c-exp.tab.c
# These are things from config/*/*.m? fragments. There is no good reason
# why they are separate from the lists of files above.
-ALLDEPFILES = 29k-share/udi/udi/udip2soc.c 29k-share/udi/udi/udr.c \
+ALLDEPFILES = 29k-share/udi/udip2soc.c 29k-share/udi/udr.c \
a29k-pinsn.c a29k-tdep.c a68v-nat.c altos-xdep.c arm-convert.s \
arm-pinsn.c arm-tdep.c arm-xdep.c convex-pinsn.c convex-tdep.c \
convex-xdep.c core-svr4.c coredep.c corelow.c exec.c fork-child.c \
xcoffexec.c xcoffread.c xcoffsolib.c z8k-tdep.c
ALLPARAM = config/a29k/nm-ultra3.h config/a29k/tm-a29k.h \
- config/a29k/tm-ultra3.h config/a29k/xm-ultra3.h config/arm/tm-arm.h \
+ config/a29k/tm-ultra3.h config/a29k/xm-ultra3.h \
+ config/alpha/xm-alpha.h config/arm/tm-arm.h \
config/arm/xm-arm.h config/convex/tm-convex.h \
config/convex/xm-convex.h config/gould/tm-np1.h config/gould/tm-pn.h \
config/gould/xm-np1.h config/gould/xm-pn.h config/h8300/tm-h8300.h \
config/m68k/xm-sun2.h config/m68k/xm-sun3.h config/m68k/xm-sun3os4.h \
config/m88k/nm-m88k.h config/m88k/tm-delta88.h config/m88k/tm-m88k.h \
config/m88k/xm-delta88.h config/m88k/xm-m88k.h config/mips/nm-irix3.h \
- config/mips/nm-irix4.h config/mips/nm-mips.h config/mips/tm-bigmips.h \
+ config/mips/nm-irix4.h config/mips/nm-mips.h config/mips/nm-riscos.h \
+ config/mips/nm-news-mips.h config/mips/tm-bigmips.h \
config/mips/tm-irix3.h config/mips/tm-mips.h config/mips/xm-irix3.h \
- config/mips/xm-irix4.h config/mips/xm-mips.h config/nm-sysv4.h \
+ config/mips/xm-irix4.h config/mips/xm-mips.h config/mips/xm-riscos.h \
+ config/mips/xm-news-mips.h \
+ config/nm-sysv4.h \
config/none/nm-none.h config/none/tm-none.h config/none/xm-none.h \
config/ns32k/nm-umax.h config/ns32k/tm-merlin.h config/ns32k/tm-umax.h \
config/ns32k/xm-merlin.h config/ns32k/xm-umax.h config/pa/nm-hppab.h \
config/pa/nm-hppah.h config/pa/tm-hppab.h config/pa/tm-hppah.h \
- config/pa/xm-hppab.h config/pa/xm-hppah.h config/pyr/tm-pyr.h \
+ config/pa/xm-hppab.h config/pa/xm-hppah.h config/pa/xm-pa.h \
+ config/pyr/tm-pyr.h \
config/pyr/xm-pyr.h config/romp/xm-rtbsd.h config/rs6000/nm-rs6000.h \
config/rs6000/tm-rs6000.h config/rs6000/xm-rs6000.h config/sh/tm-sh.h \
config/sparc/nm-sun4os4.h config/sparc/tm-sparclite.h \
ALLCONFIG = config/a29k/a29k-kern.mt config/a29k/a29k-udi.mt \
config/a29k/a29k.mt config/a29k/ultra3.mh config/a29k/ultra3.mt \
+ config/alpha/alpha-osf1.mh \
config/arm/arm.mh config/arm/arm.mt config/convex/convex.mh \
config/convex/convex.mt config/gould/np1.mh config/gould/np1.mt \
config/gould/pn.mh config/gould/pn.mt config/h8300/h8300hms.mt \
symm-tdep.o: symm-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
symm-xdep.o: symm-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
-
+
symmisc.o: symmisc.c $(bfd_h) $(breakpoint_h) $(command_h) $(defs_h) \
$(expression_h) $(gdbtypes_h) language.h objfiles.h symfile.h \
$(symtab_h)
valarith.o: valarith.c $(bfd_h) $(defs_h) $(expression_h) \
$(gdbtypes_h) language.h $(symtab_h) target.h $(value_h)
-
+
valops.o: valops.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h
-
+
valprint.o: valprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
$(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \
$(value_h)