Unix CM: Add xdrmem and xdrlen to kernel builds
[openafs.git] / src / libuafs / MakefileProto.HPUX.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 # System specific build commands and flags
16 CC = /opt/ansic/bin/cc
17 DEFINES= -D_REENTRANT -DKERNEL -DUKERNEL
18 <hp_ux102 hp_ux110 hp_ux11i>
19 KOPTS=-Wp,-H200000 -Wl,-a,archive +DA1.0 +z
20 <ia64_hpux1122 ia64_hpux1123>
21 KOPTS=-Wp,-H200000 -Wl,-a,archive_shared
22 <all>
23 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG}
24 OPTF=-O
25 WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
26
27 <hp_ux102 hp_ux110 hp_ux11i>
28 TEST_CFLAGS= -Wp,-H200000 +DA1.0 +z -D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV -Dhpux -DAFS_HPUX_ENV
29 <ia64_hpux1122 ia64_hpux1123>
30 TEST_CFLAGS= -Wp,-H200000 -D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV -Dhpux -DAFS_HPUX_ENV
31 <all>
32 TEST_LDFLAGS=
33 TEST_LIBS=-lnsl -lm -lpthread -ldld -lc
34
35 LIBUAFS = libuafs.a
36 LIBJUAFS = libjuafs.a
37 LIBAFSWEB = nsafs.so
38 LIBAFSWEBKRB = nsafs.krb.so
39
40 include Makefile.common
41
42 $(LIBUAFS): $(UAFSOBJ)
43         -$(RM) -f $(LIBUAFS)
44         $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
45
46 $(LIBJUAFS): $(JUAFSOBJ)
47         -$(RM) -f $(LIBJUAFS)
48         $(AR) $(ARFLAGS) $(LIBJUAFS) $(JUAFSOBJ)
49
50 $(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
51         -$(RM) -f $(LIBAFSWEB)
52         ld -b $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
53
54 $(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a
55         -$(RM) -f $(LIBAFSWEBKRB)
56         ld -b $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)