-#/* Copyright (C) 1995, 1989 Transarc Corporation - All rights reserved */
+# Copyright 2000, International Business Machines Corporation and others.
+# All Rights Reserved.
+#
+# This software has been released under the terms of the IBM Public
+# License. For details, see the LICENSE file in the top-level source
+# directory or online at http://www.openafs.org/dl/license10.html
#
# OpenBSD version by Jim Rees
srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
# System specific build commands and flags
-KSRC = /usr/src/sys
-KDEFS=-Wall -nostdinc -I/usr/include \
- -DLKM -DDIAGNOSTIC -DFIFO -DNFSCLIENT -DMFS -DFFS -D_KERNEL -DI586_CPU -DI686_CPU \
- -I${KSRC}/sys
-DBUG = -O2
+KSRC = @BSD_KERNEL_PATH@
+KFLAGS= -Wall -march=i486 -fno-builtin-printf -fno-builtin-log -nostdinc
+<i386_obsd33>
+KFLAGS+= -fno-stack-protector
+<all>
+KDEFS= \
+ ${KFLAGS} \
+ -I/usr/include -I${KSRC}/sys \
+ -DLKM -DDIAGNOSTIC -DFIFO -DNFSCLIENT -DMFS -DFFS -D_KERNEL -DI586_CPU \
+ -DI686_CPU
+DBUG= -O2
DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
OPTF= ${OPT}
OPTF2= ${OPT2}
-CFLAGS= ${FSINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
+CFLAGS= ${FSINCLUDES} ${DEFINES} ${KDEFS} ${KOPTS} ${DBUG}
# Name of directory to hold object files and libraries.
KOBJ = MODLOAD
# OS specific object files:
AFS_OS_OBJS = \
+ osi_gcpags.o \
osi_groups.o \
osi_file.o \
osi_misc.o \
libafs: $(LIBAFSNONFS)
ls -l libafs.o
-install_libafs: $(INST_LIBAFSNONFS)
-dest_libafs: $(DEST_LIBAFSNONFS)
-
-$(INST_LIBAFS): $(LIBAFS)
- $(INSTALL) -f $? $@
-
-$(INST_LIBAFSNONFS): $(LIBAFSNONFS)
- $(INSTALL) -f $? $@
-$(DEST_LIBAFS): $(LIBAFS)
- $(INSTALL) -f $? $@
+install_libafs: $(LIBAFS)
+ ${INSTALL} -d ${DESTDIR}${afskerneldir}
+ ${INSTALL} -m 644 $(LIBAFS) $(INST_LIBAFSNONFS)
-$(DEST_LIBAFSNONFS): $(LIBAFSNONFS)
- $(INSTALL) -f $? $@
+dest_libafs: $(LIBAFS)
+ ${INSTALL} -d ${DEST}/root.client/bin
+ $(INSTALL) -m 644 $(LIBAFS) $(DEST_LIBAFSNONFS)
${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
$(LD) -r -o ${LIBAFS} ${AFSAOBJS} ${AFSNFSOBJS}