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 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
15 # MakefileProto for LINUX systems
16 # This Makefile generates two libraries: the standard libuafs and libjuafs,
17 # a libuafs variant that is designed to link with Java enabled libraries.
18 # The libjuafs library implements the AFS_WEB_ENHANCEMENTS definition, see
19 # the libuafs README for details.
21 # System specific build commands and flags
22 DEFINES= -D_REENTRANT -DKERNEL -DUKERNEL
24 SYS_NAME=@AFS_SYSNAME@
25 ifeq (${SYS_NAME}, ppc64_linux26)
30 CFLAGS+= -I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG} $(XCFLAGS)
32 # WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
34 TEST_CFLAGS=-pthread -D_REENTRANT -DAFS_PTHREAD_ENV -DAFS_LINUX22_ENV
36 TEST_LIBS=-lpthread @LIB_crypt@
41 LIBAFSWEBKRB = nsafs.krb.so
43 include Makefile.common
45 $(LIBUAFS): $(UAFSOBJ)
47 $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
49 $(LIBJUAFS): $(JUAFSOBJ)
51 $(AR) $(ARFLAGS) $(LIBJUAFS) $(JUAFSOBJ)
53 $(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
54 -$(RM) -f $(LIBAFSWEB)
55 ld -b $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
57 $(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a
58 -$(RM) -f $(LIBAFSWEBKRB)
59 ld -b $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)