1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
dnl $Id: Makefile.am.m4,v 1.25 2006/05/30 00:00:20 dm Exp $
dnl
dnl Process this file with GNU m4 to get Makefile.am.
dnl (Using m4 greatly simplifies the rules for autogenerated RPC files.)
dnl
## Process this file with automake to produce Makefile.in
## Do not edit this file directly. It is generated from Makefile.am.m4
ARPCGEN = $(top_builddir)/arpcgen/arpcgen
SVCDIR = $(top_srcdir)/svc
if USE_AUTH_HELPER
AUTH_HELPER = auth_helper
endif
lib_LIBRARIES = libsfs.a
sfsexec_PROGRAMS = pathinfo suidconnect $(AUTH_HELPER)
noinst_PROGRAMS = tst
dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl
dnl dnl
dnl MACROS FOR AUTOGENERATED RPC FILES dnl
dnl dnl
dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl
define(`rpcmk_headers',)dnl
define(`rpcmk_sources',)dnl
define(`rpcmk_built', `rpcmk_headers rpcmk_sources')dnl
define(`rpcmk',
changequote([[, ]])dnl
[[dnl
define(`rpcmk_headers', rpcmk_headers $1.h)dnl
define(`rpcmk_sources', rpcmk_sources $1.c)dnl
$1.h: $(SVCDIR)/$1.x
@rm -f $`'@
-$(ARPCGEN) -r sfs-internal.h -h $(SVCDIR)/$1.x -o `$'@ || rm -f $`'@
$1.c: $(SVCDIR)/$1.x
@rm -f $`'@
-$(ARPCGEN) -c $(SVCDIR)/$1.x -o `$'@ || rm -f $`'@
$1.o: $1.c $1.h
$(COMPILE) -c @NW@ $1.c
]]changequote)dnl
dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl
dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl dnl
rpcmk(nfs3_prot)
rpcmk(nfs3exp_prot)
rpcmk(sfs_prot)
dnl rpcmk(sfsro_prot)
rpcmk(sfsagent)
rpcmk(auth_helper_prot)
nfs3_prot.o: nfs3exp_prot.h
$(DEP_FILES): rpcmk_headers
rwfd.c:
$(LN_S) $(top_srcdir)/async/rwfd.c rwfd.c
suidprotect.c:
$(LN_S) $(top_srcdir)/async/suidprotect.c suidprotect.c
authunixint.c:
$(LN_S) $(top_srcdir)/arpc/authunixint.c authunixint.c
EXTRA_DIST = Makefile.am.m4 .cvsignore \
auth_helper_common.c auth_helper_pam.c auth_helper_bsd.c
libsfs_a_SOURCES = rpcmk_sources \
rwfd.c suidprotect.c authunixint.c \
devcon.c hashtab.c sfsops.c sfspaths.c srpc.c xdr_misc.c suio.c
DEPEND_ON_MAKEFILE = devgetcon.o sfspaths.o
$(DEPEND_ON_MAKEFILE): Makefile
include_HEADERS = sfs.h
sfsinclude_HEADERS = sfs-internal.h auth_helper.h
noinst_HEADERS = hashtab.h queue.h suio.h xdr_suio.h
suidconnect_SOURCES = suidconnect.c
suidconnect_LDADD = libsfs.a
pathinfo_SOURCES = pathinfo.c
pathinfo_LDADD = libsfs.a
auth_helper_SOURCES = auth_helper.c auth_helper_common.c
auth_helper_LDADD = libsfs.a $(AUTH_HELPER_LIB)
# Ugh... this is the only way I could get automake to work
auth_helper.c: $(srcdir)/$(AUTH_HELPER_STYLE) Makefile
@rm -f $@
$(LN_S) $(srcdir)/$(AUTH_HELPER_STYLE) $@
tst_SOURCES = tst.c
tst_LDADD = libsfs.a
dist-hook:
cd $(distdir) && rm -f rwfd.c authunixint.c rpcmk_built
.PHONY: rpcclean
rpcclean:
rm -f rpcmk_built
install-exec-hook:
-chgrp @sfsgroup@ $(DESTDIR)$(sfsexecdir)/suidconnect \
&& chmod 2555 $(DESTDIR)$(sfsexecdir)/suidconnect
CLEANFILES = core *.core *~ *.rpo rpcmk_built \
authunixint.c rwfd.c auth_helper.c
MAINTAINERCLEANFILES = Makefile.in Makefile.am
$(srcdir)/Makefile.am: $(srcdir)/Makefile.am.m4
@rm -f $(srcdir)/Makefile.am~
$(M4) $(srcdir)/Makefile.am.m4 > $(srcdir)/Makefile.am~
mv -f $(srcdir)/Makefile.am~ $(srcdir)/Makefile.am
|