# MakefileProto for HP systems
#
-DESTDIR=@DESTDIR@
-SRCDIR=@SRCDIR@
+DEST=@DEST@
+TOP_INCDIR=@TOP_INCDIR@
+TOP_LIBDIR=@TOP_LIBDIR@
TOP_SRCDIR=@TOP_SRCDIR@
+TOP_OBJDIR=@TOP_OBJDIR@
+srcdir=@srcdir@
+VPATH=${srcdir}
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+bindir=@bindir@
+sbindir=@sbindir@
+libexecdir=@libexecdir@
+libdir=@libdir@
+includedir=@includedir@
+mandir=@mandir@
+afssrvbindir=@afssrvbindir@
+afssrvsbindir=@afssrvsbindir@
+afssrvlibexecdir=@afssrvlibexecdir@
+afskerneldir=@afskerneldir@
SYS_NAME=@AFS_SYSNAME@
include config/Makefile.${SYS_NAME}
DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT -DHPONCPLUS
OPTF=${OPT}
OPTF2=${OPT2}
-CFLAGS=-I. -I.. -I../h -I../nfs -I${TOP_SRCDIR}/config ${FSINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
+CFLAGS=-I. -I.. -I../h -I../nfs -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
# Name of directory to hold object files and libraries.
KOBJ=STATIC
# This is the hpux multiple directory target.
COMPDIRS = hpux_compdirs
INSTDIRS = hpux_instdirs
+DESTDIRS = hpux_destdirs
include Makefile.common
BITS = 64 32
setup:
- -rm -f h net dux machine netinet nfs rpc s200 ufs sys
- ln -s /usr/include/sys h
- ln -s /etc/conf/net net
- ln -s /etc/conf/dux dux
- ln -s /etc/conf/machine machine
- ln -s /etc/conf/netinet netinet
- ln -s /etc/conf/nfs nfs
- ln -s /usr/include/rpc rpc
- ln -s /etc/conf/machine s200
- ln -s /etc/conf/ufs ufs
- ln -s /usr/include/sys sys
+ -$(RM) -f h net dux machine netinet nfs rpc s200 ufs sys
+ ln -fs /usr/include/sys h
+ ln -fs /etc/conf/net net
+ ln -fs /etc/conf/dux dux
+ ln -fs /etc/conf/machine machine
+ ln -fs /etc/conf/netinet netinet
+ ln -fs /etc/conf/nfs nfs
+ ln -fs /usr/include/rpc rpc
+ ln -fs /etc/conf/machine s200
+ ln -fs /etc/conf/ufs ufs
+ ln -fs /usr/include/sys sys
for b in $(BITS); do \
for t in $(KOBJ); do \
dir=$$t.$$b; \
echo Making directory: $$dir; \
mkdir -p $$dir; \
- rm -f $$dir/Makefile $$dir/Makefile.common $$dir/config; \
- ln -s ../Makefile $$dir/Makefile; \
- ln -s ../Makefile.common $$dir/Makefile.common; \
- ln -s ../config $$dir/config; \
+ $(RM) -f $$dir/Makefile $$dir/Makefile.common $$dir/config; \
+ ln -fs ../Makefile $$dir/Makefile; \
+ ln -fs ../Makefile.common $$dir/Makefile.common; \
+ ln -fs ../config $$dir/config; \
done; \
done
echo Setup complete.
# Compile the clients.
-${COMPDIRS} ${INSTDIRS}:
+${COMPDIRS} ${INSTDIRS} ${DESTDIRS}:
if false; then \
for b in $(BITS); do \
for t in $(KOBJ); do \
hpux_compdirs_libafs: libafs
hpux_instdirs_libafs: install_libafs
+hpux_destdirs_libafs: dest_libafs
# Below this line are targets when in the static directory:
LIBAFS = libafs$(BITSUFFIX).a
LIBAFSNONFS = libafs$(BITSUFFIX).nonfs.a
+INST_LIBAFS = ${DESTDIR}${afskerneldir}/${LIBAFS}
+INST_LIBAFSNONFS = ${DESTDIR}${afskerneldir}/${LIBAFSNONFS}
-DEST_LIBAFS = ${DESTDIR}root.client/bin/${LIBAFS}
-DEST_LIBAFSNONFS = ${DESTDIR}root.client/bin/${LIBAFSNONFS}
+DEST_LIBAFS = ${DEST}/root.client/bin/${LIBAFS}
+DEST_LIBAFSNONFS = ${DEST}/root.client/bin/${LIBAFSNONFS}
-# libafs: ${DEST_LIBAFS} ${DEST_LIBAFSNONFS}
libafs: ${LIBAFSNONFS}
-install_libafs: ${DEST_LIBAFSNONFS}
+install_libafs: ${INST_LIBAFSNONFS}
+dest_libafs: ${DEST_LIBAFSNONFS}
+
+$(INST_LIBAFS): $(LIBAFS)
+ ${INSTALL} -f $? $@
+
+$(INST_LIBAFSNONFS): $(LIBAFSNONFS)
+ ${INSTALL} -f $? $@
$(DEST_LIBAFS): $(LIBAFS)
${INSTALL} -f $? $@