]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # $Source$ | |
3 | # $Author$ | |
4 | # $Header$ | |
5 | # | |
6 | # Revised makefile for GDB library. | |
7 | # | |
8 | ||
9 | GDBCSRCS= gdb_struct.c gdb_stype.c gdb.c gdb_trans.c gdb_trans2.c \ | |
10 | gdb_conn.c gdb_serv.c gdb_fserv.c gdb_db.c gdb_debug.c gdb_ops.c | |
11 | ||
12 | GDBNONCSRCS= gdb.h gdb_lib.h dbserv.qc | |
13 | ||
14 | OTHERSRCS= test.c samp1a.c \ | |
15 | tst.c tst2.c tcl.c tdbcl.c tsr.c tfsr.c\ | |
16 | tst3.c tst4.c tst5.c tst6.c | |
17 | ||
18 | LIBOBJS = gdb.o gdb_struct.o gdb_stype.o gdb_trans.o gdb_trans2.o \ | |
19 | gdb_conn.o gdb_ops.o gdb_serv.o gdb_fserv.o gdb_db.o gdb_debug.o | |
20 | ||
21 | DOCS= library.mss gdb.mss gdb.prob gdb_ugd.mss slides.mss | |
22 | ||
23 | SAMPLES= samp1.c | |
24 | ||
25 | MISC= Makefile README gdb_version | |
26 | ||
27 | CFLAGS= -O -I../include | |
28 | ||
29 | CCPROF= ${CC} | |
30 | ||
31 | INGLIBS= /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib | |
32 | ||
33 | LINTFLAGS= -uhv -I../include | |
34 | ||
35 | .c.o: | |
36 | # ${CCPROF} -c -pg ${CFLAGS} $*.c | |
37 | # mv $*.o profiled/$*.o | |
38 | ${CC} -c ${CFLAGS} $*.c | |
39 | ||
40 | OPTS= | |
41 | ||
42 | all: libgdb.a llib-lgdb.ln # libgdb_p.a | |
43 | ||
44 | libgdb.a: ${LIBOBJS} | |
45 | ar uv libgdb.a ${LIBOBJS}; ranlib libgdb.a | |
46 | ||
47 | libgdb_p.a: ${LIBOBJS} | |
48 | (cd profiled; ar uv ../libgdb_p.a ${LIBOBJS}; ranlib ../libgdb_p.a) | |
49 | ||
50 | lint: | |
51 | lint ${LINTFLAGS} ${GDBCSRCS} | \ | |
52 | egrep -v "warning: possible pointer alignment problem" | |
53 | ||
54 | llib-lgdb.ln: ${LIBSRC} | |
55 | lint ${LINTFLAGS} -Cgdb ${GDBCSRCS} | |
56 | ||
57 | install: | |
58 | install -c -m 644 libgdb.a ${DESTDIR}/usr/athena/lib/libmrgdb.a | |
59 | ranlib ${DESTDIR}/usr/athena/lib/libmrgdb.a | |
60 | # install -c -m 644 libgdb_p.a ${DESTDIR}/usr/athena/lib/libmrgdb_p.a | |
61 | # ranlib ${DESTDIR}/usr/athena/lib/libmrgdb_p.a | |
62 | install -c -m 644 llib-lgdb.ln ${DESTDIR}/usr/lib/lint/llib-lmrgdb.ln | |
63 | ||
64 | # | |
65 | # Random demo programs | |
66 | # | |
67 | tst: tst.o libgdb.a | |
68 | cc ${OPTS} -o tst tst.o libgdb.a | |
69 | ||
70 | tsr: tsr.o libgdb.a | |
71 | cc ${OPTS} -o tsr tsr.o libgdb.a | |
72 | ||
73 | tfsr: tfsr.o libgdb.a | |
74 | cc ${OPTS} -o tfsr tfsr.o libgdb.a | |
75 | ||
76 | tcl: tcl.o libgdb.a | |
77 | cc ${OPTS} -o tcl tcl.o libgdb.a | |
78 | ||
79 | tdbcl: tdbcl.o libgdb.a | |
80 | cc ${OPTS} -o tdbcl tdbcl.o libgdb.a | |
81 | ||
82 | samp1a: samp1a.o libgdb.a | |
83 | cc ${OPTS} -o samp1a samp1a.o libgdb.a | |
84 | ||
85 | # | |
86 | # Documentation. | |
87 | # | |
88 | ||
89 | slides.PS: slides.mss | |
90 | scribe slides | |
91 | ||
92 | gdb_ugd.PS: gdb_ugd.mss | |
93 | scribe gdb_ugd | |
94 | ||
95 | library.PS: library.mss | |
96 | scribe library | |
97 | ||
98 | ugdprint: gdb_ugd.PS | |
99 | lpr -Pln03-bldge40-4 gdb_ugd.PS | |
100 | echo 'GDB User Guide sent to PostScript printer' | |
101 | ||
102 | libraryprint: library.PS | |
103 | lpr -Pln03-bldge40-4 library.PS | |
104 | echo 'GDB Library Reference Manual sent to PostScript printer' | |
105 | ||
106 | slideprint: slides.PS | |
107 | lpr -Pln03-bldge40-4 slides.PS | |
108 | echo 'GDB slides sent to PostScript printer' | |
109 | ||
110 | # | |
111 | # Cleanup. | |
112 | # | |
113 | ||
114 | clean: | |
115 | rm -f *.o libgdb.a libgdb_p.a tar.file *.PS *.err \#* *~ profiled/*.o | |
116 | rm -f llib-lgdb.ln TAGS | |
117 | ||
118 | depend: $(GDBCSRCS) | |
119 | mkdep ${CFLAGS} ${GDBCSRCS} | |
120 | ||
121 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
122 | ||
123 | gdb_struct.o: gdb_struct.c ../include/mit-copyright.h /usr/include/stdio.h | |
124 | gdb_struct.o: /usr/include/strings.h ../include/gdb.h | |
125 | gdb_struct.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
126 | gdb_struct.o: /usr/include/sys/time.h | |
127 | gdb_stype.o: gdb_stype.c ../include/mit-copyright.h /usr/include/stdio.h | |
128 | gdb_stype.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h | |
129 | gdb_stype.o: /usr/include/sys/time.h /usr/include/sys/time.h | |
130 | gdb_stype.o: /usr/include/netinet/in.h | |
131 | gdb.o: gdb.c /usr/include/stdio.h /usr/include/strings.h | |
132 | gdb.o: /usr/include/signal.h /usr/include/pwd.h ../include/gdb.h | |
133 | gdb.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
134 | gdb.o: /usr/include/sys/time.h gdb_lib.h /usr/include/errno.h | |
135 | gdb_trans.o: gdb_trans.c ../include/mit-copyright.h /usr/include/sys/types.h | |
136 | gdb_trans.o: /usr/include/strings.h /usr/include/stdio.h | |
137 | gdb_trans.o: /usr/include/varargs.h /usr/include/errno.h ../include/gdb.h | |
138 | gdb_trans.o: /usr/include/sys/time.h /usr/include/sys/time.h | |
139 | gdb_trans2.o: gdb_trans2.c ../include/mit-copyright.h | |
140 | gdb_trans2.o: /usr/include/sys/types.h /usr/include/errno.h | |
141 | gdb_trans2.o: /usr/include/stdio.h ../include/gdb.h /usr/include/sys/time.h | |
142 | gdb_trans2.o: /usr/include/sys/time.h /usr/include/sys/uio.h | |
143 | gdb_trans2.o: /usr/include/sys/socket.h | |
144 | gdb_conn.o: gdb_conn.c ../include/mit-copyright.h /usr/include/stdio.h | |
145 | gdb_conn.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h | |
146 | gdb_conn.o: /usr/include/sys/time.h /usr/include/sys/time.h | |
147 | gdb_conn.o: /usr/include/sys/uio.h /usr/include/sys/socket.h | |
148 | gdb_conn.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
149 | gdb_conn.o: /usr/include/sys/ttydev.h /usr/include/netinet/in.h | |
150 | gdb_conn.o: /usr/include/netdb.h /usr/include/errno.h | |
151 | gdb_serv.o: gdb_serv.c ../include/mit-copyright.h /usr/include/stdio.h | |
152 | gdb_serv.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h | |
153 | gdb_serv.o: /usr/include/sys/time.h /usr/include/sys/time.h | |
154 | gdb_serv.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
155 | gdb_serv.o: /usr/include/sys/ttydev.h | |
156 | gdb_fserv.o: gdb_fserv.c ../include/mit-copyright.h /usr/include/stdio.h | |
157 | gdb_fserv.o: /usr/include/sys/types.h /usr/include/sys/uio.h | |
158 | gdb_fserv.o: /usr/include/sys/socket.h /usr/include/sys/wait.h | |
159 | gdb_fserv.o: /usr/include/sys/signal.h ../include/gdb.h | |
160 | gdb_fserv.o: /usr/include/sys/time.h /usr/include/sys/time.h | |
161 | gdb_fserv.o: /usr/include/sys/resource.h | |
162 | gdb_db.o: gdb_db.c ../include/mit-copyright.h /usr/include/stdio.h | |
163 | gdb_db.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h | |
164 | gdb_db.o: /usr/include/sys/time.h /usr/include/sys/time.h | |
165 | gdb_debug.o: gdb_debug.c ../include/mit-copyright.h /usr/include/stdio.h | |
166 | gdb_debug.o: ../include/gdb.h /usr/include/sys/types.h | |
167 | gdb_debug.o: /usr/include/sys/time.h /usr/include/sys/time.h | |
168 | gdb_ops.o: gdb_ops.c ../include/mit-copyright.h /usr/include/stdio.h | |
169 | gdb_ops.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h | |
170 | gdb_ops.o: /usr/include/sys/time.h /usr/include/netinet/in.h | |
171 | gdb_ops.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
172 | gdb_ops.o: /usr/include/sys/ttydev.h |