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 Solaris systems
11 include $(DESTDIR)../obj/config/Makefile.${SYS_NAME}
14 # OS specific object files:
29 # System specific build commands and flags
30 DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
33 #LORDER = /usr/ccs/bin/lorder
34 #CC = /opt/SUNWspro/bin/cc
35 KDEFS= -Dsun4c -DSUN4C_60 -DNFSCLIENT -DSYSACCT -DOLDSCSI -DVDDRV -D_KERNEL \
36 -DSYSV -dn ${ARCH_DEFS}
43 CFLAGS=-I. -I.. ${FSINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
45 # Name of directory to hold object files and libraries.
46 <all -sun4x_57 -sun4x_58>
49 KOBJ = MODLOAD32 MODLOAD64
52 # This tells Makefile.common to use it's single directory build target.
53 <all -sun4x_57 -sun4x_58>
54 COMPDIRS = single_compdir
57 COMPDIRS = solaris_compdirs
60 include Makefile.common
64 -rm -f h net netinet rpc ufs nfs machine sys inet
65 -ln -s /usr/include/sys h
66 -ln -s /usr/include/net net
67 -ln -s /usr/include/netinet netinet
68 -ln -s /usr/include/rpc rpc
69 -ln -s /usr/include/sys sys
70 -ln -s /usr/include/nfs nfs
71 -ln -s /usr/include/inet inet
72 -ln -s /usr/include/ufs ufs
73 for t in ${KOBJ} ; do \
74 echo Making directory: $$t; \
76 rm -f $$t/Makefile.common $$t/Makefile ; \
77 ln -s ../Makefile.common $$t/Makefile.common ; \
78 ln -s ../Makefile $$t/Makefile ;\
82 ## This is the target for a Solaris 7. Here we build both the 32 bit and
83 ## the 64 bit libafs in MODLOAD32 and MODLOAD64 directories respectively
87 for t in ${KOBJ} ; do \
88 echo Building directory: $$t ; \
91 ARCH_DEFS="${KDEFS_32}" ; \
94 ARCH_DEFS="${KDEFS_64}" ; \
100 $(MAKE) DESTDIR=${DESTDIR} libafs ; \
106 # Below this line are targets when in the COMMON directory:
108 LIBAFSNONFS = libafs.nonfs.o
110 <all -sun4x_57 -sun4x_58>
111 DEST_LIBAFS = ${DESTDIR}/root.client/usr/vice/etc/modload/${LIBAFS}
112 DEST_LIBAFSNONFS = ${DESTDIR}/root.client/usr/vice/etc/modload/${LIBAFSNONFS}
115 # libafs: $(DEST_LIBAFS) $(DEST_LIBAFSNONFS)
116 libafs: $(DEST_LIBAFSNONFS)
119 $(DEST_LIBAFS): $(LIBAFS)
122 $(DEST_LIBAFSNONFS): $(LIBAFSNONFS)
126 ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
128 $(LD) -r -o $@ $(AFSAOBJS) ${AFSNFSOBJS}
130 ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
132 $(LD) -r -o $@ $(AFSAOBJS) ${AFSNONFSOBJS}
135 MODLOADDIR = ${DESTDIR}root.client/usr/vice/etc/modload
137 libafs: ${LIBAFSNONFS}
138 ${INSTALL} -f ${LIBAFSNONFS} ${MODLOADDIR}/libafs${BITS}.nonfs.o
142 # Solaris specific objects
143 osi_groups.o: $(AFS)/osi_groups.c
145 osi_inode.o: $(AFS)/osi_inode.c
147 osi_file.o: $(AFS)/osi_file.c
149 osi_sleep.o: $(AFS)/osi_sleep.c
151 osi_vfsops_nfs.o: $(AFS)/osi_vfsops.c
152 $(CRULE1) -o osi_vfsops_nfs.o;
153 osi_vfsops.o: $(AFS)/osi_vfsops.c
154 $(CRULE1) -DAFS_NONFSTRANS;
155 osi_vm.o: $(AFS)/osi_vm.c
157 osi_vnodeops.o: $(AFS)/osi_vnodeops.c