]> andersk Git - moira.git/blame - gdb/Makefile
deal with ^D in input, don't return a pointer into the stack, don't
[moira.git] / gdb / Makefile
CommitLineData
5580185e 1#
2# $Source$
5580185e 3# $Author$
4# $Header$
5#
6# Revised makefile for GDB library.
7#
8
9GDBCSRCS= 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
12GDBNONCSRCS= gdb.h gdb_lib.h dbserv.qc
13
14OTHERSRCS= 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
18LIBOBJS = 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
21DOCS= library.mss gdb.mss gdb.prob gdb_ugd.mss slides.mss
22
23SAMPLES= samp1.c
24
25MISC= Makefile .saberinit README gdb_version
26
27CFLAGS= -O
28
29CCPROF= ${CC}
30
31FTP= /mit/ftp/gdb
32
33INGLIBS= /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib
34
19f42eac 35LINTFLAGS= -uhv
36
5580185e 37.c.o:
38 ${CCPROF} -c -pg ${CFLAGS} $*.c
39 mv $*.o profiled/$*.o
40 ${CC} -c ${CFLAGS} $*.c
41
42OPTS=
43
19f42eac 44all: libgdb.a libgdb_p.a llib-lgdb.ln
5580185e 45
46libgdb.a: ${LIBOBJS}
47 ar uv libgdb.a ${LIBOBJS}; ranlib libgdb.a
48
49libgdb_p.a: ${LIBOBJS}
50 (cd profiled; ar uv ../libgdb_p.a ${LIBOBJS}; ranlib ../libgdb_p.a)
51
52lint:
53 lint -huv ${GDBCSRCS} | \
54 egrep -v "warning: possible pointer alignment problem"
19f42eac 55
56llib-lgdb.ln: ${LIBSRC}
57 lint -Cgdb ${GDBCSRCS}
58
59install:
60 install -m 644 libgdb.a ${DESTDIR}/usr/athena/lib/libgdb.a
61 ranlib ${DESTDIR}/usr/athena/lib/libgdb.a
62 install -m 644 libgdb_p.a ${DESTDIR}/usr/athena/lib/libgdb_p.a
63 ranlib ${DESTDIR}/usr/athena/lib/libgdb_p.a
64 -mkdir ${DESTDIR}/usr/athena/lib/lint
65 install -m 644 llib-lgdb.ln ${DESTDIR}/usr/athena/lib/lint/llib-lgdb.ln
66
5580185e 67#
68# Random demo programs
69#
70tst: tst.o libgdb.a
71 cc ${OPTS} -o tst tst.o libgdb.a
72
73stest: stest.o libgdb.a
74 cc ${OPTS} -o stest stest.o libgdb.a
75
76tst2: tst2.o libgdb.a
77 cc ${OPTS} -o tst2 tst2.o libgdb.a
78
79tst3: tst3.o libgdb.a
80 cc ${OPTS} -o tst3 tst3.o libgdb.a
81
82tst4: tst4.o libgdb.a
83 cc ${OPTS} -o tst4 tst4.o libgdb.a
84
85tst5: tst5.o libgdb.a
86 cc ${OPTS} -o tst5 tst5.o libgdb.a
87
88tst6: tst6.o libgdb.a
89 cc ${OPTS} -o tst6 tst6.o libgdb.a
90
91tsr: tsr.o libgdb.a
92 cc ${OPTS} -o tsr tsr.o libgdb.a
93
94tfsr: tfsr.o libgdb.a
95 cc ${OPTS} -o tfsr tfsr.o libgdb.a
96
97tcl: tcl.o libgdb.a
98 cc ${OPTS} -o tcl tcl.o libgdb.a
99
100tdbcl: tdbcl.o libgdb.a
101 cc ${OPTS} -o tdbcl tdbcl.o libgdb.a
102
103samp1a: samp1a.o libgdb.a
104 cc ${OPTS} -o samp1a samp1a.o libgdb.a
105
106dbserv: dbserv.o libgdb.a
107 cc ${OPTS} -o dbserv dbserv.o libgdb.a ${INGLIBS} -lm
108 chmod 6755 dbserv
109
110dbserv.c: dbserv.qc
7b2afff7 111 /usr/rtingres/bin/eqc -d -fdbserv.c dbserv.qc
5580185e 112
113#
114# Documentation.
115#
116
117slides.PS: slides.mss
118 scribe slides
119
120gdb_ugd.PS: gdb_ugd.mss
121 scribe gdb_ugd
122
123library.PS: library.mss
124 scribe library
125
126ugdprint: gdb_ugd.PS
127 lpr -Pln03-bldge40-4 gdb_ugd.PS
128 echo 'GDB User Guide sent to PostScript printer'
129
130libraryprint: library.PS
131 lpr -Pln03-bldge40-4 library.PS
132 echo 'GDB Library Reference Manual sent to PostScript printer'
133
134slideprint: slides.PS
135 lpr -Pln03-bldge40-4 slides.PS
136 echo 'GDB slides sent to PostScript printer'
137
138#
139# Distribution.
140#
141
142tar.file: ${GDBCSRCS} ${GDBNONCSRCS} ${OTHERSRCS} ${DOCS} ${SAMPLES} ${MISC}
143 rm -f tar.file
144 tar cvf tar.file ${GDBCSRCS} ${GDBNONCSRCS} ${OTHERSRCS} \
145 ${DOCS} ${SAMPLES} ${MISC}
146 chmod 644 tar.file
147
148archive: tar.file
149 rcp tar.file "menelaus:~noah/gdb/tar.file"
150
151ftp: tar.file
152 rm -f ${FTP}/tar.file.Z ${FTP}/README
153 compress -c tar.file > ${FTP}/tar.file.Z
154 cp README ${FTP}/README
155 chmod 755 ${FTP}/tar.file.Z ${FTP}/README
156
157#
158# Cleanup.
159#
160
161clean:
7f0235a2 162 rm -f *.o libgdb.a libgdb_p.a tar.file *.PS *.err \#* *~ profiled/*.o
5580185e 163
7f0235a2 164depend: $(GDBCSRCS)
165 $(CC) -M $(CFLAGS) $(GDBCSRCS) | \
5580185e 166 sed -e 's; ./; ;' \
167 -e ':loop' \
168 -e 's/\.\.\/[^ /]*\/\.\./../' \
169 -e 't loop' | \
170 awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
171 else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
172 else rec = rec " " $$2 } } \
173 END { print rec } ' > makedep
174 echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
175 echo '$$r makedep' >>eddep
176 echo 'w' >>eddep
177 cp Makefile Makefile.bak
178 ed - Makefile < eddep
179 rm eddep makedep
180#
181# the last constant line in the makefile should be...
182# DO NOT DELETE THIS LINE
183
7f0235a2 184gdb_struct.o: gdb_struct.c /usr/include/stdio.h /usr/include/strings.h gdb.h
185gdb_struct.o: /usr/include/sys/types.h /usr/include/sys/time.h
186gdb_struct.o: /usr/include/time.h
187gdb_stype.o: gdb_stype.c /usr/include/stdio.h /usr/include/strings.h gdb.h
188gdb_stype.o: /usr/include/sys/types.h /usr/include/sys/time.h
189gdb_stype.o: /usr/include/time.h /usr/include/netinet/in.h
190gdb.o: gdb.c /usr/include/stdio.h /usr/include/strings.h /usr/include/signal.h
191gdb.o: /usr/include/pwd.h gdb.h /usr/include/sys/types.h
192gdb.o: /usr/include/sys/time.h /usr/include/time.h gdb_lib.h
193gdb.o: /usr/include/errno.h
194gdb_trans.o: gdb_trans.c /usr/include/sys/types.h /usr/include/strings.h
195gdb_trans.o: /usr/include/stdio.h /usr/include/varargs.h /usr/include/errno.h
196gdb_trans.o: gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
197gdb_trans.o: /usr/include/time.h
198gdb_trans2.o: gdb_trans2.c /usr/include/sys/types.h /usr/include/errno.h
199gdb_trans2.o: /usr/include/stdio.h gdb.h /usr/include/sys/types.h
200gdb_trans2.o: /usr/include/sys/time.h /usr/include/time.h
201gdb_trans2.o: /usr/include/sys/uio.h /usr/include/sys/socket.h
202gdb_conn.o: gdb_conn.c /usr/include/stdio.h /usr/include/strings.h gdb.h
203gdb_conn.o: /usr/include/sys/types.h /usr/include/sys/time.h
204gdb_conn.o: /usr/include/time.h /usr/include/sys/types.h /usr/include/sys/uio.h
205gdb_conn.o: /usr/include/sys/socket.h /usr/include/sys/ioctl.h
206gdb_conn.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
207gdb_conn.o: /usr/include/netinet/in.h /usr/include/netdb.h /usr/include/errno.h
208gdb_serv.o: gdb_serv.c /usr/include/stdio.h /usr/include/strings.h gdb.h
209gdb_serv.o: /usr/include/sys/types.h /usr/include/sys/time.h
210gdb_serv.o: /usr/include/time.h /usr/include/sys/ioctl.h
211gdb_serv.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
212gdb_fserv.o: gdb_fserv.c /usr/include/stdio.h /usr/include/sys/types.h
213gdb_fserv.o: /usr/include/sys/uio.h /usr/include/sys/socket.h
214gdb_fserv.o: /usr/include/sys/wait.h /usr/include/sys/signal.h gdb.h
215gdb_fserv.o: /usr/include/sys/types.h /usr/include/sys/time.h
216gdb_fserv.o: /usr/include/time.h /usr/include/sys/resource.h
217gdb_db.o: gdb_db.c /usr/include/stdio.h /usr/include/strings.h gdb.h
218gdb_db.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h
219gdb_debug.o: gdb_debug.c /usr/include/stdio.h gdb.h /usr/include/sys/types.h
220gdb_debug.o: /usr/include/sys/time.h /usr/include/time.h
221gdb_ops.o: gdb_ops.c /usr/include/stdio.h gdb.h /usr/include/sys/types.h
222gdb_ops.o: /usr/include/sys/time.h /usr/include/time.h
223gdb_ops.o: /usr/include/netinet/in.h /usr/include/sys/ioctl.h
224gdb_ops.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
This page took 0.102701 seconds and 5 git commands to generate.