darwin-x86-and-leopard-20060309
[openafs.git] / src / afsd / Makefile.in
1 ##XLATE_MANUAL##
2 # Copyright 2000, International Business Machines Corporation and others.
3 # All Rights Reserved.
4
5 # This software has been released under the terms of the IBM Public
6 # License.  For details, see the LICENSE file in the top-level source
7 # directory or online at http://www.openafs.org/dl/license10.html
8
9 srcdir=@srcdir@
10 include @TOP_OBJDIR@/src/config/Makefile.config
11
12 LDFLAGS = ${XLDFLAGS} ${ARCHFLAGS}
13
14 #
15 # What to make
16 #
17 all: afsd vsys
18
19 #
20 # Programs
21 #
22
23 AFSLIBS=${TOP_LIBDIR}/libauth.a ${TOP_LIBDIR}/libcmd.a ${TOP_LIBDIR}/libsys.a ${TOP_LIBDIR}/util.a ${TOP_LIBDIR}/librx.a ${TOP_LIBDIR}/liblwp.a ${TOP_LIBDIR}/util.a
24
25 afsd: afsd.o $(AFSLIBS) $(AFSD_LIBS)
26         ${CC} ${CFLAGS} -o afsd afsd.o $(NON_SHARED) $(LDFLAGS) $(AFSD_LDFLAGS) $(AFSLIBS) ${XLIBS} ${AFSD_LIBS}
27
28 vsys: vsys.o
29         ${CC} ${CFLAGS} -o vsys vsys.o ${TOP_LIBDIR}/libsys.a $(LDFLAGS) ${XLIBS}
30
31 #
32 # Objects
33 #
34 afsd.o: afsd.c AFS_component_version_number.c
35
36 vsys.o: vsys.c AFS_component_version_number.c
37
38 clean:
39         $(RM) -f *.o vsys afsd core AFS_component_version_number.c
40
41 system: install
42
43 # XXX-INST: where to put the rc scripts?
44 install: ${DESTDIR}${sbindir}/afsd ${DESTDIR}${sbindir}/vsys
45
46 ${DESTDIR}${sbindir}/afsd: afsd
47         ${INSTALL} $? $@
48
49 ${DESTDIR}${sbindir}/vsys: vsys
50         ${INSTALL} $? $@
51
52
53 dest: ${DEST}/root.client/usr/vice/etc/afsd ${DEST}/etc/vsys
54         case ${SYS_NAME} in \
55                 rs_aix*)  \
56                         ${INSTALL} -f ${srcdir}/rc.afs.rs_aix ${DEST}/root.client/usr/vice/etc/dkload/rc.afs ; \
57                         ${INSTALL} -f ${srcdir}/rc.dkload.client.rs_aix ${DEST}/root.client/usr/vice/etc/dkload/rc.dkload.client ; \
58                         ${INSTALL} -f ${srcdir}/rc.dkload.server.rs_aix ${DEST}/root.client/usr/vice/etc/dkload/rc.dkload.server ;; \
59                 sgi_65 ) \
60                         ${INSTALL} -f ${srcdir}/afs.rc.sgi_ipnos ${DEST}/root.client/usr/vice/etc/sgiload/afs.rc ;\
61                         ${INSTALL} -f ${srcdir}/afs.rc.sgi_ipnos ${DEST}/root.server/etc/init.d/afs.rc ;;\
62                 sgi_* ) \
63                         ${INSTALL} -f ${srcdir}/afs.rc.sgi ${DEST}/root.client/usr/vice/etc/sgiload/afs.rc ;\
64                         ${INSTALL} -f ${srcdir}/afs.rc.sgi ${DEST}/root.server/etc/init.d/afs.rc ;\
65                         case ${SYS_NAME} in \
66                                 sgi_53 | sgi_61 ) \
67                                 ${INSTALL} -f ${srcdir}/afs_rtsymtab.pl.${SYS_NAME} ${DEST}/root.client/usr/vice/etc/sgiload/afs_rtsymtab.pl ;;\
68                         esac;; \
69                 sun4_52 | sun4_53 | sun4c_52 | sun4c_53 | sun4m_52 | sun4m_53 | sun4m_54 | sun4_54 | sun4c_54 | sunx86_54) \
70                         ${INSTALL} -f ${srcdir}/afs.rc.solaris ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\
71                 sun*_57 ) \
72                         ${INSTALL} -f ${srcdir}/afs.rc.solaris.2.7 ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\
73                 sun*_58 ) \
74                         ${INSTALL} -f ${srcdir}/afs.rc.solaris.2.8 ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\
75                 sun*_59 | sun*_510 ) \
76                         ${INSTALL} -f ${srcdir}/afs.rc.solaris.2.9 ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\
77                 sun4x_5? ) \
78                         ${INSTALL} -f ${srcdir}/afs.rc.solaris.2_5 ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\
79                 alpha_osf* ) \
80                         ${INSTALL} -f ${srcdir}/afs.rc.alpha ${DEST}/root.client/usr/vice/etc/dkload/afs.rc ;;\
81                 hp_ux1122 ) \
82                         ${INSTALL} -f ${srcdir}/afs.rc.hpux10 ${DEST}/root.client/usr/vice/etc/dkload/afs.rc ;\
83                         ${INSTALL} -f ${srcdir}/afs.hpux1122.driver ${DEST}/root.client/usr/vice/etc/afs.driver ;;\
84                 hp_ux10? | hp_ux11? ) \
85                         ${INSTALL} -f ${srcdir}/afs.rc.hpux10 ${DEST}/root.client/usr/vice/etc/dkload/afs.rc ;\
86                         ${INSTALL} -f ${srcdir}/afs.hpux102.driver ${DEST}/root.client/usr/vice/etc/afs.driver ;;\
87                 alpha_dux* ) \
88                         ${INSTALL} -f ${srcdir}/afs.rc.alpha_dux40 ${DEST}/root.client/usr/vice/etc/dkload/afs.rc ;;\
89                 hp?00_ux10? ) \
90                         ${INSTALL} -f ${srcdir}/afs.rc.hpux10 ${DEST}/root.client/usr/vice/etc/dkload/afs.rc ;;\
91                 *linux* ) \
92                         ${INSTALL} -f ${srcdir}/afs.rc.linux -m 755 ${DEST}/root.client/usr/vice/etc/afs.rc; \
93                         ${INSTALL} -f ${srcdir}/afs.conf.linux ${DEST}/root.client/usr/vice/etc/afs.conf ;; \
94                 *_darwin*) \
95                         ${INSTALL} -f ${srcdir}/afs.rc.darwin -m 755 ${DEST}/root.client/usr/vice/etc/afs.rc ; \
96                         ${INSTALL} -f ${srcdir}/afs.rc.darwin.plist ${DEST}/root.client/usr/vice/etc/StartupParameters.plist ;; \
97                 *fbsd*) \
98                         ${INSTALL} -f ${srcdir}/afs.rc.fbsd ${DEST}/root.client/usr/vice/etc/afs.rc.fbsd ;; \
99                 * )  \
100                         echo No rc scripts installed for ${SYS_NAME} ;; \
101         esac
102
103 ${DEST}/root.client/usr/vice/etc/afsd: afsd
104         ${INSTALL} $? $@
105
106 ${DEST}/etc/vsys: vsys
107         ${INSTALL} $? $@
108
109 include ../config/Makefile.version