summaryrefslogtreecommitdiff
path: root/usr.sbin/afs/lib/libarla/Makefile.ko.inc
blob: ed995f6b0f949ad29b837c848e4136e3be5bd0d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
### ko stuff

.PATH:	$(ROKENSRC)

OS_VER	!= uname -r

SRCS	+= koerror.c \
	   kocell.c \
	   ports.c \
	   vlmisc.c \
	   part.c \
	   agetarg.c \
	   uae.c \
	   sysname.c \
	   afs_uuid.c \
	   misc.c \
	   ko_resolve.c

# resolve.c exists in roken as well *sigh*
ko_resolve.c:
	ln -sf $(AFSSRC)/lib/ko/resolve.c ko_resolve.c

CLEANFILES	+= sysname.c gensysname gensysname.o getarg.o strupr.o \
		   get_window_size.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 getarg.o strupr.o get_window_size.o
	${HOSTCC} ${CFLAGS} -o gensysname gensysname.o getarg.o strupr.o get_window_size.o

CLEANFILES+=	gensysname.o agetarg.o