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
12 # OS specific object files:
28 HEADER_RT = @HEADER_RT@
30 # System specific build commands and flags
31 KDEFS=-DLANGUAGE_C -G 4 -I/usr/sys/include -I../include \
32 -I/usr/sys/${HEADER_RT} -I/usr/sys/BINARY \
33 -DDEC3000_500 -DSWAPTYPE=1 -DUERF -DOSF -DCOMPAT_43 -DMACH -DUFS \
34 -DRT -DKERNEL -D_KERNEL -signed -no_excpt -Wb,-static -Wco,-nofloat \
35 -Olimit 1000 -D__alpha -Umips -UMIPS
37 DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
40 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
43 # Name of directory to hold object files and libraries.
46 # This tells Makefile.common to use it's single directory build target.
47 COMPDIRS = single_compdir
48 INSTDIRS = single_instdir
49 DESTDIRS = single_destdir
51 include Makefile.common
55 -$(RM) $(KOBJ)/Makefile $(KOBJ)/Makefile.common $(KOBJ)/config
56 ln -fs ../Makefile $(KOBJ)/Makefile
57 ln -fs ../Makefile.common $(KOBJ)/Makefile.common
58 ln -fs ../config $(KOBJ)/config
59 -$(RM) -f h net netinet rpc ufs nfs machine sys vm
60 -ln -fs /usr/sys/include/net net
61 -ln -fs /usr/sys/include/machine machine
62 -ln -fs /usr/sys/include/netinet netinet
63 -ln -fs /usr/sys/include/nfs nfs
64 -ln -fs /usr/sys/include/rpc rpc
65 -ln -fs /usr/sys/include/sys sys
66 -ln -fs /usr/sys/include/ufs ufs
67 -ln -fs /usr/sys/include/sys h
68 -ln -fs /usr/sys/include/vm vm
69 -touch $(KOBJ)/sec_net.h
72 # Below this line are targets when in the COMMON directory:
74 LIBAFSNONFS = libafs.nonfs.o
77 INST_LIBAFS = ${DESTDIR}${afskerneldir}/${LIBAFS}
78 INST_LIBAFSNONFS = ${DESTDIR}${afskerneldir}/${LIBAFSNONFS}
79 INST_AFSMOD = ${DESTDIR}${afskerneldir}/${AFSMOD}
81 DEST_LIBAFS = ${DEST}/root.client/bin/${LIBAFS}
82 DEST_LIBAFSNONFS = ${DEST}/root.client/bin/${LIBAFSNONFS}
83 DEST_AFSMOD = ${DEST}/root.client/bin/${AFSMOD}
86 .PHONY: libafs install_libafs
87 libafs: ${LIBAFSNONFS} ${AFSMOD}
89 install_libafs: ${LIBAFSNONFS} ${AFSMOD}
90 ${INSTALL} -d ${DESTDIR}${afskerneldir}
91 $(INSTALL) -m 644 ${LIBAFSNONFS} ${INST_LIBAFSNONFS}
92 $(INSTALL) -m 644 ${AFSMOD} ${INST_AFSMOD}
94 dest_libafs: ${LIBAFSNONFS} ${AFSMOD}
95 ${INSTALL} -d ${DEST}/root.client/bin
96 $(INSTALL) -m 644 ${LIBAFSNONFS} ${DEST_LIBAFSNONFS}
97 $(INSTALL) -m 644 ${AFSMOD} ${DEST_AFSMOD}
99 ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
100 $(LD) -r -o ${LIBAFS} ${AFSAOBJS} ${AFSNFSOBJS}
102 ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
103 $(LD) -r -o ${LIBAFSNONFS} ${AFSAOBJS} ${AFSNONFSOBJS}
105 ${AFSMOD}: ${LIBAFSNONFS}
106 $(LD) -dc -r -o ${AFSMOD} ${LIBAFSNONFS}