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
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
16 # OS specific object files:
22 <sunx86_511 sun4x_511>
37 # System specific build commands and flags
38 DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
41 #LORDER = /usr/ccs/bin/lorder
42 #CC = /opt/SUNWspro/bin/cc
43 KDEFS= -D_KERNEL -DSYSV -dn ${ARCH_DEFS}
45 <sun4x_58 sun4x_59 sun4x_510 sun4x_511>
49 <sunx86_58 sunx86_59 sunx86_510 sunx86_511>
51 KDEFS_64 = -xarch=amd64 -xmodel=kernel
54 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
56 # Name of directory to hold object files and libraries.
57 <all -sun4x_510 sun4x_511>
58 KOBJ = MODLOAD32 MODLOAD64
62 # This tells Makefile.common to use it's single directory build target.
64 COMPDIRS = solaris_compdirs
65 INSTDIRS = solaris_instdirs
66 DESTDIRS = solaris_destdirs
68 include Makefile.common
72 -$(RM) -f h net netinet rpc ufs nfs machine sys inet
73 -ln -fs /usr/include/sys h
74 -ln -fs /usr/include/net net
75 -ln -fs /usr/include/netinet netinet
76 -ln -fs /usr/include/rpc rpc
77 -ln -fs /usr/include/sys sys
78 -ln -fs /usr/include/nfs nfs
79 -ln -fs /usr/include/inet inet
80 -ln -fs /usr/include/ufs ufs
81 for t in ${KOBJ} ; do \
82 echo Making directory: $$t; \
84 $(RM) -f $$t/Makefile.common $$t/Makefile $$t/config ; \
85 ln -fs ../Makefile.common $$t/Makefile.common ; \
86 ln -fs ../Makefile $$t/Makefile ;\
87 ln -fs ../config $$t/config ;\
91 ## This is the target for a Solaris 7. Here we build both the 32 bit and
92 ## the 64 bit libafs in MODLOAD32 and MODLOAD64 directories respectively
94 ${COMPDIRS} ${INSTDIRS} ${DESTDIRS}:
95 for t in ${KOBJ} ; do \
96 echo Building directory: $$t ; \
99 ARCH_DEFS="${KDEFS_32}" ; \
102 ARCH_DEFS="${KDEFS_64}" ; \
108 $(MAKE) $@_libafs || exit $$? ; \
112 solaris_compdirs_libafs: depsrcs libafs
113 solaris_instdirs_libafs: install_libafs
114 solaris_destdirs_libafs: dest_libafs
116 # Below this line are targets when in the COMMON directory:
118 LIBAFSNONFS = libafs.nonfs.o
120 INST_LIBAFSNONFS = ${DESTDIR}${afskerneldir}/libafs${BITS}.nonfs.o
121 INST_LIBAFS = ${DESTDIR}${afskerneldir}/libafs${BITS}.o
123 DEST_LIBAFSNONFS = ${DEST}/root.client/usr/vice/etc/modload/libafs${BITS}.nonfs.o
124 DEST_LIBAFS = ${DEST}/root.client/usr/vice/etc/modload/libafs${BITS}.o
126 # Without this line, gmake tries to build libafs.o
129 libafs: $(LIBAFSNONFS) $(LIBAFS)
131 install_libafs: $(LIBAFS) $(LIBAFSNONFS)
132 ${INSTALL} -d ${DESTDIR}${afskerneldir}
133 ${INSTALL} -m 644 $(LIBAFS) $(INST_LIBAFS)
134 ${INSTALL} -m 644 $(LIBAFSNONFS) $(INST_LIBAFSNONFS)
136 dest_libafs: $(LIBAFS) $(LIBAFSNONFS)
137 ${INSTALL} -d ${DEST}/root.client/usr/vice/etc/modload
138 ${INSTALL} -m 644 $(LIBAFS) $(DEST_LIBAFS)
139 ${INSTALL} -m 644 $(LIBAFSNONFS) $(DEST_LIBAFSNONFS)
141 ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
143 $(LD) -r -o $@ $(AFSAOBJS) ${AFSNFSOBJS}
145 ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
147 $(LD) -r -o $@ $(AFSAOBJS) ${AFSNONFSOBJS}