From: jtkohl Date: Mon, 16 Jan 1989 20:58:17 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: KREL1~15 X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/7e4279cadf847c4d40b3a0ebe52e785d7b24b0a9 *** empty log message *** --- diff --git a/util/imake.includes/Makefile b/util/imake.includes/Makefile new file mode 100644 index 00000000..1ec3bc39 --- /dev/null +++ b/util/imake.includes/Makefile @@ -0,0 +1,26 @@ +# $Source$ +# $Author$ +# $Header$ +# +# Copyright 1988 by the Massachusetts Institute of Technology. +# +# For copying and distribution information, please see the file +# . +# +# Makefile for copying Imake configuration files +SOURCES = \ + ${SRCDIR}/util/imake.includes/Imake.rules \ + ${SRCDIR}/util/imake.includes/Imake.template \ + ${SRCDIR}/util/imake.includes/config.Imakefile +DESTDIR = +SRCDIR = /mit/kerberos/src +CP = /bin/cp +RM = rm -f + +config: $(SOURCES) + -mkdir $(DESTDIR)/util + -mkdir $(DESTDIR)/util/imake.includes + for i in $(SOURCES); do \ + $(RM) ${DESTDIR}/util/imake.includes/`basename $$i`; \ + $(CP) $$i ${DESTDIR}/util/imake.includes/`basename $$i`; done + diff --git a/util/imake/Makefile b/util/imake/Makefile new file mode 100644 index 00000000..da7d86d4 --- /dev/null +++ b/util/imake/Makefile @@ -0,0 +1,35 @@ +# +# WARNING! This is NOT an automatically generated Makefile! +# This is hand-crafted as a bootstrap, may need editing for your system. + + SHELL = /bin/sh + RM = rm -f + MAKE = make + RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a \ + tags TAGS make.log + +all: imake + +imake: ccflags imake.c + $(CC) -o imake imake.c `./ccflags` + +ccflags: ccflags.c + $(CC) -o ccflags ccflags.c + +relink: + $(RM) imake + $(MAKE) $(MFLAGS) imake + +clean: + $(RM) ccflags imake + $(RM_CMD) \#* + +depend: + +Makefile: + +tags: + +install: + +Makefiles: diff --git a/util/makedepend/Imakefile b/util/makedepend/Imakefile new file mode 100644 index 00000000..52f5b75a --- /dev/null +++ b/util/makedepend/Imakefile @@ -0,0 +1,61 @@ +# $Source$ +# $Author$ +# $Header$ +# +# Copyright 1987 by the Massachusetts Institute of Technology. +# +# For copying and distribution information, +# please see the file . +# +# Utility to build makefile header dependancies from C source. +# +# If you have source for cpp... +# +#ifdef cpp_source_path +SRCS = include.c main.c parse.c pr.c cppsetup.c cpp.c cpy.y +OBJS = include.o main.o parse.o pr.o cppsetup.o cpp.o cpy.o +DEFINES = -DCPP '-DINCLUDEDIR="/usr/include"' +CPPSRC = cpp_source_path + +#else + +# +# But if you don't have cpp source... +# +SRCS = include.c main.c parse.c pr.c cppsetup.c +OBJS = include.o main.o parse.o pr.o cppsetup.o +DEFINES = '-DINCLUDEDIR="/usr/include"' + +#endif + +CODE=$(SRCS) Imakefile + +genutil(makedepend,$(OBJS),,) + +cpy.c: cpy.y yylex.c + yacc cpy.y + sed -e '/^# *line/d' < y.tab.c > cpy.c + $(RM) y.tab.c + +cpy.y: $(CPPSRC)/cpy.y + $(RM) $@ + $(LN) $(CPPSRC)/cpy.y . + +yylex.c: $(CPPSRC)/yylex.c + $(RM) $@ + sed -e 's/#if pdp11 | vax | mc68000/& | ns16000 | ibm032/' \ + $(CPPSRC)/yylex.c > yylex.c + +cpp.c: $(CPPSRC)/cpp.c cpp.ed + $(RM) cpp.c + /lib/cpp $(CPPSRC)/cpp.c \ + | cb \ + | sed -e '/^$$/d' -e '/^#/d' -e 's/ / /g' > cpp.c + sed -e '/^#/d' < cpp.ed | ed - cpp.c + +cpp.o: cpp.c +cpy.o: cpy.c + +clean:: + $(RM) cpp.c cpy.? yylex.c +