Preliminary cleanup for splitting host/native/target.
[deliverable/binutils-gdb.git] / gdb / Makefile
index 7446c6848a43821fc0cf61cbb48c293a598c685f..1bec69da6d0fbb7f0b74836c7221904821edcc2b 100755 (executable)
@@ -49,6 +49,9 @@ i960-tdep.c\
 infptrace.c\
 m68k-pinsn.c\
 m68k-tdep.c\
+m88k-pinsn.c\
+m88k-tdep.c\
+m88k-xdep.c\
 mips-pinsn.c\
 mips-tdep.c\
 mips-xdep.c\
@@ -164,6 +167,7 @@ ALLCONFIG=\
 ./tconfig/isi\
 ./tconfig/littlemips\
 ./tconfig/m88k\
+./tconfig/m88k.orig\
 ./tconfig/merlin\
 ./tconfig/news\
 ./tconfig/news1000\
@@ -202,6 +206,7 @@ ALLCONFIG=\
 ./xconfig/isi\
 ./xconfig/littlemips\
 ./xconfig/m88k\
+./xconfig/m88k.orig\
 ./xconfig/merlin\
 ./xconfig/news\
 ./xconfig/news1000\
@@ -267,6 +272,9 @@ YACC=bison -y
 # YACC=yacc
 SHELL=/bin/sh
 MAKE=make
+# We need either GNU m4 or SysV m4; Berkeley/Sun don't have quite enough.
+#M4=gm4
+M4=/usr/5bin/m4
 
 # Set this up with gcc if you have gnu ld and the loader will print out
 # line numbers for undefinded refs.
@@ -285,7 +293,8 @@ MALLOC_CFLAGS =
 INCLUDE_DIR =  ${srcdir}/../include
 INCLUDE_DEP = $$(INCLUDE_DIR)
 
-# Where is the BFD library?  Traditionally ../bfd or ./bfd
+# Where is the source dir for the BFD library?  Traditionally ../bfd or ./bfd
+# (When we want the binary library built from it, we use ${BFD_DIR}${subdir}.)
 BFD_DIR =  ${srcdir}/../bfd
 BFD_DEP = $$(BFD_DIR)
 
@@ -305,7 +314,8 @@ CFLAGS = ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} ${MALLOC_CFLAGS} ${INCLUDE_CFLAGS}
 LDFLAGS = $(CFLAGS)
 
 # Where is the "-liberty" library, containing getopt and obstack?
-LIBIBERTY =  ${srcdir}/../libiberty/libiberty.a
+LIBIBERTY_DIR = ${srcdir}/../libiberty
+LIBIBERTY = ${LIBIBERTY_DIR}${subdir}/libiberty.a
 
 # Flags that describe where you can find the termcap library.
 # You may need to make other arrangements for USG.
@@ -318,7 +328,7 @@ TERMCAP = -ltermcap
 # {X,T}M_CLIBS, if defined, has system-dependent libs
 # For example, -lPW for System V to get alloca().
 # FIXME STOPGAP FOR BFD LIBRARY: BFD stuff
-CLIBS = ${TERMCAP} $(XM_CLIBS) ${TM_CLIBS} ${BFD_DIR}/libbfd.a \
+CLIBS = ${TERMCAP} $(XM_CLIBS) ${TM_CLIBS} ${BFD_DIR}${subdir}/libbfd.a \
        ${LIBIBERTY}
 CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${BFD_DIR}/libbfd.a \
        ${LIBIBERTY}
@@ -326,7 +336,7 @@ CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${BFD_DIR}/libbfd.a \
 ADD_FILES = ${REGEX} ${ALLOCA} ${GNU_MALLOC}
 ADD_DEPS = ${REGEX1} ${ALLOCA1} ${GNU_MALLOC}
 
-VERSION = 3.94.3
+VERSION = 3.95
 DIST=gdb-$(VERSION)
 
 LINT=/usr/5bin/lint
@@ -410,7 +420,7 @@ OTHERS = Makefile.dist depend alldeps.mak Makefile.sdir \
         createtags munch config.gdb config.status \
         ChangeLog ChangeLog-3.x \
         README TODO TAGS WHATS.NEW \
-        gdb.texinfo gdbint.texinfo gdbrc.tex threecol.tex \
+        doc \
        .gdbinit COPYING expread.tab.c stab.def \
         copying.c Projects Convex.notes copying.awk \
         saber.suppress standalone.c stuff.c kdb-start.c \
@@ -465,14 +475,18 @@ gdb: $(OBS) $(TSOBS) ${ADD_DEPS} ${RL_LIB_DEP} ${CDEPS} init.o
        ${RL_LIB} $(CLIBS)
 
 saber_gdb: $(SFILES) $(DEPFILES) copying.c version.c
-       #setopt load_flags $(CFLAGS) -I$(BFD_DIR)
+       #setopt load_flags $(CFLAGS) -I$(BFD_DIR) -DHOST_SYS=SUN4_SYS
        #load ./init.c $(SFILES)
-       #unload ${srcdir}/expread.y
+       #unload ${srcdir}/expread.y ${srcdir}/vx-share/*.h
+       #unload ${srcdir}/nindy-share/[A-Z]*
        #load ${srcdir}/expread.tab.c readline/libreadline.a
        #load copying.c version.c
        #load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'`
-       #load ${BFD_DIR}/libbfd.a -ltermcap 
+       #load ${LIBIBERTY_DIR}/*.c
+       #load ${BFD_DIR}/*.c
+       #load -ltermcap 
        ##void mcheck(a) void (*a)(); { }
+       ##void mtrace() { }
 
 
 
@@ -623,6 +637,7 @@ clean:
        rm -f init.c init.o version.c
        rm -f gdb core gdb.tar gdb.tar.Z make.log
        rm -f gdb[0-9]
+       rm -f gdb.dvi gdb-all*
        cd readline ; make clean
 
 distclean: clean expread.tab.c TAGS
@@ -635,10 +650,21 @@ realclean: clean
        rm -f tm.h xm.h config.status
        rm -f Makefile
 
-gdb.dvi : gdb.texinfo
-       tex gdb.texinfo
-       texindex gdb.??
-       tex gdb.texinfo
+gdb-all.texinfo: ${srcdir}/doc/gdb.texinfo
+       ${M4} $(srcdir)/doc/pretex.m4 $(srcdir)/doc/none.m4 $(srcdir)/doc/all.m4 $(srcdir)/doc/gdb.texinfo >gdb-all.texinfo
+
+gdb.dvi : gdb-all.texinfo
+       tex gdb-all.texinfo
+       texindex gdb-all.??
+       tex gdb-all.texinfo
+       mv gdb-all.dvi gdb.dvi
+       rm -f gdb-all.?? gdb-all.???
+
+# This should work eventually, but we're using texinfo2, and many makeinfo's 
+# can't cope with all the markup.  In the meantime, we distribute the info
+# files as formatted by the elisp texinfo2 code.
+#gdb.info: gdb-all.texinfo
+#      makeinfo gdb-all.texinfo
 
 # Make copying.c from COPYING
 copying.c : COPYING copying.awk
This page took 0.026336 seconds and 4 git commands to generate.