]> andersk Git - moira.git/blob - gdb/Makefile
changed eqc to /usr/rtingres/bin/eqc
[moira.git] / gdb / Makefile
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 .saberinit README gdb_version
26
27 CFLAGS= -O
28
29 CCPROF= ${CC}
30
31 FTP= /mit/ftp/gdb
32
33 INGLIBS= /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib
34
35 LINTFLAGS= -uhv
36
37 .c.o:
38         ${CCPROF} -c -pg ${CFLAGS} $*.c
39         mv $*.o profiled/$*.o
40         ${CC} -c ${CFLAGS} $*.c
41
42 OPTS=
43
44 all: libgdb.a libgdb_p.a llib-lgdb.ln
45
46 libgdb.a: ${LIBOBJS}
47         ar uv libgdb.a ${LIBOBJS}; ranlib libgdb.a
48
49 libgdb_p.a: ${LIBOBJS}
50         (cd profiled; ar uv ../libgdb_p.a ${LIBOBJS}; ranlib ../libgdb_p.a)
51
52 lint:
53         lint -huv ${GDBCSRCS} | \
54         egrep -v "warning: possible pointer alignment problem"
55
56 llib-lgdb.ln: ${LIBSRC}
57         lint -Cgdb ${GDBCSRCS}
58
59 install:
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
67 #
68 # Random demo programs
69 #
70 tst: tst.o libgdb.a 
71         cc ${OPTS} -o tst tst.o libgdb.a
72
73 stest: stest.o  libgdb.a 
74         cc ${OPTS} -o stest stest.o libgdb.a
75
76 tst2: tst2.o  libgdb.a 
77         cc ${OPTS} -o tst2 tst2.o libgdb.a
78
79 tst3: tst3.o  libgdb.a 
80         cc ${OPTS} -o tst3 tst3.o libgdb.a
81
82 tst4: tst4.o  libgdb.a 
83         cc ${OPTS} -o tst4 tst4.o  libgdb.a
84
85 tst5: tst5.o  libgdb.a 
86         cc ${OPTS} -o tst5 tst5.o  libgdb.a
87
88 tst6: tst6.o  libgdb.a 
89         cc ${OPTS} -o tst6 tst6.o  libgdb.a
90
91 tsr: tsr.o  libgdb.a 
92         cc ${OPTS} -o tsr tsr.o  libgdb.a
93
94 tfsr: tfsr.o  libgdb.a 
95         cc ${OPTS} -o tfsr tfsr.o  libgdb.a
96
97 tcl: tcl.o  libgdb.a 
98         cc ${OPTS} -o tcl tcl.o  libgdb.a
99
100 tdbcl: tdbcl.o  libgdb.a 
101         cc ${OPTS} -o tdbcl tdbcl.o  libgdb.a
102
103 samp1a: samp1a.o  libgdb.a 
104         cc ${OPTS} -o samp1a samp1a.o  libgdb.a
105         
106 dbserv: dbserv.o  libgdb.a 
107         cc ${OPTS} -o dbserv dbserv.o libgdb.a ${INGLIBS} -lm
108         chmod 6755 dbserv
109
110 dbserv.c: dbserv.qc 
111         /usr/rtingres/bin/eqc -d -fdbserv.c dbserv.qc
112
113 #
114 #       Documentation.
115 #
116
117 slides.PS: slides.mss
118         scribe slides
119
120 gdb_ugd.PS: gdb_ugd.mss
121         scribe gdb_ugd
122
123 library.PS: library.mss
124         scribe library
125
126 ugdprint:  gdb_ugd.PS
127         lpr  -Pln03-bldge40-4 gdb_ugd.PS
128         echo 'GDB User Guide sent to PostScript printer'
129
130 libraryprint:  library.PS
131         lpr  -Pln03-bldge40-4 library.PS
132         echo 'GDB Library Reference Manual sent to PostScript printer'
133
134 slideprint:  slides.PS
135         lpr  -Pln03-bldge40-4 slides.PS
136         echo 'GDB slides sent to PostScript printer'
137
138 #
139 # Distribution.
140 #
141
142 tar.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
148 archive: tar.file
149         rcp tar.file "menelaus:~noah/gdb/tar.file"
150
151 ftp: 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
161 clean:
162         rm -f *.o libgdb.a libgdb_p.a tar.file *.PS *.err \#* *~ profiled/*.o
163
164 depend: $(GDBCSRCS)
165         $(CC) -M $(CFLAGS) $(GDBCSRCS) | \
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
184 gdb_struct.o: gdb_struct.c /usr/include/stdio.h /usr/include/strings.h gdb.h
185 gdb_struct.o: /usr/include/sys/types.h /usr/include/sys/time.h
186 gdb_struct.o: /usr/include/time.h
187 gdb_stype.o: gdb_stype.c /usr/include/stdio.h /usr/include/strings.h gdb.h
188 gdb_stype.o: /usr/include/sys/types.h /usr/include/sys/time.h
189 gdb_stype.o: /usr/include/time.h /usr/include/netinet/in.h
190 gdb.o: gdb.c /usr/include/stdio.h /usr/include/strings.h /usr/include/signal.h
191 gdb.o: /usr/include/pwd.h gdb.h /usr/include/sys/types.h
192 gdb.o: /usr/include/sys/time.h /usr/include/time.h gdb_lib.h
193 gdb.o: /usr/include/errno.h
194 gdb_trans.o: gdb_trans.c /usr/include/sys/types.h /usr/include/strings.h
195 gdb_trans.o: /usr/include/stdio.h /usr/include/varargs.h /usr/include/errno.h
196 gdb_trans.o: gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
197 gdb_trans.o: /usr/include/time.h
198 gdb_trans2.o: gdb_trans2.c /usr/include/sys/types.h /usr/include/errno.h
199 gdb_trans2.o: /usr/include/stdio.h gdb.h /usr/include/sys/types.h
200 gdb_trans2.o: /usr/include/sys/time.h /usr/include/time.h
201 gdb_trans2.o: /usr/include/sys/uio.h /usr/include/sys/socket.h
202 gdb_conn.o: gdb_conn.c /usr/include/stdio.h /usr/include/strings.h gdb.h
203 gdb_conn.o: /usr/include/sys/types.h /usr/include/sys/time.h
204 gdb_conn.o: /usr/include/time.h /usr/include/sys/types.h /usr/include/sys/uio.h
205 gdb_conn.o: /usr/include/sys/socket.h /usr/include/sys/ioctl.h
206 gdb_conn.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
207 gdb_conn.o: /usr/include/netinet/in.h /usr/include/netdb.h /usr/include/errno.h
208 gdb_serv.o: gdb_serv.c /usr/include/stdio.h /usr/include/strings.h gdb.h
209 gdb_serv.o: /usr/include/sys/types.h /usr/include/sys/time.h
210 gdb_serv.o: /usr/include/time.h /usr/include/sys/ioctl.h
211 gdb_serv.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
212 gdb_fserv.o: gdb_fserv.c /usr/include/stdio.h /usr/include/sys/types.h
213 gdb_fserv.o: /usr/include/sys/uio.h /usr/include/sys/socket.h
214 gdb_fserv.o: /usr/include/sys/wait.h /usr/include/sys/signal.h gdb.h
215 gdb_fserv.o: /usr/include/sys/types.h /usr/include/sys/time.h
216 gdb_fserv.o: /usr/include/time.h /usr/include/sys/resource.h
217 gdb_db.o: gdb_db.c /usr/include/stdio.h /usr/include/strings.h gdb.h
218 gdb_db.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h
219 gdb_debug.o: gdb_debug.c /usr/include/stdio.h gdb.h /usr/include/sys/types.h
220 gdb_debug.o: /usr/include/sys/time.h /usr/include/time.h
221 gdb_ops.o: gdb_ops.c /usr/include/stdio.h gdb.h /usr/include/sys/types.h
222 gdb_ops.o: /usr/include/sys/time.h /usr/include/time.h
223 gdb_ops.o: /usr/include/netinet/in.h /usr/include/sys/ioctl.h
224 gdb_ops.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
This page took 0.167405 seconds and 5 git commands to generate.