]> andersk Git - moira.git/blobdiff - gdb/Makefile
Used /bin/sh format instead of /bin/csh format, by accident.
[moira.git] / gdb / Makefile
index c1755b2df416566edbd2119fd3a91bf7fd3e8930..426c9d8b6b950cbdf59c2a68bd79d59eb0d58db8 100644 (file)
@@ -1,9 +1,5 @@
 #
 #      $Source$
-#      $Header$
-#
-
-#      $Source$
 #      $Author$
 #      $Header$
 #
@@ -26,24 +22,24 @@ DOCS= library.mss gdb.mss gdb.prob gdb_ugd.mss slides.mss
 
 SAMPLES= samp1.c 
 
-MISC= Makefile .saberinit README gdb_version
+MISC= Makefile README gdb_version
 
-CFLAGS= -O
+CFLAGS= -O -I../include
 
 CCPROF= ${CC}
 
-FTP= /mit/ftp/gdb
-
 INGLIBS= /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib
 
+LINTFLAGS= -uhv -I../include
+
 .c.o:
-       ${CCPROF} -c -pg ${CFLAGS} $*.c
-       mv $*.o profiled/$*.o
+#      ${CCPROF} -c -pg ${CFLAGS} $*.c
+#      mv $*.o profiled/$*.o
        ${CC} -c ${CFLAGS} $*.c
 
 OPTS=
 
-all: libgdb.a libgdb_p.a
+all: libgdb.a llib-lgdb.ln # libgdb_p.a 
 
 libgdb.a: ${LIBOBJS}
        ar uv libgdb.a ${LIBOBJS}; ranlib libgdb.a
@@ -52,32 +48,25 @@ libgdb_p.a: ${LIBOBJS}
        (cd profiled; ar uv ../libgdb_p.a ${LIBOBJS}; ranlib ../libgdb_p.a)
 
 lint:
-       lint -huv ${GDBCSRCS} | \
+       lint ${LINTFLAGS} ${GDBCSRCS} | \
        egrep -v "warning: possible pointer alignment problem"
+
+llib-lgdb.ln: ${LIBSRC}
+       lint ${LINTFLAGS} -Cgdb ${GDBCSRCS}
+
+install:
+       install -c -m 644 libgdb.a ${DESTDIR}/usr/athena/lib/libmrgdb.a
+       ranlib ${DESTDIR}/usr/athena/lib/libmrgdb.a
+#      install -c -m 644 libgdb_p.a ${DESTDIR}/usr/athena/lib/libmrgdb_p.a
+#      ranlib ${DESTDIR}/usr/athena/lib/libmrgdb_p.a
+       install -c -m 644 llib-lgdb.ln ${DESTDIR}/usr/lib/lint/llib-lmrgdb.ln
+
 #
 # Random demo programs
 #
 tst: tst.o libgdb.a 
        cc ${OPTS} -o tst tst.o libgdb.a
 
-stest: stest.o  libgdb.a 
-       cc ${OPTS} -o stest stest.o libgdb.a
-
-tst2: tst2.o  libgdb.a 
-       cc ${OPTS} -o tst2 tst2.o libgdb.a
-
-tst3: tst3.o  libgdb.a 
-       cc ${OPTS} -o tst3 tst3.o libgdb.a
-
-tst4: tst4.o  libgdb.a 
-       cc ${OPTS} -o tst4 tst4.o  libgdb.a
-
-tst5: tst5.o  libgdb.a 
-       cc ${OPTS} -o tst5 tst5.o  libgdb.a
-
-tst6: tst6.o  libgdb.a 
-       cc ${OPTS} -o tst6 tst6.o  libgdb.a
-
 tsr: tsr.o  libgdb.a 
        cc ${OPTS} -o tsr tsr.o  libgdb.a
 
@@ -92,13 +81,6 @@ tdbcl: tdbcl.o  libgdb.a
 
 samp1a: samp1a.o  libgdb.a 
        cc ${OPTS} -o samp1a samp1a.o  libgdb.a
-       
-dbserv: dbserv.o  libgdb.a 
-       cc ${OPTS} -o dbserv dbserv.o libgdb.a ${INGLIBS} -lm
-       chmod 6755 dbserv
-
-dbserv.c: dbserv.qc 
-       eqc -d -fdbserv.c dbserv.qc
 
 #
 #      Documentation.
@@ -125,51 +107,66 @@ slideprint:  slides.PS
        lpr  -Pln03-bldge40-4 slides.PS
        echo 'GDB slides sent to PostScript printer'
 
-#
-# Distribution.
-#
-
-tar.file: ${GDBCSRCS} ${GDBNONCSRCS} ${OTHERSRCS} ${DOCS} ${SAMPLES} ${MISC}
-       rm -f tar.file
-       tar cvf tar.file ${GDBCSRCS} ${GDBNONCSRCS} ${OTHERSRCS} \
-               ${DOCS} ${SAMPLES} ${MISC}
-       chmod 644 tar.file
-
-archive: tar.file
-       rcp tar.file "menelaus:~noah/gdb/tar.file"
-
-ftp: tar.file
-       rm -f ${FTP}/tar.file.Z ${FTP}/README
-       compress -c tar.file > ${FTP}/tar.file.Z
-       cp README ${FTP}/README
-       chmod 755 ${FTP}/tar.file.Z ${FTP}/README
-
 # 
 # Cleanup.
 #
 
 clean:
-       rm -f *.o libgdb.a tar.file *.PS *.err \#* *~ profiled/*.o
-
-depend: $(CFILES)
-       $(CC) -M $(CFLAGS) $(CFILES) | \
-       sed -e 's; ./; ;' \
-           -e ':loop' \
-           -e 's/\.\.\/[^ /]*\/\.\./../' \
-           -e 't loop' | \
-       awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
-               else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
-                      else rec = rec " " $$2 } } \
-             END { print rec } ' > makedep
-       echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
-       echo '$$r makedep' >>eddep
-       echo 'w' >>eddep
-       cp Makefile Makefile.bak
-       ed - Makefile < eddep
-       rm eddep makedep
-#
-# the last constant line in the makefile should be...
-# DO NOT DELETE THIS LINE
-
-
-
+       rm -f *.o libgdb.a libgdb_p.a tar.file *.PS *.err \#* *~ profiled/*.o
+       rm -f llib-lgdb.ln TAGS
+
+depend: $(GDBCSRCS)
+       mkdep ${CFLAGS} ${GDBCSRCS}
+
+# DO NOT DELETE THIS LINE -- mkdep uses it.
+
+gdb_struct.o: gdb_struct.c ../include/mit-copyright.h /usr/include/stdio.h
+gdb_struct.o: /usr/include/strings.h ../include/gdb.h
+gdb_struct.o: /usr/include/sys/types.h /usr/include/sys/time.h
+gdb_struct.o: /usr/include/sys/time.h
+gdb_stype.o: gdb_stype.c ../include/mit-copyright.h /usr/include/stdio.h
+gdb_stype.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h
+gdb_stype.o: /usr/include/sys/time.h /usr/include/sys/time.h
+gdb_stype.o: /usr/include/netinet/in.h
+gdb.o: gdb.c /usr/include/stdio.h /usr/include/strings.h
+gdb.o: /usr/include/signal.h /usr/include/pwd.h ../include/gdb.h
+gdb.o: /usr/include/sys/types.h /usr/include/sys/time.h
+gdb.o: /usr/include/sys/time.h gdb_lib.h /usr/include/errno.h
+gdb_trans.o: gdb_trans.c ../include/mit-copyright.h /usr/include/sys/types.h
+gdb_trans.o: /usr/include/strings.h /usr/include/stdio.h
+gdb_trans.o: /usr/include/varargs.h /usr/include/errno.h ../include/gdb.h
+gdb_trans.o: /usr/include/sys/time.h /usr/include/sys/time.h
+gdb_trans2.o: gdb_trans2.c ../include/mit-copyright.h
+gdb_trans2.o: /usr/include/sys/types.h /usr/include/errno.h
+gdb_trans2.o: /usr/include/stdio.h ../include/gdb.h /usr/include/sys/time.h
+gdb_trans2.o: /usr/include/sys/time.h /usr/include/sys/uio.h
+gdb_trans2.o: /usr/include/sys/socket.h
+gdb_conn.o: gdb_conn.c ../include/mit-copyright.h /usr/include/stdio.h
+gdb_conn.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h
+gdb_conn.o: /usr/include/sys/time.h /usr/include/sys/time.h
+gdb_conn.o: /usr/include/sys/uio.h /usr/include/sys/socket.h
+gdb_conn.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
+gdb_conn.o: /usr/include/sys/ttydev.h /usr/include/netinet/in.h
+gdb_conn.o: /usr/include/netdb.h /usr/include/errno.h
+gdb_serv.o: gdb_serv.c ../include/mit-copyright.h /usr/include/stdio.h
+gdb_serv.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h
+gdb_serv.o: /usr/include/sys/time.h /usr/include/sys/time.h
+gdb_serv.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
+gdb_serv.o: /usr/include/sys/ttydev.h
+gdb_fserv.o: gdb_fserv.c ../include/mit-copyright.h /usr/include/stdio.h
+gdb_fserv.o: /usr/include/sys/types.h /usr/include/sys/uio.h
+gdb_fserv.o: /usr/include/sys/socket.h /usr/include/sys/wait.h
+gdb_fserv.o: /usr/include/sys/signal.h ../include/gdb.h
+gdb_fserv.o: /usr/include/sys/time.h /usr/include/sys/time.h
+gdb_fserv.o: /usr/include/sys/resource.h
+gdb_db.o: gdb_db.c ../include/mit-copyright.h /usr/include/stdio.h
+gdb_db.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h
+gdb_db.o: /usr/include/sys/time.h /usr/include/sys/time.h
+gdb_debug.o: gdb_debug.c ../include/mit-copyright.h /usr/include/stdio.h
+gdb_debug.o: ../include/gdb.h /usr/include/sys/types.h
+gdb_debug.o: /usr/include/sys/time.h /usr/include/sys/time.h
+gdb_ops.o: gdb_ops.c ../include/mit-copyright.h /usr/include/stdio.h
+gdb_ops.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
+gdb_ops.o: /usr/include/sys/time.h /usr/include/netinet/in.h
+gdb_ops.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
+gdb_ops.o: /usr/include/sys/ttydev.h
This page took 0.218737 seconds and 4 git commands to generate.