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
8 # MakefileProto for HP-UX systems
12 TOP_SRCDIR=@TOP_SRCDIR@
13 TOP_INCDIR=@TOP_INCDIR@
14 TOP_LIBDIR=@TOP_LIBDIR@
16 exec_prefix=@exec_prefix@
19 libexecdir=@libexecdir@
21 includedir=@includedir@
23 afssrvbindir=@afssrvbindir@
24 afssrvsbindir=@afssrvsbindir@
25 afssrvlibexecdir=@afssrvlibexecdir@
26 SYS_NAME=@AFS_SYSNAME@
28 include ../config/Makefile.${SYS_NAME}
30 # System specific build commands and flags
31 CC = /opt/ansic/bin/cc
32 DEFINES= -D_REENTRANT -DAFSDEBUG -DKERNEL -DUKERNEL -DAFS -DVICE
33 KOPTS=-Wp,-H200000 -Wl,-a,archive +DA1.0 +z
34 CFLAGS=-I. -I.. -I${TOP_SRCDIR}/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG}
36 WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
38 TEST_CFLAGS= -Wp,-H200000 +DA1.0 +z -D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV -Dhpux -DAFS_HPUX_ENV
40 TEST_LIBS=-lnsl -lm -lpthread -ldld -lc
44 LIBAFSWEBKRB = nsafs.krb.so
46 include Makefile.common
49 -$(RM) -f h net netinet rpc ufs nfs machine sys inet nsapi
50 -ln -s /usr/include/sys h
51 -ln -s /usr/include/net net
52 -ln -s /usr/include/netinet netinet
53 -ln -s /usr/include/rpc rpc
54 -ln -s /usr/include/sys sys
55 -ln -s /usr/include/nfs nfs
56 -ln -s /usr/include/inet inet
57 -ln -s /usr/include/ufs ufs
58 -ln -s $(NS_INCL) nsapi
60 setup_uafs: UAFS setup_common
61 -$(RM) -f UAFS/Makefile UAFS/Makefile.common
62 ln -s ../Makefile UAFS/Makefile
63 ln -s ../Makefile.common UAFS/Makefile.common
68 setup_nsafs: AFSWEB setup_common
69 -$(RM) -f AFSWEB/Makefile AFSWEB/Makefile.common
70 ln -s ../Makefile AFSWEB/Makefile
71 ln -s ../Makefile.common AFSWEB/Makefile.common
76 UAFS/$(LIBUAFS): setup_uafs
80 AFSWEB/$(LIBAFSWEB): setup_nsafs
84 AFSWEB/$(LIBAFSWEBKRB): setup_nsafs
86 $(MAKE) $(LIBAFSWEBKRB)
88 # Below this line are targets when in the COMMON directory:
90 $(LIBUAFS): $(UAFSOBJ)
92 $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
94 $(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
95 -$(RM) -f $(LIBAFSWEB)
96 ld -b $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
98 $(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a
99 -$(RM) -f $(LIBAFSWEBKRB)
100 ld -b $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)