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 ${TOP_INCDIR}/afs/com_err.h: com_err.h
15 ${TOP_INCDIR}/afs/error_table.h: error_table.h
18 ${TOP_INCDIR}/afs/mit-sipb-cr.h: mit-sipb-cr.h
21 ${TOP_LIBDIR}/libcom_err.a: libcom_err.a
24 et_lex.lex.c: et_lex.lex.l
26 $(LEX) -t $(srcdir)/et_lex.lex.l > et_lex.lex.c
28 compile_et: compile_et.o error_table.o
30 *_linux* | *_umlinux* ) \
31 ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil;; \
33 ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil -ll;; \
36 libcom_err.a: error_msg.o et_name.o com_err.o AFS_component_version_number.o
38 $(AR) crv $@ error_msg.o et_name.o com_err.o AFS_component_version_number.o
42 # Installation targets
44 install: compile_et com_err.h error_table.h mit-sipb-cr.h libcom_err.a
45 ${INSTALL} -d ${DESTDIR}${bindir}
46 ${INSTALL} -d ${DESTDIR}${includedir}/afs
47 ${INSTALL} -d ${DESTDIR}${libdir}/afs
48 ${INSTALL_PROGRAM} compile_et ${DESTDIR}${bindir}/compile_et
49 ${INSTALL_DATA} com_err.h ${DESTDIR}${includedir}/afs/com_err.h
50 ${INSTALL_DATA} error_table.h ${DESTDIR}${includedir}/afs/error_table.h
51 ${INSTALL_DATA} mit-sipb-cr.h ${DESTDIR}${includedir}/afs/mit-sipb-cr.h
52 ${INSTALL_DATA} libcom_err.a ${DESTDIR}${libdir}/afs/libcom_err.a
54 dest: compile_et com_err.h error_table.h mit-sipb-cr.h libcom_err.a
55 ${INSTALL} -d ${DEST}/bin
56 ${INSTALL} -d ${DEST}/include/afs
57 ${INSTALL} -d ${DEST}/lib/afs
58 ${INSTALL_PROGRAM} compile_et ${DEST}/bin/compile_et
59 ${INSTALL_DATA} com_err.h ${DEST}/include/afs/com_err.h
60 ${INSTALL_DATA} error_table.h ${DEST}/include/afs/error_table.h
61 ${INSTALL_DATA} mit-sipb-cr.h ${DEST}/include/afs/mit-sipb-cr.h
62 ${INSTALL_DATA} libcom_err.a ${DEST}/lib/afs/libcom_err.a
65 $(RM) -f *~ \#* *.bak *.otl *.aux *.toc *.PS *.dvi *.x9700 *.ps \
66 *.cp *.fn *.ky *.log *.pg *.tp *.vr *.o libcom_err.a \
67 com_err.o compile_et et.ar TAGS y.tab.c lex.yy.c error_table.c \
68 et_lex.lex.c test1.h test1.c test2.h test2.c \
69 eddep makedep core AFS_component_version_number.c
74 compile_et.o: AFS_component_version_number.c
75 error_table.o: et_lex.lex.c
77 include ../config/Makefile.version