]> andersk Git - moira.git/blame - util/makedepend/Makefile
added the new imembers index
[moira.git] / util / makedepend / Makefile
CommitLineData
d1b2a10e 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
17NEWTOP=.
18BUILDTOP=.
19
20INCLUDE= -I$(BUILDTOP)/include -I$(BUILDTOP)/lib -I/usr/athena/include
21CFLAGS=$(DBG) $(INCLUDE) $(DEFINES) $(GLOBAL_CDEFS)
22LINTFLAGS=$(INCLUDE) $(DEFINES) $(GLOBAL_CDEFS)
23
24# $Source$
25#
26
27CURSES= -L/usr/css/lib -lcurses -ltermcap
28
29OSDEFS= -DPOSIX -DSOLARIS -I/usr/openwin/include
30OSLIBS= -L/usr/ccs/lib -lcurses -ltermcap -lresolv \
31 -lsocket -lnsl -lc /usr/ucblib/libucb.a -lelf -ldl
32CURSES=
33
34GLOBAL_CDEFS= -DHESIOD -DZEPHYR -DGDSS -DATHENA -DDBMS=INGRES -I/usr/athena/include $(OSDEFS)
35
36SRCTOP=/mit/moiradev/src
37
38DESTDIR=
39
40USRDIR= /usr
41ETCDIR= /usr/athena/etc
42PROGDIR=/usr/athena/bin
43LIBDIR= /usr/athena/lib
44LINTLIBDIR = /usr/lib/lint
45INCLDIR= /usr/athena/include
46MANDIR= /usr/athena/man
47
48LZEHPYR=-lzephyr
49
50LIBGDSS= /mit/gdss/`machtype`/libgdss.a
51GDSSINC= -I/mit/gdss/include
52
53LINTLIBFLAG=-C
54
55MR_LIB=$(BUILDTOP)/lib/libmoira.a
56MR_LIBDEP=$(MR_LIB)
57MR_LINTLIB=$(BUILDTOP)/lib/llib-lmoira.ln
58GDB_LIB=$(BUILDTOP)/gdb/libmrgdb.a
59GDB_LIBDEP=$(GDB_LIB)
60GDB_LINTLIB=$(BUILDTOP)/gdb/llib-lmrgdb.ln
61
62COMPILE_ET= compile_et
63
64COM_ERR = -lcom_err
65
66MAKE_COMMANDS= mk_cmds
67
68SS_LIB = -lss
69
70LLIB = -L/usr/athena/lib
71
72CLIBS= $(MR_LIB) $(GDB_LIB) $(LLIB) $(LZEPHYR) $(COM_ERR) -lkrb -ldes -lhesiod
73
74SQL_LIB= /usr/ingres/lib/libingres.a -lm
75
76ARCHIVE= ar cru
77
78RANLIB= /bin/true
79
80INSTALLFILE= install -c -m 444
81
82INSTALLLIB= install -c -m 444
83
84INSTALLPROG= install -c -m 555
85
86INSTALLRAW= install
87
88LD=ld
89
90AS=as
91
92LINT=lint
93
94CC=gcc -traditional
95
96CCRO=$(CC) -R
97
98HCC=$(CC)
99
100CPP=$(CC) -E
101
102DBG=-O
103
104HCFLAGS=$(CFLAGS)
105
106TAGGER=etags
107
108MAKE=make
109RM=rm -f
110MV=mv
111CP=cp
112LN=ln -s
113LPR=lpr -p
114CHMOD=chmod
115AWK=awk
116
117DEPEND=makedepend
118IMAKE=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#
140SRCS = include.c main.c parse.c pr.c cppsetup.c
141SOURCES = \
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
150OBJS = include.o main.o parse.o pr.o cppsetup.o
151DEFINES = '-DINCLUDEDIR="/usr/include"'
152
153CODE=$(SRCS) Imakefile
154
155all:: makedepend
156
157makedepend: $(OBJS)
158 $(CC) $(CFLAGS) -o $@ $(OBJS) $(OSLIBS)
159
160clean::
161 $(RM) makedepend $(OBJS)
162
163cpy.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
168cpy.y: $(CPPSRC)/cpy.y
169 $(RM) $@
170 $(LN) $(CPPSRC)/cpy.y .
171
172yylex.c: $(CPPSRC)/yylex.c
173 $(RM) $@
174 sed -e 's/#if pdp11 | vax | mc68000/& | ns16000 | ibm032/' \
175 $(CPPSRC)/yylex.c > yylex.c
176
177cpp.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
184cpp.o: cpp.c
185cpy.o: cpy.c
186
187clean::
188 $(RM) cpp.c cpy.? yylex.c
189
190config: $(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
196depend:: $(SRCS)
197 @echo "### Now computing dependencies"
198 @$(DEPEND) -s "# DO NOT DELETE" -- $(CFLAGS) -- $(SRCS)
199
200clean::
201 $(RM) *~ \#* *.bak $(TAGSFILE)
202
203tags::
204 $(TAGGER) *.c *.h
205
206Makefile::
207 -$(RM) Makefile.bak; $(MV) Makefile Makefile.bak
208 $(IMAKE) -DNEW_TOP=$(NEWTOP) -s Makefile
209
210print:: ${CODE}
211 ${LPR} ${CODE}
212
213src:: ${CODE}
214
215${CODE}:
216 $(RM) $@
217 -$(LN) ${SRCDIR}/$@ $@
218
219install::
220
221Makefiles::
222
223# DO NOT DELETE THIS LINE
224
This page took 0.075275 seconds and 5 git commands to generate.