]> andersk Git - moira.git/blame - gdb/Makefile
don't install this version of the GDB library
[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:
103bba4c 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
19f42eac 67
5580185e 68#
69# Random demo programs
70#
71tst: tst.o libgdb.a
72 cc ${OPTS} -o tst tst.o libgdb.a
73
74stest: stest.o libgdb.a
75 cc ${OPTS} -o stest stest.o libgdb.a
76
77tst2: tst2.o libgdb.a
78 cc ${OPTS} -o tst2 tst2.o libgdb.a
79
80tst3: tst3.o libgdb.a
81 cc ${OPTS} -o tst3 tst3.o libgdb.a
82
83tst4: tst4.o libgdb.a
84 cc ${OPTS} -o tst4 tst4.o libgdb.a
85
86tst5: tst5.o libgdb.a
87 cc ${OPTS} -o tst5 tst5.o libgdb.a
88
89tst6: tst6.o libgdb.a
90 cc ${OPTS} -o tst6 tst6.o libgdb.a
91
92tsr: tsr.o libgdb.a
93 cc ${OPTS} -o tsr tsr.o libgdb.a
94
95tfsr: tfsr.o libgdb.a
96 cc ${OPTS} -o tfsr tfsr.o libgdb.a
97
98tcl: tcl.o libgdb.a
99 cc ${OPTS} -o tcl tcl.o libgdb.a
100
101tdbcl: tdbcl.o libgdb.a
102 cc ${OPTS} -o tdbcl tdbcl.o libgdb.a
103
104samp1a: samp1a.o libgdb.a
105 cc ${OPTS} -o samp1a samp1a.o libgdb.a
106
107dbserv: dbserv.o libgdb.a
108 cc ${OPTS} -o dbserv dbserv.o libgdb.a ${INGLIBS} -lm
109 chmod 6755 dbserv
110
111dbserv.c: dbserv.qc
7b2afff7 112 /usr/rtingres/bin/eqc -d -fdbserv.c dbserv.qc
5580185e 113
114#
115# Documentation.
116#
117
118slides.PS: slides.mss
119 scribe slides
120
121gdb_ugd.PS: gdb_ugd.mss
122 scribe gdb_ugd
123
124library.PS: library.mss
125 scribe library
126
127ugdprint: gdb_ugd.PS
128 lpr -Pln03-bldge40-4 gdb_ugd.PS
129 echo 'GDB User Guide sent to PostScript printer'
130
131libraryprint: library.PS
132 lpr -Pln03-bldge40-4 library.PS
133 echo 'GDB Library Reference Manual sent to PostScript printer'
134
135slideprint: slides.PS
136 lpr -Pln03-bldge40-4 slides.PS
137 echo 'GDB slides sent to PostScript printer'
138
139#
140# Distribution.
141#
142
143tar.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
149archive: tar.file
150 rcp tar.file "menelaus:~noah/gdb/tar.file"
151
152ftp: 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
162clean:
7f0235a2 163 rm -f *.o libgdb.a libgdb_p.a tar.file *.PS *.err \#* *~ profiled/*.o
5580185e 164
7f0235a2 165depend: $(GDBCSRCS)
166 $(CC) -M $(CFLAGS) $(GDBCSRCS) | \
5580185e 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
7f0235a2 185gdb_struct.o: gdb_struct.c /usr/include/stdio.h /usr/include/strings.h gdb.h
186gdb_struct.o: /usr/include/sys/types.h /usr/include/sys/time.h
187gdb_struct.o: /usr/include/time.h
188gdb_stype.o: gdb_stype.c /usr/include/stdio.h /usr/include/strings.h gdb.h
189gdb_stype.o: /usr/include/sys/types.h /usr/include/sys/time.h
190gdb_stype.o: /usr/include/time.h /usr/include/netinet/in.h
191gdb.o: gdb.c /usr/include/stdio.h /usr/include/strings.h /usr/include/signal.h
192gdb.o: /usr/include/pwd.h gdb.h /usr/include/sys/types.h
193gdb.o: /usr/include/sys/time.h /usr/include/time.h gdb_lib.h
194gdb.o: /usr/include/errno.h
195gdb_trans.o: gdb_trans.c /usr/include/sys/types.h /usr/include/strings.h
196gdb_trans.o: /usr/include/stdio.h /usr/include/varargs.h /usr/include/errno.h
197gdb_trans.o: gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
198gdb_trans.o: /usr/include/time.h
199gdb_trans2.o: gdb_trans2.c /usr/include/sys/types.h /usr/include/errno.h
200gdb_trans2.o: /usr/include/stdio.h gdb.h /usr/include/sys/types.h
201gdb_trans2.o: /usr/include/sys/time.h /usr/include/time.h
202gdb_trans2.o: /usr/include/sys/uio.h /usr/include/sys/socket.h
203gdb_conn.o: gdb_conn.c /usr/include/stdio.h /usr/include/strings.h gdb.h
204gdb_conn.o: /usr/include/sys/types.h /usr/include/sys/time.h
205gdb_conn.o: /usr/include/time.h /usr/include/sys/types.h /usr/include/sys/uio.h
206gdb_conn.o: /usr/include/sys/socket.h /usr/include/sys/ioctl.h
207gdb_conn.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
208gdb_conn.o: /usr/include/netinet/in.h /usr/include/netdb.h /usr/include/errno.h
209gdb_serv.o: gdb_serv.c /usr/include/stdio.h /usr/include/strings.h gdb.h
210gdb_serv.o: /usr/include/sys/types.h /usr/include/sys/time.h
211gdb_serv.o: /usr/include/time.h /usr/include/sys/ioctl.h
212gdb_serv.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
213gdb_fserv.o: gdb_fserv.c /usr/include/stdio.h /usr/include/sys/types.h
214gdb_fserv.o: /usr/include/sys/uio.h /usr/include/sys/socket.h
215gdb_fserv.o: /usr/include/sys/wait.h /usr/include/sys/signal.h gdb.h
216gdb_fserv.o: /usr/include/sys/types.h /usr/include/sys/time.h
217gdb_fserv.o: /usr/include/time.h /usr/include/sys/resource.h
218gdb_db.o: gdb_db.c /usr/include/stdio.h /usr/include/strings.h gdb.h
219gdb_db.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h
220gdb_debug.o: gdb_debug.c /usr/include/stdio.h gdb.h /usr/include/sys/types.h
221gdb_debug.o: /usr/include/sys/time.h /usr/include/time.h
222gdb_ops.o: gdb_ops.c /usr/include/stdio.h gdb.h /usr/include/sys/types.h
223gdb_ops.o: /usr/include/sys/time.h /usr/include/time.h
224gdb_ops.o: /usr/include/netinet/in.h /usr/include/sys/ioctl.h
225gdb_ops.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
This page took 0.088358 seconds and 5 git commands to generate.