1 # Copyright 2000, International Business Machines Corporation and others.
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
9 include @TOP_OBJDIR@/src/config/Makefile.config
11 # System specific build commands and flags
12 DEFINES= -D_REENTRANT -DKERNEL -DUKERNEL
13 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG}
15 WEBOPTS = -KPIC -I../nsapi -DNETSCAPE_NSAPI -DSOLARIS -DNET_SSL -DXP_UNIX -DMCC_HTTPD
17 TEST_CFLAGS=-mt -DAFS_PTHREAD_ENV -Dsolaris -DAFS_SUN5_ENV
19 TEST_LIBS=-lsocket -lnsl -lthread -lm -ldl
24 LIBAFSWEBKRB = nsafs.krb.so
26 include Makefile.common
29 -$(RM) -f h net netinet rpc ufs nfs machine sys inet nsapi
30 -ln -s /usr/include/sys h
31 -ln -s /usr/include/net net
32 -ln -s /usr/include/netinet netinet
33 -ln -s /usr/include/rpc rpc
34 -ln -s /usr/include/sys sys
35 -ln -s /usr/include/nfs nfs
36 -ln -s /usr/include/inet inet
37 -ln -s /usr/include/ufs ufs
38 -ln -s $(NS_INCL) nsapi
40 setup_uafs: UAFS setup_common
41 -$(RM) -f UAFS/Makefile UAFS/Makefile.common
42 ln -s ../Makefile UAFS/Makefile
43 ln -s ../Makefile.common UAFS/Makefile.common
45 setup_juafs: JUAFS setup_common
46 -$(RM) -f JUAFS/Makefile JUAFS/Makefile.common
47 ln -s ../Makefile JUAFS/Makefile
48 ln -s ../Makefile.common JUAFS/Makefile.common
56 setup_nsafs: AFSWEB setup_common
57 -$(RM) -f AFSWEB/Makefile AFSWEB/Makefile.common
58 ln -s ../Makefile AFSWEB/Makefile
59 ln -s ../Makefile.common AFSWEB/Makefile.common
64 UAFS/$(LIBUAFS): setup_uafs
66 $(MAKE) $(LIBUAFS) LIBJUAFS_FLAGS=
68 JUAFS/$(LIBJUAFS): setup_juafs
70 $(MAKE) $(LIBJUAFS) DESTDIR=${DESTDIR} LIBJUAFS_FLAGS=-DAFS_WEB_ENHANCEMENTS
72 AFSWEB/$(LIBAFSWEB): setup_nsafs
76 AFSWEB/$(LIBAFSWEBKRB): setup_nsafs
78 $(MAKE) $(LIBAFSWEBKRB)
80 # Below this line are targets when in the COMMON directory:
82 $(LIBUAFS): $(UAFSOBJ)
84 $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
86 $(LIBJUAFS): $(JUAFSOBJ)
88 $(AR) $(ARFLAGS) $(LIBJUAFS) $(JUAFSOBJ)
90 $(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
91 -$(RM) -f $(LIBAFSWEB)
92 ${LD} -G -M../mapfile -o $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
95 $(LIBAFSWEBKRB): $(AFSWEBOBJKRB) $(DES)/libdes.a
96 -$(RM) -f $(LIBAFSWEBKRB)
97 ${LD} -G -M../mapfile -o $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)