1 #/* Copyright (C) 1995, 1989 Transarc Corporation - All rights reserved */
3 # MakefileProto for Solaris systems
7 TOP_SRCDIR=@TOP_SRCDIR@
10 include ../config/Makefile.${SYS_NAME}
12 # System specific build commands and flags
14 DEFINES= -D_REENTRANT -DAFSDEBUG -DKERNEL -DUKERNEL -DAFS -DVICE
16 CFLAGS=-I. -I.. -I${TOP_SRCDIR}/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG}
18 # WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
20 TEST_CFLAGS=-pthread -D_REENTRANT -DAFS_PTHREAD_ENV -DAFS_FBSD40_ENV
26 LIBAFSWEBKRB = nsafs.krb.so
28 include Makefile.common
31 -$(RM) -f h net netinet rpc ufs nfs machine sys inet nsapi
32 -ln -s /usr/include/sys h
33 -ln -s /usr/include/net net
34 -ln -s /usr/include/netinet netinet
35 -ln -s /usr/include/rpc rpc
36 -ln -s /usr/include/sys sys
37 -ln -s /usr/include/nfs nfs
38 -ln -s /usr/include/inet inet
39 -ln -s /usr/include/ufs ufs
40 -ln -s $(NS_INCL) nsapi
42 setup_uafs: UAFS setup_common
43 -$(RM) -f UAFS/Makefile UAFS/Makefile.common
44 ln -s ../Makefile UAFS/Makefile
45 ln -s ../Makefile.common UAFS/Makefile.common
50 setup_nsafs: AFSWEB setup_common
51 -$(RM) -f AFSWEB/Makefile AFSWEB/Makefile.common
52 ln -s ../Makefile AFSWEB/Makefile
53 ln -s ../Makefile.common AFSWEB/Makefile.common
58 UAFS/$(LIBUAFS): setup_uafs
60 $(MAKE) $(LIBUAFS) DESTDIR=${DESTDIR}
62 AFSWEB/$(LIBAFSWEB): setup_nsafs
64 $(MAKE) $(LIBAFSWEB) DESTDIR=${DESTDIR}
66 AFSWEB/$(LIBAFSWEBKRB): setup_nsafs
68 $(MAKE) $(LIBAFSWEBKRB) DESTDIR=${DESTDIR}
70 # Below this line are targets when in the COMMON directory:
72 $(LIBUAFS): $(UAFSOBJ)
74 $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
76 $(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
77 -$(RM) -f $(LIBAFSWEB)
78 ld -b $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
80 $(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a
81 -$(RM) -f $(LIBAFSWEBKRB)
82 ld -b $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)