1
#/* Copyright (C) 1995, 1989 Transarc Corporation - All rights reserved */
3
# MakefileProto for Solaris systems
6
TOP_SRCDIR=@TOP_SRCDIR@
7
TOP_INCDIR=@TOP_INCDIR@
8
TOP_LIBDIR=@TOP_LIBDIR@
10
exec_prefix=@exec_prefix@
13
libexecdir=@libexecdir@
15
includedir=@includedir@
17
afssrvbindir=@afssrvbindir@
18
afssrvsbindir=@afssrvsbindir@
19
afssrvlibexecdir=@afssrvlibexecdir@
20
SYS_NAME=@AFS_SYSNAME@
22
include ../config/Makefile.${SYS_NAME}
24
# System specific build commands and flags
26
DEFINES= -D_REENTRANT -DAFSDEBUG -DKERNEL -DUKERNEL -DAFS -DVICE
28
CFLAGS=-I. -I.. -I${TOP_SRCDIR}/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG}
30
# WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
32
TEST_CFLAGS=-pthread -D_REENTRANT -DAFS_PTHREAD_ENV -DAFS_FBSD40_ENV
38
LIBAFSWEBKRB = nsafs.krb.so
40
include Makefile.common
43
-$(RM) -f h net netinet rpc ufs nfs machine sys inet nsapi
44
-ln -s /usr/include/sys h
45
-ln -s /usr/include/net net
46
-ln -s /usr/include/netinet netinet
47
-ln -s /usr/include/rpc rpc
48
-ln -s /usr/include/sys sys
49
-ln -s /usr/include/nfs nfs
50
-ln -s /usr/include/inet inet
51
-ln -s /usr/include/ufs ufs
52
-ln -s $(NS_INCL) nsapi
54
setup_uafs: UAFS setup_common
55
-$(RM) -f UAFS/Makefile UAFS/Makefile.common
56
ln -s ../Makefile UAFS/Makefile
57
ln -s ../Makefile.common UAFS/Makefile.common
62
setup_nsafs: AFSWEB setup_common
63
-$(RM) -f AFSWEB/Makefile AFSWEB/Makefile.common
64
ln -s ../Makefile AFSWEB/Makefile
65
ln -s ../Makefile.common AFSWEB/Makefile.common
70
UAFS/$(LIBUAFS): setup_uafs
72
$(MAKE) $(LIBUAFS) DESTDIR=${DESTDIR}
74
AFSWEB/$(LIBAFSWEB): setup_nsafs
76
$(MAKE) $(LIBAFSWEB) DESTDIR=${DESTDIR}
78
AFSWEB/$(LIBAFSWEBKRB): setup_nsafs
80
$(MAKE) $(LIBAFSWEBKRB) DESTDIR=${DESTDIR}
82
# Below this line are targets when in the COMMON directory:
84
$(LIBUAFS): $(UAFSOBJ)
86
$(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
88
$(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
89
-$(RM) -f $(LIBAFSWEB)
90
ld -b $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
92
$(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a
93
-$(RM) -f $(LIBAFSWEBKRB)
94
ld -b $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)