1 # Makefile generated by imake - do not edit!
2 # $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
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.
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.
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)
27 CURSES= -L/usr/css/lib -lcurses -ltermcap
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
34 GLOBAL_CDEFS= -DHESIOD -DZEPHYR -DGDSS -DATHENA -DDBMS=INGRES -I/usr/athena/include $(OSDEFS)
36 SRCTOP=/mit/moiradev/src
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
50 LIBGDSS= /mit/gdss/`machtype`/libgdss.a
51 GDSSINC= -I/mit/gdss/include
55 MR_LIB=$(BUILDTOP)/lib/libmoira.a
57 MR_LINTLIB=$(BUILDTOP)/lib/llib-lmoira.ln
58 GDB_LIB=$(BUILDTOP)/gdb/libmrgdb.a
60 GDB_LINTLIB=$(BUILDTOP)/gdb/llib-lmrgdb.ln
62 COMPILE_ET= compile_et
66 MAKE_COMMANDS= mk_cmds
70 LLIB = -L/usr/athena/lib
72 CLIBS= $(MR_LIB) $(GDB_LIB) $(LLIB) $(LZEPHYR) $(COM_ERR) -lkrb -ldes -lhesiod
74 SQL_LIB= /usr/ingres/lib/libingres.a -lm
80 INSTALLFILE= install -c -m 444
82 INSTALLLIB= install -c -m 444
84 INSTALLPROG= install -c -m 555
118 IMAKE=imake -I$(BUILDTOP)/util/imake.includes
127 # Copyright 1987 by the Massachusetts Institute of Technology.
129 # For copying and distribution information,
130 # please see the file <mit-copyright.h>.
132 # Utility to build makefile header dependancies from C source.
134 # If you have source for cpp...
138 # But if you don't have cpp source...
140 SRCS = include.c main.c parse.c pr.c cppsetup.c
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"'
153 CODE=$(SRCS) Imakefile
158 $(CC) $(CFLAGS) -o $@ $(OBJS) $(OSLIBS)
161 $(RM) makedepend $(OBJS)
165 sed -e '/^# *line/d' < y.tab.c > cpy.c
168 cpy.y: $(CPPSRC)/cpy.y
170 $(LN) $(CPPSRC)/cpy.y .
172 yylex.c: $(CPPSRC)/yylex.c
174 sed -e 's/#if pdp11 | vax | mc68000/& | ns16000 | ibm032/' \
175 $(CPPSRC)/yylex.c > yylex.c
177 cpp.c: $(CPPSRC)/cpp.c cpp.ed
179 /lib/cpp $(CPPSRC)/cpp.c \
181 | sed -e '/^$$/d' -e '/^#/d' -e 's/ / /g' > cpp.c
182 sed -e '/^#/d' < cpp.ed | ed - cpp.c
188 $(RM) cpp.c cpy.? yylex.c
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
197 @echo "### Now computing dependencies"
198 @$(DEPEND) -s "# DO NOT DELETE" -- $(CFLAGS) -- $(SRCS)
201 $(RM) *~ \#* *.bak $(TAGSFILE)
207 -$(RM) Makefile.bak; $(MV) Makefile Makefile.bak
208 $(IMAKE) -DNEW_TOP=$(NEWTOP) -s Makefile
217 -$(LN) ${SRCDIR}/$@ $@
223 # DO NOT DELETE THIS LINE