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
TOP_INCDIR=@TOP_INCDIR@
9
TOP_LIBDIR=@TOP_LIBDIR@
11
exec_prefix=@exec_prefix@
14
libexecdir=@libexecdir@
16
includedir=@includedir@
18
afssrvbindir=@afssrvbindir@
19
afssrvsbindir=@afssrvsbindir@
20
afssrvlibexecdir=@afssrvlibexecdir@
21
COMPILE_ET=${TOP_SRCDIR}/comerr/compile_et
22
RXGEN=${TOP_SRCDIR}/rxgen/rxgen
23
TOP_SRCDIR=@TOP_SRCDIR@
24
SYS_NAME=@AFS_SYSNAME@
28
include ../config/Makefile.${SYS_NAME}
32
CFLAGS=${OPTMZ} -I${TOP_INCDIR} -I${TOP_SRCDIR}/config ${XCFLAGS}
34
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
36
et_lex.lex.c: et_lex.lex.l
38
$(LEX) -t et_lex.lex.l > et_lex.lex.c
40
compile_et: compile_et.o error_table.o
43
${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil;; \
45
${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil -ll;; \
48
libcom_err.a: error_msg.o et_name.o com_err.o AFS_component_version_number.o
50
$(AR) crv $@ error_msg.o et_name.o com_err.o AFS_component_version_number.o
53
# Installation targets
57
${UKERNELDIR}/afs/com_err.c \
58
${UKERNELDIR}/afs/com_err.h \
59
${UKERNELDIR}/afs/error_msg.c \
60
${UKERNELDIR}/afs/error_table.h \
61
${UKERNELDIR}/afs/mit-sipb-cr.h \
62
${UKERNELDIR}/afs/internal.h \
63
${UKERNELDIR}/afs/et_name.c
65
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
70
${UKERNELDIR}/afs/com_err.c: com_err.c
73
${UKERNELDIR}/afs/com_err.h: com_err.h
76
${UKERNELDIR}/afs/error_msg.c: error_msg.c
79
${UKERNELDIR}/afs/error_table.h: error_table.h
82
${UKERNELDIR}/afs/mit-sipb-cr.h: mit-sipb-cr.h
85
${UKERNELDIR}/afs/internal.h: internal.h
88
${UKERNELDIR}/afs/et_name.c: et_name.c
91
${DEST}/bin/compile_et: compile_et
94
${DEST}/include/afs/com_err.h: com_err.h
97
${DEST}/include/afs/error_table.h: error_table.h
100
${DEST}/include/afs/mit-sipb-cr.h: mit-sipb-cr.h
103
${DEST}/lib/afs/libcom_err.a: libcom_err.a
107
$(RM) -f *~ \#* *.bak *.otl *.aux *.toc *.PS *.dvi *.x9700 *.ps \
108
*.cp *.fn *.ky *.log *.pg *.tp *.vr *.o libcom_err.a \
109
com_err.o compile_et et.ar TAGS y.tab.c lex.yy.c error_table.c \
110
et_lex.lex.c test1.h test1.c test2.h test2.c \
111
eddep makedep core AFS_component_version_number.c
116
compile_et.o: AFS_component_version_number.c
117
error_table.o: et_lex.lex.c
119
include ../config/Makefile.version
120
${DESTDIR}${bindir}/compile_et: compile_et
123
${DESTDIR}${includedir}/afs/com_err.h: com_err.h
126
${TOP_INCDIR}/afs/com_err.h: com_err.h
129
${DESTDIR}${includedir}/afs/error_table.h: error_table.h
132
${TOP_INCDIR}/afs/error_table.h: error_table.h
135
${DESTDIR}${includedir}/afs/mit-sipb-cr.h: mit-sipb-cr.h
138
${TOP_INCDIR}/afs/mit-sipb-cr.h: mit-sipb-cr.h
141
${DESTDIR}${libdir}/afs/libcom_err.a: libcom_err.a
144
${TOP_LIBDIR}/libcom_err.a: libcom_err.a
147
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