]> andersk Git - moira.git/blob - gdb/Makefile
moved include files, redid make depend
[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 -I../include
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         echo this does not really get installed
61 #       install -m 644 libgdb.a ${DESTDIR}/usr/athena/lib/libgdb.a
62 #       ranlib ${DESTDIR}/usr/athena/lib/libgdb.a
63 #       install -m 644 libgdb_p.a ${DESTDIR}/usr/athena/lib/libgdb_p.a
64 #       ranlib ${DESTDIR}/usr/athena/lib/libgdb_p.a
65 #       -mkdir ${DESTDIR}/usr/athena/lib/lint
66 #       install -m 644 llib-lgdb.ln ${DESTDIR}/usr/athena/lib/lint/llib-lgdb.ln
67
68 #
69 # Random demo programs
70 #
71 tst: tst.o libgdb.a 
72         cc ${OPTS} -o tst tst.o libgdb.a
73
74 stest: stest.o  libgdb.a 
75         cc ${OPTS} -o stest stest.o libgdb.a
76
77 tst2: tst2.o  libgdb.a 
78         cc ${OPTS} -o tst2 tst2.o libgdb.a
79
80 tst3: tst3.o  libgdb.a 
81         cc ${OPTS} -o tst3 tst3.o libgdb.a
82
83 tst4: tst4.o  libgdb.a 
84         cc ${OPTS} -o tst4 tst4.o  libgdb.a
85
86 tst5: tst5.o  libgdb.a 
87         cc ${OPTS} -o tst5 tst5.o  libgdb.a
88
89 tst6: tst6.o  libgdb.a 
90         cc ${OPTS} -o tst6 tst6.o  libgdb.a
91
92 tsr: tsr.o  libgdb.a 
93         cc ${OPTS} -o tsr tsr.o  libgdb.a
94
95 tfsr: tfsr.o  libgdb.a 
96         cc ${OPTS} -o tfsr tfsr.o  libgdb.a
97
98 tcl: tcl.o  libgdb.a 
99         cc ${OPTS} -o tcl tcl.o  libgdb.a
100
101 tdbcl: tdbcl.o  libgdb.a 
102         cc ${OPTS} -o tdbcl tdbcl.o  libgdb.a
103
104 samp1a: samp1a.o  libgdb.a 
105         cc ${OPTS} -o samp1a samp1a.o  libgdb.a
106         
107 dbserv: dbserv.o  libgdb.a 
108         cc ${OPTS} -o dbserv dbserv.o libgdb.a ${INGLIBS} -lm
109         chmod 6755 dbserv
110
111 dbserv.c: dbserv.qc 
112         /usr/rtingres/bin/eqc -d -fdbserv.c dbserv.qc
113
114 #
115 #       Documentation.
116 #
117
118 slides.PS: slides.mss
119         scribe slides
120
121 gdb_ugd.PS: gdb_ugd.mss
122         scribe gdb_ugd
123
124 library.PS: library.mss
125         scribe library
126
127 ugdprint:  gdb_ugd.PS
128         lpr  -Pln03-bldge40-4 gdb_ugd.PS
129         echo 'GDB User Guide sent to PostScript printer'
130
131 libraryprint:  library.PS
132         lpr  -Pln03-bldge40-4 library.PS
133         echo 'GDB Library Reference Manual sent to PostScript printer'
134
135 slideprint:  slides.PS
136         lpr  -Pln03-bldge40-4 slides.PS
137         echo 'GDB slides sent to PostScript printer'
138
139 #
140 # Distribution.
141 #
142
143 tar.file: ${GDBCSRCS} ${GDBNONCSRCS} ${OTHERSRCS} ${DOCS} ${SAMPLES} ${MISC}
144         rm -f tar.file
145         tar cvf tar.file ${GDBCSRCS} ${GDBNONCSRCS} ${OTHERSRCS} \
146                 ${DOCS} ${SAMPLES} ${MISC}
147         chmod 644 tar.file
148
149 archive: tar.file
150         rcp tar.file "menelaus:~noah/gdb/tar.file"
151
152 ftp: tar.file
153         rm -f ${FTP}/tar.file.Z ${FTP}/README
154         compress -c tar.file > ${FTP}/tar.file.Z
155         cp README ${FTP}/README
156         chmod 755 ${FTP}/tar.file.Z ${FTP}/README
157
158
159 # Cleanup.
160 #
161
162 clean:
163         rm -f *.o libgdb.a libgdb_p.a tar.file *.PS *.err \#* *~ profiled/*.o
164
165 depend: $(GDBCSRCS)
166         $(CC) -M $(CFLAGS) $(GDBCSRCS) | \
167         sed -e 's; ./; ;' \
168             -e ':loop' \
169             -e 's/\.\.\/[^ /]*\/\.\./../' \
170             -e 't loop' | \
171         awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
172                 else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
173                        else rec = rec " " $$2 } } \
174               END { print rec } ' > makedep
175         echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
176         echo '$$r makedep' >>eddep
177         echo 'w' >>eddep
178         cp Makefile Makefile.bak
179         ed - Makefile < eddep
180         rm eddep makedep
181 #
182 # the last constant line in the makefile should be...
183 # DO NOT DELETE THIS LINE
184
185 gdb_struct.o: gdb_struct.c ../include/mit-copyright.h /usr/include/stdio.h
186 gdb_struct.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h
187 gdb_struct.o: /usr/include/sys/time.h /usr/include/time.h
188 gdb_stype.o: gdb_stype.c ../include/mit-copyright.h /usr/include/stdio.h
189 gdb_stype.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h
190 gdb_stype.o: /usr/include/sys/time.h /usr/include/time.h
191 gdb_stype.o: /usr/include/netinet/in.h
192 gdb.o: gdb.c /usr/include/stdio.h /usr/include/strings.h /usr/include/signal.h
193 gdb.o: /usr/include/pwd.h ../include/gdb.h /usr/include/sys/types.h
194 gdb.o: /usr/include/sys/time.h /usr/include/time.h gdb_lib.h
195 gdb.o: /usr/include/errno.h
196 gdb_trans.o: gdb_trans.c ../include/mit-copyright.h /usr/include/sys/types.h
197 gdb_trans.o: /usr/include/strings.h /usr/include/stdio.h /usr/include/varargs.h
198 gdb_trans.o: /usr/include/errno.h ../include/gdb.h /usr/include/sys/types.h
199 gdb_trans.o: /usr/include/sys/time.h /usr/include/time.h
200 gdb_trans2.o: gdb_trans2.c ../include/mit-copyright.h /usr/include/sys/types.h
201 gdb_trans2.o: /usr/include/errno.h /usr/include/stdio.h ../include/gdb.h
202 gdb_trans2.o: /usr/include/sys/types.h /usr/include/sys/time.h
203 gdb_trans2.o: /usr/include/time.h /usr/include/sys/uio.h
204 gdb_trans2.o: /usr/include/sys/socket.h
205 gdb_conn.o: gdb_conn.c ../include/mit-copyright.h /usr/include/stdio.h
206 gdb_conn.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h
207 gdb_conn.o: /usr/include/sys/time.h /usr/include/time.h
208 gdb_conn.o: /usr/include/sys/types.h /usr/include/sys/uio.h
209 gdb_conn.o: /usr/include/sys/socket.h /usr/include/sys/ioctl.h
210 gdb_conn.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
211 gdb_conn.o: /usr/include/netinet/in.h /usr/include/netdb.h /usr/include/errno.h
212 gdb_serv.o: gdb_serv.c ../include/mit-copyright.h /usr/include/stdio.h
213 gdb_serv.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h
214 gdb_serv.o: /usr/include/sys/time.h /usr/include/time.h
215 gdb_serv.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
216 gdb_serv.o: /usr/include/sys/ttydev.h
217 gdb_fserv.o: gdb_fserv.c ../include/mit-copyright.h /usr/include/stdio.h
218 gdb_fserv.o: /usr/include/sys/types.h /usr/include/sys/uio.h
219 gdb_fserv.o: /usr/include/sys/socket.h /usr/include/sys/wait.h
220 gdb_fserv.o: /usr/include/sys/signal.h ../include/gdb.h
221 gdb_fserv.o: /usr/include/sys/types.h /usr/include/sys/time.h
222 gdb_fserv.o: /usr/include/time.h /usr/include/sys/resource.h
223 gdb_db.o: gdb_db.c ../include/mit-copyright.h /usr/include/stdio.h
224 gdb_db.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h
225 gdb_db.o: /usr/include/sys/time.h /usr/include/time.h
226 gdb_debug.o: gdb_debug.c ../include/mit-copyright.h /usr/include/stdio.h
227 gdb_debug.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
228 gdb_debug.o: /usr/include/time.h
229 gdb_ops.o: gdb_ops.c ../include/mit-copyright.h /usr/include/stdio.h
230 gdb_ops.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
231 gdb_ops.o: /usr/include/time.h /usr/include/netinet/in.h
232 gdb_ops.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
233 gdb_ops.o: /usr/include/sys/ttydev.h
This page took 0.054455 seconds and 5 git commands to generate.