diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1998-09-14 21:53:34 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1998-09-14 21:53:34 +0000 |
commit | 0e57f2a299667350f0094976659b7e7f6dee3478 (patch) | |
tree | d8ede62a3ccc6a1f3f2356331b66e9053ae3a2aa /usr.sbin/afs/libarla | |
parent | 788dcf9c3006bfae877a4297f0cb91c6e6f20b25 (diff) |
Initial version of Arla, a free implementation of an AFS cache-manager.
(second try, hopefully into the correct repository this time)
Diffstat (limited to 'usr.sbin/afs/libarla')
-rw-r--r-- | usr.sbin/afs/libarla/Makefile | 22 | ||||
-rw-r--r-- | usr.sbin/afs/libarla/Makefile.ko.inc | 15 | ||||
-rw-r--r-- | usr.sbin/afs/libarla/Makefile.lwp.inc | 23 | ||||
-rw-r--r-- | usr.sbin/afs/libarla/Makefile.rx.inc | 5 | ||||
-rw-r--r-- | usr.sbin/afs/libarla/Makefile.rxdef.inc | 37 | ||||
-rw-r--r-- | usr.sbin/afs/libarla/Makefile.rxkad.inc | 7 |
6 files changed, 109 insertions, 0 deletions
diff --git a/usr.sbin/afs/libarla/Makefile b/usr.sbin/afs/libarla/Makefile new file mode 100644 index 00000000000..a95fc97168b --- /dev/null +++ b/usr.sbin/afs/libarla/Makefile @@ -0,0 +1,22 @@ +# $OpenBSD: Makefile,v 1.1 1998/09/14 21:53:28 art Exp $ + +# +# You don't want to understand this makefile. +# + +LIB = arla +NOPIC = +NOPROFILE= +MAN = + +CFLAGS += -DHAVE_CONFIG_H -I${.CURDIR}/../src/include -I. \ + -I${.CURDIR}/../src/lib/roken -I${.CURDIR}/../src/util \ + -I${.CURDIR}/../src -I${.CURDIR}/../libroken + +.include "Makefile.lwp.inc" +.include "Makefile.rx.inc" +.include "Makefile.rxdef.inc" +.include "Makefile.rxkad.inc" +.include "Makefile.ko.inc" + +.include <bsd.lib.mk> diff --git a/usr.sbin/afs/libarla/Makefile.ko.inc b/usr.sbin/afs/libarla/Makefile.ko.inc new file mode 100644 index 00000000000..016822331f7 --- /dev/null +++ b/usr.sbin/afs/libarla/Makefile.ko.inc @@ -0,0 +1,15 @@ +### ko stuff +OS_VER != uname -r + +SRCS += koerror.c kocell.c ports.c kodebug.c +SRCS += sysname.c +CLEANFILES += sysname.c gensysname +CFLAGS += -I${.CURDIR}/../src/lib/ko + +.PATH: ${.CURDIR}/../src/lib/ko + +sysname.c: gensysname + ./gensysname -c > sysname.c + +gensysname: gensysname.c + ${CC} ${CFLAGS} -o gensysname ${.CURDIR}/../src/lib/ko/gensysname.c ../libroken/libroken.a diff --git a/usr.sbin/afs/libarla/Makefile.lwp.inc b/usr.sbin/afs/libarla/Makefile.lwp.inc new file mode 100644 index 00000000000..6f585eb538d --- /dev/null +++ b/usr.sbin/afs/libarla/Makefile.lwp.inc @@ -0,0 +1,23 @@ +### lwp stuff +SRCS += lwp.c lock.c iomgr.c timer.c fasttime.c preempt.c q.c +OBJS += process.o +CLEANFILES += process.o +.PATH: ${.CURDIR}/../src/lwp +CFLAGS += -DFD_SPEED_HACK -I${.CURDIR}/../src/lwp + + +process.o: process.S + HOST_CPU=${MACHINE_ARCH}; \ + case "$$HOST_CPU" in \ + sparc) CPUDEF="-Dsparc" ;; \ + i*86*) CPUDEF="-DAFS_386i_ENV" ;; \ + m68k) CPUDEF="-Dmc68000" ;; \ + mips) CPUDEF="-Dmips" ;; \ + alpha) CPUDEF="-Dalpha" ;; \ + hppa*) CPUDEF="" ;; \ + powerpc) CPUDEF="-D__powerpc__" ;; \ + rs6000) CPUDEF="-DRIOS" ;; \ + *) echo "Unknown host_cpu, good luck" ;; \ + esac; \ + OSDEF="-DAFS_NETBSD_ENV"; \ + ${CC} $$CPUDEF $$OSDEF -c ${.CURDIR}/../src/lwp/process.S diff --git a/usr.sbin/afs/libarla/Makefile.rx.inc b/usr.sbin/afs/libarla/Makefile.rx.inc new file mode 100644 index 00000000000..51076d702f5 --- /dev/null +++ b/usr.sbin/afs/libarla/Makefile.rx.inc @@ -0,0 +1,5 @@ +### rx stuff +SRCS += rx_clock.c rx_event.c rx_user.c rx.c rx_globs.c rx_null.c \ + rx_misc.c rx_pkt.c rx_rdwr.c rx_multi.c rx_trace.c +CFLAGS += -I${.CURDIR}/../src/rx +.PATH: ${.CURDIR}/../src/rx diff --git a/usr.sbin/afs/libarla/Makefile.rxdef.inc b/usr.sbin/afs/libarla/Makefile.rxdef.inc new file mode 100644 index 00000000000..19f0629a524 --- /dev/null +++ b/usr.sbin/afs/libarla/Makefile.rxdef.inc @@ -0,0 +1,37 @@ +### rxdef stuff +## No, cb.ss.c is _not_ a mistake. The _client_ is the callback server. +SRCS += vldb.cs.c fs.cs.c cb.ss.c pts.cs.c \ + volumeserver.cs.c ubik.cs.c + +CLEANFILES += vldb.ss.c vldb.cs.c vldb.ydr.c vldb.ss.h vldb.cs.h vldb.h \ + fs.ss.c fs.cs.c fs.ydr.c fs.cs.h fs.ss.h fs.h \ + cb.ss.c cb.cs.c cb.ydr.c cb.cs.h cb.ss.h cb.h \ + pts.ss.c pts.cs.c pts.ydr.c pts.cs.h pts.ss.h pts.h \ + volumeserver.ss.c volumeserver.cs.c volumeserver.ydr.c \ + volumeserver.ss.h volumeserver.cs.h volumeserver.h \ + ubik.ss.c ubik.cs.c ubik.ydr.c ubik.cs.h ubik.ss.h ubik.h + +CFLAGS += -I${.CURDIR}/../src/rxdef + +YDR = ../ydr/ydr +YDRFLAGS = -I${.CURDIR} +.PATH: ${.CURDIR}/../src/rxdef + +vldb.cs.c vldb.cs.h vldb.ss.c vldb.ss.h vldb.ydr.c vldb.h: vldb.xg + $(YDR) $(YDRFLAGS) ${.CURDIR}/../src/rxdef/vldb.xg + +fs.cs.c fs.cs.h fs.ss.c fs.ss.h fs.ydr.c fs.h: fs.xg + $(YDR) $(YDRFLAGS) ${.CURDIR}/../src/rxdef/fs.xg + +cb.cs.c cb.cs.h cb.ss.c cb.ss.h cb.ydr.c cb.h: cb.xg + $(YDR) $(YDRFLAGS) ${.CURDIR}/../src/rxdef/cb.xg + +pts.cs.c pts.cs.h pts.ss.c pts.ss.h pts.ydr.c pts.h: pts.xg + $(YDR) $(YDRFLAGS) ${.CURDIR}/../src/rxdef/pts.xg + +volumeserver.cs.c volumeserver.cs.h volumeserver.ss.c volumeserver.ss.h volumeserver.ydr.c volumeserver.h: volumeserver.xg + $(YDR) $(YDRFLAGS) ${.CURDIR}/../src/rxdef/volumeserver.xg + +ubik.cs.c ubik.cs.h ubik.ss.c ubik.ss.h ubik.ydr.c ubik.h: ubik.xg + $(YDR) $(YDRFLAGS) ${.CURDIR}/../src/rxdef/ubik.xg + diff --git a/usr.sbin/afs/libarla/Makefile.rxkad.inc b/usr.sbin/afs/libarla/Makefile.rxkad.inc new file mode 100644 index 00000000000..372437aab5c --- /dev/null +++ b/usr.sbin/afs/libarla/Makefile.rxkad.inc @@ -0,0 +1,7 @@ +### rxkad stuff +SRCS += rxk_locl.c rxk_clnt.c rxk_serv.c rxk_crpt.c rxk_info.c \ + osi_alloc.c compat.c + +CFLAGS += -I${.CURDIR}/../src/rxkad + +.PATH: ${.CURDIR}/../src/rxkad |