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/
20 INSTALL=${SRCDIR}bin/install
22 CFLAGS= ${OPTMZ} -I${DESTDIR}include ${XCFLAGS}
23 FILES= Makefile et_name.c error_msg.c compile_et.c \
24 error_table.y et_lex.lex.l \
26 error_table.h mit-sipb-cr.h \
27 test.c test1.et test2.et \
30 CFILES= compile_et.c error_table.c error_msg.c et_name.c \
33 UKSRCS=com_err.c com_err.h error_msg.c error_table.h mit-sipb-cr.h internal.h et_name.c
36 include ../config/Makefile.version
38 utilib=${SRCDIR}lib/afs/util.a ${XLIBS}
40 system noversion: install
45 ${DESTDIR}bin/compile_et: compile_et
46 ${INSTALL} compile_et ${DESTDIR}bin/compile_et
48 all: libcom_err.a ${DESTDIR}bin/compile_et
50 lint: llib-lcom_err.ln
59 .SUFFIXES: .l .h .c .et .ps .x9700 .mss .dvi .texinfo
80 # ${CC} -c -pg ${CFLAGS} $*.c
81 # mv $*.o profiled/$*.o
82 ${CC} -c ${CFLAGS} $*.c
87 compile_et: compile_et.o error_table.o
90 ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o ${utilib};; \
92 ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o ${utilib} -ll;; \
97 tar cfrlv et.tar ${FILES}
102 @echo No $@ source here.
104 ukinstall webinstall: install
105 set ${UKERNELDIR}afs; $(MKDIR_IF_NEEDED)
106 ${INSTALL} ${UKSRCS} ${UKERNELDIR}afs
108 install: all ukinstall
109 ${INSTALL} com_err.h ${DESTDIR}include/afs/com_err.h
110 ${INSTALL} error_table.h ${DESTDIR}include/afs/error_table.h
111 ${INSTALL} mit-sipb-cr.h ${DESTDIR}include/afs/mit-sipb-cr.h
112 ${INSTALL} libcom_err.a ${DESTDIR}lib/afs/libcom_err.a
114 TAGS: et_name.c error_msg.c compile_et.c error_table.c \
116 etags et_name.c error_msg.c compile_et.c \
117 error_table.c perror.c
119 libcom_err.a: $(LIBOBJS) AFS_component_version_number.o
121 $(AR) cruv libcom_err.a $(LIBOBJS) AFS_component_version_number.o
122 $(RANLIB) libcom_err.a
124 llib-lcom_err.ln: $(LINTFILES)
125 lint -Ccom_err $(LINTFLAGS) $(LINTFILES)
128 -rm -f *~ \#* *.bak \
129 *.otl *.aux *.toc *.PS *.dvi *.x9700 *.ps \
130 *.cp *.fn *.ky *.log *.pg *.tp *.vr \
132 com_err.o compile_et \
133 et.ar TAGS y.tab.c lex.yy.c error_table.c \
135 test1.h test1.c test2.h test2.c test \
137 AFS_component_version_number.c
143 depend: ${CFILES} et_lex.lex.c
145 ${CC} -M ${CFLAGS} ${CFILES} | \
148 -e 's/\.\.\/[^ /]*\/\.\./../' \
149 -e 't loop' > makedep
150 echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
151 echo '$$r makedep' >>eddep
153 cp Makefile Makefile.bak
154 ed - Makefile < eddep
157 compile_et.o: AFS_component_version_number.c
159 # the last line in the makefile should be...
160 # DO NOT DELETE THIS LINE -- make depend depends on it.
161 compile_et.o: compile_et.c
162 compile_et.o: mit-sipb-cr.h
163 error_table.o: error_table.c
164 error_table.o: internal.h
165 error_table.o: mit-sipb-cr.h
166 error_table.o: error_table.h
167 error_table.o: mit-sipb-cr.h
168 error_table.o: et_lex.lex.c
169 error_msg.o: error_msg.c
170 error_msg.o: error_table.h
171 error_msg.o: mit-sipb-cr.h
172 error_msg.o: internal.h
173 error_msg.o: mit-sipb-cr.h
175 et_name.o: error_table.h
176 et_name.o: mit-sipb-cr.h
177 et_name.o: internal.h
178 et_name.o: mit-sipb-cr.h
181 perror.o: mit-sipb-cr.h
183 perror.o: mit-sipb-cr.h
184 perror.o: mit-sipb-cr.h
186 com_err.o: error_table.h
187 com_err.o: mit-sipb-cr.h
188 com_err.o: internal.h
189 com_err.o: mit-sipb-cr.h