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 all: 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
12 et_lex.lex.c: et_lex.lex.l
14 $(LEX) -t $(srcdir)/et_lex.lex.l > et_lex.lex.c
16 compile_et: compile_et.o error_table.o
18 *_linux* | *_umlinux* ) \
19 ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil;; \
21 ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil -ll;; \
24 libcom_err.a: error_msg.o et_name.o com_err.o AFS_component_version_number.o
26 $(AR) crv $@ error_msg.o et_name.o com_err.o AFS_component_version_number.o
29 # Installation targets
31 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
33 ${DEST}/bin/compile_et: compile_et
36 ${DEST}/include/afs/com_err.h: com_err.h
39 ${DEST}/include/afs/error_table.h: error_table.h
42 ${DEST}/include/afs/mit-sipb-cr.h: mit-sipb-cr.h
45 ${DEST}/lib/afs/libcom_err.a: libcom_err.a
49 $(RM) -f *~ \#* *.bak *.otl *.aux *.toc *.PS *.dvi *.x9700 *.ps \
50 *.cp *.fn *.ky *.log *.pg *.tp *.vr *.o libcom_err.a \
51 com_err.o compile_et et.ar TAGS y.tab.c lex.yy.c error_table.c \
52 et_lex.lex.c test1.h test1.c test2.h test2.c \
53 eddep makedep core AFS_component_version_number.c
58 compile_et.o: AFS_component_version_number.c
59 error_table.o: et_lex.lex.c
61 include ../config/Makefile.version
62 ${DESTDIR}${bindir}/compile_et: compile_et
65 ${DESTDIR}${includedir}/afs/com_err.h: com_err.h
68 ${TOP_INCDIR}/afs/com_err.h: com_err.h
71 ${DESTDIR}${includedir}/afs/error_table.h: error_table.h
74 ${TOP_INCDIR}/afs/error_table.h: error_table.h
77 ${DESTDIR}${includedir}/afs/mit-sipb-cr.h: mit-sipb-cr.h
80 ${TOP_INCDIR}/afs/mit-sipb-cr.h: mit-sipb-cr.h
83 ${DESTDIR}${libdir}/afs/libcom_err.a: libcom_err.a
86 ${TOP_LIBDIR}/libcom_err.a: libcom_err.a
89 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