]> andersk Git - moira.git/blob - util/makedepend/Makefile
sync'ing files for RCS->CVS migration
[moira.git] / util / makedepend / Makefile
1 # Makefile generated by imake - do not edit!
2 # $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
3 #
4 # The cpp used on this machine replaces all newlines and multiple tabs and
5 # spaces in a macro expansion with a single space.  Imake tries to compensate
6 # for this, but is not always successful.
7 #
8
9 #
10 # This makefile is automatically generated by imake... do not modify
11 # or you may lose your changes when imake generates makefiles again.
12 # Ignore this message if you are not using imake.
13 #
14 #       $Source$
15 #
16
17 NEWTOP=.
18 BUILDTOP=.
19
20 INCLUDE= -I$(BUILDTOP)/include -I$(BUILDTOP)/lib -I/usr/athena/include
21 CFLAGS=$(DBG) $(INCLUDE) $(DEFINES) $(GLOBAL_CDEFS)
22 LINTFLAGS=$(INCLUDE) $(DEFINES) $(GLOBAL_CDEFS)
23
24 #       $Source$
25 #
26
27 CURSES= -L/usr/css/lib -lcurses -ltermcap
28
29 OSDEFS= -DPOSIX -DSOLARIS -I/usr/openwin/include
30 OSLIBS= -L/usr/ccs/lib -lcurses -ltermcap -lresolv \
31         -lsocket -lnsl -lc /usr/ucblib/libucb.a -lelf -ldl
32 CURSES=
33
34 GLOBAL_CDEFS= -DHESIOD -DZEPHYR -DGDSS -DATHENA -DDBMS=INGRES -I/usr/athena/include $(OSDEFS)
35
36 SRCTOP=/mit/moiradev/src
37
38 DESTDIR=
39
40 USRDIR= /usr
41 ETCDIR= /usr/athena/etc
42 PROGDIR=/usr/athena/bin
43 LIBDIR= /usr/athena/lib
44 LINTLIBDIR = /usr/lib/lint
45 INCLDIR= /usr/athena/include
46 MANDIR= /usr/athena/man
47
48 LZEHPYR=-lzephyr
49
50 LIBGDSS= /mit/gdss/`machtype`/libgdss.a
51 GDSSINC= -I/mit/gdss/include
52
53 LINTLIBFLAG=-C
54
55 MR_LIB=$(BUILDTOP)/lib/libmoira.a
56 MR_LIBDEP=$(MR_LIB)
57 MR_LINTLIB=$(BUILDTOP)/lib/llib-lmoira.ln
58 GDB_LIB=$(BUILDTOP)/gdb/libmrgdb.a
59 GDB_LIBDEP=$(GDB_LIB)
60 GDB_LINTLIB=$(BUILDTOP)/gdb/llib-lmrgdb.ln
61
62 COMPILE_ET= compile_et
63
64 COM_ERR = -lcom_err
65
66 MAKE_COMMANDS= mk_cmds
67
68 SS_LIB = -lss
69
70 LLIB = -L/usr/athena/lib
71
72 CLIBS= $(MR_LIB) $(GDB_LIB) $(LLIB) $(LZEPHYR) $(COM_ERR) -lkrb -ldes -lhesiod
73
74 SQL_LIB= /usr/ingres/lib/libingres.a -lm
75
76 ARCHIVE= ar cru
77
78 RANLIB= /bin/true
79
80 INSTALLFILE= install -c -m 444
81
82 INSTALLLIB= install -c -m 444
83
84 INSTALLPROG= install -c -m 555
85
86 INSTALLRAW= install
87
88 LD=ld
89
90 AS=as
91
92 LINT=lint
93
94 CC=gcc -traditional
95
96 CCRO=$(CC) -R
97
98 HCC=$(CC)
99
100 CPP=$(CC) -E
101
102 DBG=-O
103
104 HCFLAGS=$(CFLAGS)
105
106 TAGGER=etags
107
108 MAKE=make
109 RM=rm -f
110 MV=mv
111 CP=cp
112 LN=ln -s
113 LPR=lpr -p
114 CHMOD=chmod
115 AWK=awk
116
117 DEPEND=makedepend
118 IMAKE=imake -I$(BUILDTOP)/util/imake.includes
119
120 #       $Source$
121 #
122
123 # $Source$
124 # $Author$
125 # $Header$
126 #
127 # Copyright 1987 by the Massachusetts Institute of Technology.
128 #
129 # For copying and distribution information,
130 # please see the file <mit-copyright.h>.
131 #
132 # Utility to build makefile header dependancies from C source.
133 #
134 # If you have source for cpp...
135 #
136
137 #
138 # But if you don't have cpp source...
139 #
140 SRCS = include.c main.c parse.c pr.c cppsetup.c
141 SOURCES = \
142         ${SRCDIR}/util/makedepend/include.c \
143         ${SRCDIR}/util/makedepend/main.c \
144         ${SRCDIR}/util/makedepend/parse.c \
145         ${SRCDIR}/util/makedepend/pr.c \
146         ${SRCDIR}/util/makedepend/cppsetup.c \
147         ${SRCDIR}/util/makedepend/def.h \
148         ${SRCDIR}/util/makedepend/Imakefile \
149         ${SRCDIR}/util/makedepend/Makefile
150 OBJS = include.o main.o parse.o pr.o cppsetup.o
151 DEFINES = '-DINCLUDEDIR="/usr/include"'
152
153 CODE=$(SRCS) Imakefile
154
155 all:: makedepend
156
157 makedepend: $(OBJS)
158         $(CC) $(CFLAGS) -o $@ $(OBJS)  $(OSLIBS)
159
160 clean::
161         $(RM) makedepend $(OBJS)
162
163 cpy.c: cpy.y yylex.c
164         yacc cpy.y
165         sed -e '/^# *line/d' < y.tab.c > cpy.c
166         $(RM) y.tab.c
167
168 cpy.y: $(CPPSRC)/cpy.y
169         $(RM) $@
170         $(LN) $(CPPSRC)/cpy.y .
171
172 yylex.c: $(CPPSRC)/yylex.c
173         $(RM) $@
174         sed -e 's/#if pdp11 | vax | mc68000/& | ns16000 | ibm032/' \
175                 $(CPPSRC)/yylex.c > yylex.c
176
177 cpp.c: $(CPPSRC)/cpp.c cpp.ed
178         $(RM) cpp.c
179         /lib/cpp $(CPPSRC)/cpp.c \
180                 | cb \
181                 | sed -e '/^$$/d' -e '/^#/d' -e 's/     / /g' > cpp.c
182         sed -e '/^#/d' < cpp.ed | ed - cpp.c
183
184 cpp.o: cpp.c
185 cpy.o: cpy.c
186
187 clean::
188         $(RM) cpp.c cpy.? yylex.c
189
190 config: $(SOURCES)
191         -mkdir $(DESTDIR)/util/makedepend
192         for i in $(SOURCES); do \
193                 $(RM) ${DESTDIR}/util/makedepend/`basename $$i`; \
194                 $(CP) $$i ${DESTDIR}/util/makedepend/`basename $$i`; done
195
196 depend:: $(SRCS)
197         @echo "### Now computing dependencies"
198         @$(DEPEND) -s "# DO NOT DELETE" -- $(CFLAGS) -- $(SRCS)
199
200 clean::
201         $(RM) *~ \#* *.bak $(TAGSFILE)
202
203 tags::
204         $(TAGGER) *.c *.h
205
206 Makefile::
207         -$(RM) Makefile.bak; $(MV) Makefile Makefile.bak
208         $(IMAKE) -DNEW_TOP=$(NEWTOP) -s Makefile
209
210 print:: ${CODE}
211         ${LPR} ${CODE}
212
213 src:: ${CODE}
214
215 ${CODE}:
216         $(RM) $@
217         -$(LN) ${SRCDIR}/$@ $@
218
219 install::
220
221 Makefiles::
222
223 # DO NOT DELETE THIS LINE
224
This page took 0.089745 seconds and 5 git commands to generate.