summaryrefslogtreecommitdiff
path: root/usr.sbin/afs/lib/libarla
diff options
context:
space:
mode:
authorHans Insulander <hin@cvs.openbsd.org>2002-06-07 05:03:00 +0000
committerHans Insulander <hin@cvs.openbsd.org>2002-06-07 05:03:00 +0000
commit897452938eeb640001f2551c37d01ca3036867db (patch)
treeaa1acfcd1450dbaba23bfa2cd37a58c514e2d300 /usr.sbin/afs/lib/libarla
parent266e5cbd0681a43061c848b6685a54472b02e153 (diff)
Buildsystem for arla-0.35.7
Diffstat (limited to 'usr.sbin/afs/lib/libarla')
-rw-r--r--usr.sbin/afs/lib/libarla/Makefile35
-rw-r--r--usr.sbin/afs/lib/libarla/Makefile.arla.inc6
-rw-r--r--usr.sbin/afs/lib/libarla/Makefile.bufdir.inc4
-rw-r--r--usr.sbin/afs/lib/libarla/Makefile.ko.inc20
-rw-r--r--usr.sbin/afs/lib/libarla/Makefile.lwp.inc38
-rw-r--r--usr.sbin/afs/lib/libarla/Makefile.rx.inc5
-rw-r--r--usr.sbin/afs/lib/libarla/Makefile.rxdef.inc46
-rw-r--r--usr.sbin/afs/lib/libarla/Makefile.rxkad.inc7
-rw-r--r--usr.sbin/afs/lib/libarla/Makefile.sl.inc4
-rw-r--r--usr.sbin/afs/lib/libarla/Makefile.util.inc6
10 files changed, 171 insertions, 0 deletions
diff --git a/usr.sbin/afs/lib/libarla/Makefile b/usr.sbin/afs/lib/libarla/Makefile
new file mode 100644
index 00000000000..8b42de883b5
--- /dev/null
+++ b/usr.sbin/afs/lib/libarla/Makefile
@@ -0,0 +1,35 @@
+# $OpenBSD: Makefile,v 1.1 2002/06/07 05:02:58 hin Exp $
+
+#
+# You don't want to understand this makefile.
+#
+
+AFSTOPDIR = ../..
+.include <../../Makefile.inc>
+
+LIB = arla
+NOPIC =
+NOPROFILE=
+MAN =
+
+CFLAGS += -DHAVE_CONFIG_H -I. -I${AFSSRC}/util
+
+# XXX Until an egcs bug gets fixed
+.if (${MACHINE_ARCH} == "alpha")
+CFLAGS += -O0
+.endif
+
+# Don't install libarla.a
+install:
+
+.include "Makefile.lwp.inc"
+.include "Makefile.rx.inc"
+.include "Makefile.rxdef.inc"
+.include "Makefile.rxkad.inc"
+.include "Makefile.ko.inc"
+.include "Makefile.bufdir.inc"
+.include "Makefile.util.inc"
+.include "Makefile.sl.inc"
+.include "Makefile.arla.inc"
+
+.include <bsd.lib.mk>
diff --git a/usr.sbin/afs/lib/libarla/Makefile.arla.inc b/usr.sbin/afs/lib/libarla/Makefile.arla.inc
new file mode 100644
index 00000000000..d83a1c3326b
--- /dev/null
+++ b/usr.sbin/afs/lib/libarla/Makefile.arla.inc
@@ -0,0 +1,6 @@
+SRCS += arlalib.c \
+ fs_lib.c \
+ ka-procs.c \
+ tokens.c
+CFLAGS += -I${AFSSRC}/appl/lib
+.PATH: ${AFSSRC}/appl/lib
diff --git a/usr.sbin/afs/lib/libarla/Makefile.bufdir.inc b/usr.sbin/afs/lib/libarla/Makefile.bufdir.inc
new file mode 100644
index 00000000000..ae2649f89b6
--- /dev/null
+++ b/usr.sbin/afs/lib/libarla/Makefile.bufdir.inc
@@ -0,0 +1,4 @@
+### bufdir stuff
+SRCS += fdir.c fbuf.c
+CFLAGS += -I${AFSSRC}/lib/bufdir
+.PATH: ${AFSSRC}/lib/bufdir
diff --git a/usr.sbin/afs/lib/libarla/Makefile.ko.inc b/usr.sbin/afs/lib/libarla/Makefile.ko.inc
new file mode 100644
index 00000000000..17fd7a138a7
--- /dev/null
+++ b/usr.sbin/afs/lib/libarla/Makefile.ko.inc
@@ -0,0 +1,20 @@
+### ko stuff
+OS_VER != uname -r
+
+SRCS += koerror.c kocell.c ports.c vlmisc.c part.c agetarg.c
+SRCS += sysname.c
+CLEANFILES += sysname.c gensysname gensysname.o
+CFLAGS += -I${AFSSRC}/lib/ko
+
+.PATH: ${AFSSRC}/lib/ko
+.PATH: ${.CURDIR}/${AFSTOPDIR}/../../kerberosV/src/lib/roken
+
+sysname.c: gensysname
+ ./gensysname -c > sysname.c
+
+gensysname: gensysname.o agetarg.o setprogname.o
+ ${CC} ${CFLAGS} -o gensysname gensysname.o agetarg.o setprogname.o ${LIBROKEN}
+
+test:
+ echo ${AFSTOPDIR}/../../kerberosV/src/lib/roken
+
diff --git a/usr.sbin/afs/lib/libarla/Makefile.lwp.inc b/usr.sbin/afs/lib/libarla/Makefile.lwp.inc
new file mode 100644
index 00000000000..9db1b25b907
--- /dev/null
+++ b/usr.sbin/afs/lib/libarla/Makefile.lwp.inc
@@ -0,0 +1,38 @@
+### lwp stuff
+SRCS += lwp.c lock.c iomgr.c timer.c fasttime.c preempt.c q.c
+OBJS += process.o
+CLEANFILES += process.S process.o lwp.c lwp.h
+.PATH: ${AFSSRC}/lwp
+CFLAGS += -DAFS_BSD_ENV -DFD_SPEED_HACK -I${AFSSRC}/lwp
+
+# We use the handcoded assembler stuff for context switching, not
+# pthreads (because pthreads do not work for now).
+
+beforedepend: lwp.c lwp.h
+
+lwp.h:
+ ln -s ${AFSSRC}/lwp/lwp_asm.h lwp.h
+lwp.c: lwp.h
+ ln -s ${AFSSRC}/lwp/lwp_asm.c lwp.c
+
+process.S:
+ HOST_CPU=${MACHINE_ARCH}; \
+ case "$$HOST_CPU" in \
+ sparc64) PROCESS_S="process.sparc.S" ;; \
+ sparc) PROCESS_S="process.sparc.S" ;; \
+ i*86*) PROCESS_S="process.i386.S" ;; \
+ m68k) PROCESS_S="process.m68k.S" ;; \
+ mips*) PROCESS_S="process.mips.S" ;; \
+ alpha*) PROCESS_S="process.alpha.S" ;; \
+ hppa*) PROCESS_S="process.hpux.S" ;; \
+ powerpc) PROCESS_S="process.ppc.S" ;; \
+ rs6000) PROCESS_S="process.rios.S" ;; \
+ vax) PROCESS_S="process.vax.S" ;; \
+ *) echo "Unknown host_cpu, good luck" ;; \
+ esac; \
+ ln -s ${AFSSRC}/lwp/$$PROCESS_S process.S
+
+process.o: process.S
+ ${CC} ${CFLAGS} -DHAVE_PIC -c process.S
+
+all: lwp.h \ No newline at end of file
diff --git a/usr.sbin/afs/lib/libarla/Makefile.rx.inc b/usr.sbin/afs/lib/libarla/Makefile.rx.inc
new file mode 100644
index 00000000000..690954fb71d
--- /dev/null
+++ b/usr.sbin/afs/lib/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${AFSSRC}/rx -I${AFSSRC}
+.PATH: ${AFSSRC}/rx
diff --git a/usr.sbin/afs/lib/libarla/Makefile.rxdef.inc b/usr.sbin/afs/lib/libarla/Makefile.rxdef.inc
new file mode 100644
index 00000000000..0550a00410e
--- /dev/null
+++ b/usr.sbin/afs/lib/libarla/Makefile.rxdef.inc
@@ -0,0 +1,46 @@
+### 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 bos.cs.c ka.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 \
+ bos.ss.c bos.cs.c bos.ydr.c bos.cs.h bos.ss.h bos.h \
+ vldb.td.c fs.td.c cb.td.c pts.td.c volumeserver.td.c \
+ ubik.td.c bos.td.c ka.cs.c ka.cs.h ka.h ka.ss.c ka.ss.h \
+ ka.td.c ka.ydr.c
+
+CFLAGS += -I${AFSSRC}/rxdef -I${AFSSRC}/arlad
+
+YDRFLAGS = -I${.CURDIR}
+.PATH: ${AFSSRC}/rxdef
+
+vldb.cs.c vldb.cs.h vldb.ss.c vldb.ss.h vldb.ydr.c vldb.h: vldb.xg
+ $(YDR) $(YDRFLAGS) ${AFSSRC}/rxdef/vldb.xg
+
+fs.cs.c fs.cs.h fs.ss.c fs.ss.h fs.ydr.c fs.h: fs.xg
+ $(YDR) $(YDRFLAGS) ${AFSSRC}/rxdef/fs.xg
+
+cb.cs.c cb.cs.h cb.ss.c cb.ss.h cb.ydr.c cb.h: cb.xg
+ $(YDR) $(YDRFLAGS) ${AFSSRC}/rxdef/cb.xg
+
+pts.cs.c pts.cs.h pts.ss.c pts.ss.h pts.ydr.c pts.h: pts.xg
+ $(YDR) $(YDRFLAGS) ${AFSSRC}/rxdef/pts.xg
+
+volumeserver.cs.c volumeserver.cs.h volumeserver.ss.c volumeserver.ss.h volumeserver.ydr.c volumeserver.h: volumeserver.xg
+ $(YDR) $(YDRFLAGS) ${AFSSRC}/rxdef/volumeserver.xg
+
+ubik.cs.c ubik.cs.h ubik.ss.c ubik.ss.h ubik.ydr.c ubik.h: ubik.xg
+ $(YDR) $(YDRFLAGS) ${AFSSRC}/rxdef/ubik.xg
+
+bos.cs.c bos.cs.h bos.ss.c bos.ss.h bos.ydr.c bos.h: bos.xg
+ $(YDR) $(YDRFLAGS) ${AFSSRC}/rxdef/bos.xg
+
+ka.cs.c ka.cs.h ka.ss.c ka.ss.h ka.ydr.c ka.h: ka.xg
+ $(YDR) $(YDRFLAGS) ${AFSSRC}/rxdef/ka.xg
+
diff --git a/usr.sbin/afs/lib/libarla/Makefile.rxkad.inc b/usr.sbin/afs/lib/libarla/Makefile.rxkad.inc
new file mode 100644
index 00000000000..239041b7765
--- /dev/null
+++ b/usr.sbin/afs/lib/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${AFSSRC}/rxkad -I${DESTDIR}/usr/include/kerberosIV
+
+.PATH: ${AFSSRC}/rxkad
diff --git a/usr.sbin/afs/lib/libarla/Makefile.sl.inc b/usr.sbin/afs/lib/libarla/Makefile.sl.inc
new file mode 100644
index 00000000000..133b24f10b5
--- /dev/null
+++ b/usr.sbin/afs/lib/libarla/Makefile.sl.inc
@@ -0,0 +1,4 @@
+SRCS += sl.c
+CFLAGS += -I${AFSSRC}/lib/sl
+
+.PATH: ${AFSSRC}/lib/sl
diff --git a/usr.sbin/afs/lib/libarla/Makefile.util.inc b/usr.sbin/afs/lib/libarla/Makefile.util.inc
new file mode 100644
index 00000000000..551c640cc7e
--- /dev/null
+++ b/usr.sbin/afs/lib/libarla/Makefile.util.inc
@@ -0,0 +1,6 @@
+SRCS += log.c \
+ hash.c \
+ heap.c \
+ list.c
+
+.PATH: ${AFSSRC}/util