* Makefile.in: Add 29k/UDI support. Improve depend.
[deliverable/binutils-gdb.git] / gdb / Makefile.in
index 546db241693408cb4c0c2cdcf3917068c231ff1b..247848ade731239606dabd0488c6590555f2a168 100644 (file)
@@ -129,7 +129,7 @@ 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$(READLINE_DIR) -I${srcdir}/vx-share
+INCLUDE_CFLAGS = -I. -I${srcdir} -I$(INCLUDE_DIR) -I$(READLINE_DIR) -I${srcdir}/vx-share -I${srcdir}/29k-share/include -I${srcdir}/29k-share/udi
 
 # {X,T}M_CFLAGS, if defined, has system-dependent CFLAGS.
 # CFLAGS for GDB
@@ -210,7 +210,19 @@ SFILES_SUBDIR = \
         ${srcdir}/nindy-share/demux.h \
         ${srcdir}/nindy-share/env.h \
         ${srcdir}/nindy-share/stop.h \
-        ${srcdir}/nindy-share/ttycntl.h
+        ${srcdir}/nindy-share/ttycntl.h \
+        ${srcdir}/29k-share/include/coff.h \
+        ${srcdir}/29k-share/include/error.h \
+        ${srcdir}/29k-share/include/macros.h \
+        ${srcdir}/29k-share/include/main.h \
+        ${srcdir}/29k-share/include/memspcs.h \
+        ${srcdir}/29k-share/include/miniint.h \
+        ${srcdir}/29k-share/udi/udiphcfg.h \
+        ${srcdir}/29k-share/udi/udiphsun.h \
+        ${srcdir}/29k-share/udi/udiproc.h \
+        ${srcdir}/29k-share/udi/udipt29k.h \
+        ${srcdir}/29k-share/udi/udiptcfg.h \
+        ${srcdir}/29k-share/udi/udisoc.h
 
 # Non-source files in subdirs, that should go into gdb.tar.Z.
 NONSRC_SUBDIR = \
@@ -385,6 +397,10 @@ alldeps.mak: ${srcdir}/config
              -e 's!xdr_ptrace.o!vx-share/xdr_ptrace.c!' \
              -e 's!xdr_rdb.o!vx-share/xdr_rdb.c!' \
              -e 's!xdr_regs.o!vx-share/xdr_regs.c!' \
+             -e 's!udr.o!29k-share/udi/udr.c!' \
+             -e 's!yank.o!29k-share/dfe/yank.c!' \
+             -e 's!udip2soc.o!29k-share/udi/udip2soc.c!' \
+             -e 's!mini2udi.o!29k-share/dfe/mini2udi.c!' \
              -e 's/\.o/.c/' \
            >alldeps2.tmp
        echo '# Start of "alldeps.mak" definitions' \
@@ -419,12 +435,12 @@ alldeps.mak: ${srcdir}/config
 depend: $(SOURCES) Makefile.in
        @echo Ignore errors about non-existent system-supplied include files
        @echo for systems other than the one you are using.
-       @echo "If xm.h and tm.h don't exist, the error messages saying so"
-       @echo can safely be ignored.
        @echo Also ignore parse errors in valops.c, and any errors in
        @echo arm-convert.s.
+       touch xm.h tm.h
        -$(GCC) -MM -nostdinc -I/usr/include $(CFLAGS) -I$(BFD_DIR) \
-         `ls $(SOURCES) | grep -v '\.[hy]$$' |sort -u` >depend.tmp
+         $(INCLUDE_CFLAGS) `ls $(SOURCES) | grep -v '\.[hy]$$' | \
+         sort -u` >depend.tmp
 # If running in srcdir, translate "./foo.c" into "$srcdir/foo.c" except
 # for xm.h and tm.h.  This allows the same "depend" file to be used
 # by the various subdirectories.
@@ -435,6 +451,7 @@ depend: $(SOURCES) Makefile.in
            -e 's; \./; $${srcdir}/;g'  \
            -e 's; vx-share/; $${srcdir}/vx-share/;g'  \
            -e 's; nindy-share/; $${srcdir}/nindy-share/;g'  \
+           -e 's; 29k-share/; $${srcdir}/29k-share/;g'  \
            >depend.tm2; \
          rm depend.tmp; \
          mv depend.tm2 depend.tmp; \
@@ -532,7 +549,8 @@ make-proto-gdb-1: ${TARFILES} ${TARDIRS} gdb.info
        mkdir proto-gdb.dir/config
        cd proto-gdb.dir/config ; \
          for i in $(ALLCONFIG) ; do ln -s ../../$$i ../$$i ; done
-       mkdir proto-gdb.dir/vx-share proto-gdb.dir/nindy-share
+       mkdir proto-gdb.dir/vx-share proto-gdb.dir/nindy-share \
+               proto-gdb.dir/29k-share
        cd proto-gdb.dir/config ; \
          for i in $(SFILES_SUBDIR) $(NONSRC_SUBDIR) $(ALLDEPFILES_SUBDIR); \
            do ln -s ../../$$i ../$$i ; done
@@ -675,6 +693,18 @@ ttybreak.o: ${srcdir}/nindy-share/ttybreak.c
 ttyflush.o: ${srcdir}/nindy-share/ttyflush.c
        ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/nindy-share/ttyflush.c
 
+udr.o: ${srcdir}/29k-share/udi/udr.c
+       ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/29k-share/udi/udr.c
+
+udip2soc.o: ${srcdir}/29k-share/udi/udip2soc.c
+       ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/29k-share/udi/udip2soc.c
+
+mini2udi.o: ${srcdir}/29k-share/dfe/mini2udi.c
+       ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/29k-share/dfe/mini2udi.c
+
+yank.o: ${srcdir}/29k-share/dfe/yank.c
+       ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/29k-share/dfe/yank.c
+
 lint: $(LINTFILES)
        $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES) \
           `echo ${DEPFILES} | sed 's/\.o /\.c /g'
This page took 0.024125 seconds and 4 git commands to generate.