Remove local crypto
[openafs.git] / src / libuafs / MakefileProto.LINUX.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
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
7
8 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 INSTALL = @INSTALL@
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
14
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.
20
21 # System specific build commands and flags
22 DEFINES= -D_REENTRANT -DKERNEL -DUKERNEL
23 KOPTS=
24 SYS_NAME=@AFS_SYSNAME@
25 ifeq (${SYS_NAME}, ppc64_linux26)
26 CFLAGS=-fPIC
27 else
28 CFLAGS=
29 endif
30 CFLAGS+= -I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG} $(XCFLAGS)
31 OPTF=-O
32 # WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
33
34 TEST_CFLAGS=-pthread -D_REENTRANT -DAFS_PTHREAD_ENV -DAFS_LINUX22_ENV
35 TEST_LDFLAGS=
36 TEST_LIBS=-lpthread @LIB_crypt@
37
38 LIBUAFS = libuafs.a
39 LIBJUAFS = libjuafs.a
40 LIBAFSWEB = nsafs.so
41 LIBAFSWEBKRB = nsafs.krb.so
42
43 include Makefile.common
44
45 $(LIBUAFS): $(UAFSOBJ)
46         -$(RM) -f $(LIBUAFS)
47         $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
48
49 $(LIBJUAFS): $(JUAFSOBJ)
50         -$(RM) -f $(LIBJUAFS)
51         $(AR) $(ARFLAGS) $(LIBJUAFS) $(JUAFSOBJ)
52
53 $(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
54         -$(RM) -f $(LIBAFSWEB)
55         ld -b $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
56
57 $(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a
58         -$(RM) -f $(LIBAFSWEBKRB)
59         ld -b $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)
60
61
62
63
64
65