1 # Copyright 2000, International Business Machines Corporation and others.
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
12 TOP_SRCDIR=@TOP_SRCDIR@
13 SYS_NAME=@AFS_SYSNAME@
16 include ../config/Makefile.${SYS_NAME}
18 CFLAGS = -g -I${TOP_SRCDIR}/config -I${SRCDIR}/include ${XCFLAGS}
19 LDFLAGS = -g ${XLDFLAGS}
20 INCLS=${SRCDIR}/include/ubik.h \
21 ${SRCDIR}/include/lwp.h \
22 ${SRCDIR}/include/lock.h \
23 ${SRCDIR}/include/rx/rx.h \
24 ${SRCDIR}/include/rx/xdr.h \
25 ${SRCDIR}/include/rx/rxkad.h \
26 ${SRCDIR}/include/afs/com_err.h \
27 ${SRCDIR}/include/afs/auth.h \
28 ${SRCDIR}/include/afs/cellconfig.h \
29 ${SRCDIR}/include/afs/cmd.h \
30 ${SRCDIR}/include/afs/pterror.h \
31 ${SRCDIR}/include/afs/kautils.h \
32 ${SRCDIR}/include/afs/bnode.h \
33 ${SRCDIR}/include/afs/vlserver.h
35 LIBS=${SRCDIR}/lib/libubik.a \
36 ${SRCDIR}/lib/librx.a \
37 ${SRCDIR}/lib/liblwp.a \
38 ${SRCDIR}/lib/afs/libauth.a \
39 ${SRCDIR}/lib/afs/libsys.a \
40 ${SRCDIR}/lib/librxkad.a \
41 ${SRCDIR}/lib/afs/libcmd.a \
42 ${SRCDIR}/lib/afs/libvldb.a \
43 ${SRCDIR}/lib/afs/libbos.a \
44 ${SRCDIR}/lib/afs/libcom_err.a \
45 ${SRCDIR}/lib/afs/libvolser.a \
46 ${SRCDIR}/lib/afs/util.a \
47 ${SRCDIR}/lib/afs/libkauth.a \
48 ${SRCDIR}/lib/afs/libprot.a \
49 ${SRCDIR}/lib/libdes.a \
52 include ../config/Makefile.version
57 rm -f *.o translate_et core AFS_component_version_number.c
59 translate_et: translate_et.o ${INCLS}
60 ${CC} ${LDFLAGS} -o translate_et translate_et.o ${LIBS}
62 translate_et.o: AFS_component_version_number.c
65 echo -n > /tmp/translate_et.output
66 -./translate_et >> /tmp/translate_et.output 2>&1
67 ./translate_et 55 >> /tmp/translate_et.output
68 ./translate_et 110 >> /tmp/translate_et.output
69 ./translate_et 255 >> /tmp/translate_et.output
70 ./translate_et 256 >> /tmp/translate_et.output
71 ./translate_et -1 -451 >> /tmp/translate_et.output
72 ./translate_et 1613147 >> /tmp/translate_et.output
73 ./translate_et 19270407 >> /tmp/translate_et.output
74 ./translate_et 180511 >> /tmp/translate_et.output
75 diff test.output /tmp/translate_et.output
76 rm /tmp/translate_et.output
80 noversion install.noversion install: all
81 ${INSTALL} translate_et ${DESTDIR}/bin/translate_et