2 # Makefile for error-table routines
4 # Copyright 1987, 1989 MIT Student Information Processing Board
5 # For copyright info, see mit-sipb-cr.h.
12 include ../config/Makefile.${SYS_NAME}
13 MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
16 LINTFILES= error_msg.c et_name.c com_err.c
17 LIBOBJS= error_msg.o et_name.o com_err.o
19 UKERNELDIR=../libuafs/
21 CFLAGS= ${OPTMZ} -I${DESTDIR}include ${XCFLAGS}
22 FILES= Makefile et_name.c error_msg.c compile_et.c \
23 error_table.y et_lex.lex.l \
25 error_table.h mit-sipb-cr.h \
26 test.c test1.et test2.et \
29 CFILES= compile_et.c error_table.c error_msg.c et_name.c \
32 UKSRCS=com_err.c com_err.h error_msg.c error_table.h mit-sipb-cr.h internal.h et_name.c
35 include ../config/Makefile.version
37 utilib=${SRCDIR}lib/afs/util.a ${XLIBS}
39 system noversion: install
44 ${DESTDIR}bin/compile_et: compile_et
45 ${INSTALL} compile_et ${DESTDIR}bin/compile_et
47 all: libcom_err.a ${DESTDIR}bin/compile_et
49 lint: llib-lcom_err.ln
58 .SUFFIXES: .l .h .c .et .ps .x9700 .mss .dvi .texinfo
79 # ${CC} -c -pg ${CFLAGS} $*.c
80 # mv $*.o profiled/$*.o
81 ${CC} -c ${CFLAGS} $*.c
86 compile_et: compile_et.o error_table.o
89 ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o ${utilib};; \
91 ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o ${utilib} -ll;; \
96 tar cfrlv et.tar ${FILES}
101 @echo No $@ source here.
103 ukinstall webinstall: install
104 set ${UKERNELDIR}afs; $(MKDIR_IF_NEEDED)
105 ${INSTALL} ${UKSRCS} ${UKERNELDIR}afs
107 install: all ukinstall
108 ${INSTALL} com_err.h ${DESTDIR}include/afs/com_err.h
109 ${INSTALL} error_table.h ${DESTDIR}include/afs/error_table.h
110 ${INSTALL} mit-sipb-cr.h ${DESTDIR}include/afs/mit-sipb-cr.h
111 ${INSTALL} libcom_err.a ${DESTDIR}lib/afs/libcom_err.a
113 TAGS: et_name.c error_msg.c compile_et.c error_table.c \
115 etags et_name.c error_msg.c compile_et.c \
116 error_table.c perror.c
118 libcom_err.a: $(LIBOBJS) AFS_component_version_number.o
120 $(AR) cruv libcom_err.a $(LIBOBJS) AFS_component_version_number.o
121 $(RANLIB) libcom_err.a
123 llib-lcom_err.ln: $(LINTFILES)
124 lint -Ccom_err $(LINTFLAGS) $(LINTFILES)
127 -rm -f *~ \#* *.bak \
128 *.otl *.aux *.toc *.PS *.dvi *.x9700 *.ps \
129 *.cp *.fn *.ky *.log *.pg *.tp *.vr \
131 com_err.o compile_et \
132 et.ar TAGS y.tab.c lex.yy.c error_table.c \
134 test1.h test1.c test2.h test2.c test \
136 AFS_component_version_number.c
142 depend: ${CFILES} et_lex.lex.c
144 ${CC} -M ${CFLAGS} ${CFILES} | \
147 -e 's/\.\.\/[^ /]*\/\.\./../' \
148 -e 't loop' > makedep
149 echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
150 echo '$$r makedep' >>eddep
152 cp Makefile Makefile.bak
153 ed - Makefile < eddep
156 compile_et.o: AFS_component_version_number.c
158 # the last line in the makefile should be...
159 # DO NOT DELETE THIS LINE -- make depend depends on it.
160 compile_et.o: compile_et.c
161 compile_et.o: mit-sipb-cr.h
162 error_table.o: error_table.c
163 error_table.o: internal.h
164 error_table.o: mit-sipb-cr.h
165 error_table.o: error_table.h
166 error_table.o: mit-sipb-cr.h
167 error_table.o: et_lex.lex.c
168 error_msg.o: error_msg.c
169 error_msg.o: error_table.h
170 error_msg.o: mit-sipb-cr.h
171 error_msg.o: internal.h
172 error_msg.o: mit-sipb-cr.h
174 et_name.o: error_table.h
175 et_name.o: mit-sipb-cr.h
176 et_name.o: internal.h
177 et_name.o: mit-sipb-cr.h
180 perror.o: mit-sipb-cr.h
182 perror.o: mit-sipb-cr.h
183 perror.o: mit-sipb-cr.h
185 com_err.o: error_table.h
186 com_err.o: mit-sipb-cr.h
187 com_err.o: internal.h
188 com_err.o: mit-sipb-cr.h