# License. For details, see the LICENSE file in the top-level source
# directory or online at http://www.openafs.org/dl/license10.html
-DESTDIR=@DESTDIR@
-SRCDIR=@SRCDIR@
-TOP_SRCDIR=@TOP_SRCDIR@
-SYS_NAME=@AFS_SYSNAME@
+srcdir=@srcdir@
+include @TOP_OBJDIR@/src/config/Makefile.config
+include @TOP_OBJDIR@/src/config/Makefile.lwp
-OPTIMIZE=-O
-INCDIRS= -I${DESTDIR}/include -I.. -I${DESTDIR}/include/afs
-LDIRS= -L${DESTDIR}/lib -L${DESTDIR}/lib/afs -L..
+LDIRS=-L${TOP_LIBDIR} -L${DESTDIR}/lib/afs -L..
LIBS= -lauth -lrxkad -ldes -lsys -lrx -llwp -lcmd -lafsutil ${XLIBS}
-CFLAGS = ${OPTIMIZE} ${INCDIRS} ${LDIRS} ${LIBS} ${XCFLAGS}
+all: testlog gettoktest
-all: install
-
-install: testlog gettoktest
+install:
#
# Build targets
#
testlog: testlog.o
- ${CC} -o testlog testlog.o ${CFLAGS}
+ $(AFS_LDRULE) testlog.o ${LDIRS} ${LIBS}
gettoktest: gettoktest.o
- ${CC} -o gettoktest gettoktest.o ${CFLAGS}
+ $(AFS_LDRULE) gettoktest.o ${LDIRS} ${LIBS}
#
# Misc. targets
clean:
$(RM) -f *.o testlog gettoktest core
+dest:
+