2 # Makefile for error-table routines
4 # Copyright 1987, 1989 MIT Student Information Processing Board
5 # For copyright info, see mit-sipb-cr.h.
8 include @TOP_OBJDIR@/src/config/Makefile.config
10 CFLAGS=${OPTMZ} -I${TOP_INCDIR} -I${TOP_OBJDIR}/src/config -I. -I${srcdir} ${XCFLAGS}
12 all: ukinstall compile_et ${TOP_INCDIR}/afs/com_err.h ${TOP_INCDIR}/afs/error_table.h ${TOP_INCDIR}/afs/mit-sipb-cr.h ${TOP_LIBDIR}/libcom_err.a
14 et_lex.lex.c: et_lex.lex.l
16 $(LEX) -t $? > et_lex.lex.c
18 compile_et: compile_et.o error_table.o
21 ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil;; \
23 ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil -ll;; \
26 libcom_err.a: error_msg.o et_name.o com_err.o AFS_component_version_number.o
28 $(AR) crv $@ error_msg.o et_name.o com_err.o AFS_component_version_number.o
31 # Installation targets
35 ${UKERNELDIR}/afs/com_err.c \
36 ${UKERNELDIR}/afs/com_err.h \
37 ${UKERNELDIR}/afs/error_msg.c \
38 ${UKERNELDIR}/afs/error_table.h \
39 ${UKERNELDIR}/afs/mit-sipb-cr.h \
40 ${UKERNELDIR}/afs/internal.h \
41 ${UKERNELDIR}/afs/et_name.c
43 install: ${DESTDIR}${bindir}/compile_et ${DESTDIR}${includedir}/afs/com_err.h ${DESTDIR}${includedir}/afs/error_table.h ${DESTDIR}${includedir}/afs/mit-sipb-cr.h ${DESTDIR}${libdir}/afs/libcom_err.a
48 ${UKERNELDIR}/afs/com_err.c: com_err.c
51 ${UKERNELDIR}/afs/com_err.h: com_err.h
54 ${UKERNELDIR}/afs/error_msg.c: error_msg.c
57 ${UKERNELDIR}/afs/error_table.h: error_table.h
60 ${UKERNELDIR}/afs/mit-sipb-cr.h: mit-sipb-cr.h
63 ${UKERNELDIR}/afs/internal.h: internal.h
66 ${UKERNELDIR}/afs/et_name.c: et_name.c
69 ${DEST}/bin/compile_et: compile_et
72 ${DEST}/include/afs/com_err.h: com_err.h
75 ${DEST}/include/afs/error_table.h: error_table.h
78 ${DEST}/include/afs/mit-sipb-cr.h: mit-sipb-cr.h
81 ${DEST}/lib/afs/libcom_err.a: libcom_err.a
85 $(RM) -f *~ \#* *.bak *.otl *.aux *.toc *.PS *.dvi *.x9700 *.ps \
86 *.cp *.fn *.ky *.log *.pg *.tp *.vr *.o libcom_err.a \
87 com_err.o compile_et et.ar TAGS y.tab.c lex.yy.c error_table.c \
88 et_lex.lex.c test1.h test1.c test2.h test2.c \
89 eddep makedep core AFS_component_version_number.c
94 compile_et.o: AFS_component_version_number.c
95 error_table.o: et_lex.lex.c
97 include ../config/Makefile.version
98 ${DESTDIR}${bindir}/compile_et: compile_et
101 ${DESTDIR}${includedir}/afs/com_err.h: com_err.h
104 ${TOP_INCDIR}/afs/com_err.h: com_err.h
107 ${DESTDIR}${includedir}/afs/error_table.h: error_table.h
110 ${TOP_INCDIR}/afs/error_table.h: error_table.h
113 ${DESTDIR}${includedir}/afs/mit-sipb-cr.h: mit-sipb-cr.h
116 ${TOP_INCDIR}/afs/mit-sipb-cr.h: mit-sipb-cr.h
119 ${DESTDIR}${libdir}/afs/libcom_err.a: libcom_err.a
122 ${TOP_LIBDIR}/libcom_err.a: libcom_err.a
125 dest: ${DEST}/bin/compile_et ${DEST}/include/afs/com_err.h ${DEST}/include/afs/error_table.h ${DEST}/include/afs/mit-sipb-cr.h ${DEST}/lib/afs/libcom_err.a