diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 352 |
1 files changed, 352 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 000000000000..7e7082decf0b --- /dev/null +++ b/Makefile.am @@ -0,0 +1,352 @@ +## Process this file with automake to produce Makefile.in + +# Package: am-utils +# Level: Top level Makefile +# Author: Erez Zadok + +@SET_MAKE@ + +ACLOCAL_AMFLAGS = -I m4/macros + +SUBDIRS = \ + libamu \ + amd \ + amq \ + \ + fixmount \ + fsinfo \ + hlfsd \ + mk-amd-map \ + wire-test \ + \ + scripts \ + doc + +# temporary tests override SUBDIRS +#SUBDIRS = lib wire-test amq amd + +# additional files to add to the distribution tar file +# m4/aclocal +EXTRA_DIST_M4 = \ + vers.m4 \ + \ + m4/GNUmakefile \ + m4/amdgrep \ + m4/amindent \ + m4/autopat \ + m4/chop-aclocal.pl \ + m4/copy-if-newbig \ + m4/mk-aclocal \ + m4/mkconf \ + m4/rmtspc \ + m4/update_build_version \ + \ + m4/macros/HEADER \ + m4/macros/TRAILER \ + m4/macros/c_void_p.m4 \ + m4/macros/cache_check_dynamic.m4 \ + m4/macros/check_amu_fs.m4 \ + m4/macros/check_autofs_style.m4 \ + m4/macros/check_checkmount_style.m4 \ + m4/macros/check_extern.m4 \ + m4/macros/check_extern_ldap.m4 \ + m4/macros/check_fhandle.m4 \ + m4/macros/check_field.m4 \ + m4/macros/check_fs_headers.m4 \ + m4/macros/check_fs_mntent.m4 \ + m4/macros/check_gnu_getopt.m4 \ + m4/macros/check_hide_mount_type.m4 \ + m4/macros/check_lib2.m4 \ + m4/macros/check_libwrap_severity.m4 \ + m4/macros/check_map_funcs.m4 \ + m4/macros/check_mnt2_cdfs_opt.m4 \ + m4/macros/check_mnt2_gen_opt.m4 \ + m4/macros/check_mnt2_nfs_opt.m4 \ + m4/macros/check_mnt2_pcfs_opt.m4 \ + m4/macros/check_mnt2_udf_opt.m4 \ + m4/macros/check_mnttab_file_name.m4 \ + m4/macros/check_mnttab_location.m4 \ + m4/macros/check_mnttab_opt.m4 \ + m4/macros/check_mnttab_style.m4 \ + m4/macros/check_mnttab_type.m4 \ + m4/macros/check_mount_style.m4 \ + m4/macros/check_mount_trap.m4 \ + m4/macros/check_mount_type.m4 \ + m4/macros/check_mtype_printf_type.m4 \ + m4/macros/check_mtype_type.m4 \ + m4/macros/check_network_transport_type.m4 \ + m4/macros/check_nfs_fh_dref.m4 \ + m4/macros/check_nfs_hn_dref.m4 \ + m4/macros/check_nfs_prot_headers.m4 \ + m4/macros/check_nfs_sa_dref.m4 \ + m4/macros/check_nfs_socket_connection.m4 \ + m4/macros/check_os_libs.m4 \ + m4/macros/check_restartable_signal_handler.m4 \ + m4/macros/check_umount_style.m4 \ + m4/macros/check_unmount_args.m4 \ + m4/macros/check_unmount_call.m4 \ + m4/macros/check_varargs_macros.m4 \ + m4/macros/expand_cpp_hex.m4 \ + m4/macros/expand_cpp_int.m4 \ + m4/macros/expand_cpp_string.m4 \ + m4/macros/expand_run_string.m4 \ + m4/macros/extern_optarg.m4 \ + m4/macros/extern_sys_errlist.m4 \ + m4/macros/field_mntent_t_mnt_time_string.m4 \ + m4/macros/func_bad_hasmntopt.m4 \ + m4/macros/func_bad_memcmp.m4 \ + m4/macros/func_bad_yp_all.m4 \ + m4/macros/header_templates.m4 \ + m4/macros/host_macros.m4 \ + m4/macros/libtool.m4 \ + m4/macros/linux_headers.m4 \ + m4/macros/localconfig.m4 \ + m4/macros/mount_headers.m4 \ + m4/macros/opt_amu_cflags.m4 \ + m4/macros/opt_cppflags.m4 \ + m4/macros/opt_debug.m4 \ + m4/macros/opt_ldflags.m4 \ + m4/macros/opt_libs.m4 \ + m4/macros/os_cflags.m4 \ + m4/macros/os_cppflags.m4 \ + m4/macros/os_ldflags.m4 \ + m4/macros/package_bugreport.m4 \ + m4/macros/package_name.m4 \ + m4/macros/package_version.m4 \ + m4/macros/prog_lex.m4 \ + m4/macros/prog_yacc.m4 \ + m4/macros/save_state.m4 \ + m4/macros/struct_field_nfs_fh.m4 \ + m4/macros/struct_mntent.m4 \ + m4/macros/struct_mnttab.m4 \ + m4/macros/struct_nfs_args.m4 \ + m4/macros/struct_nfs_fh.m4 \ + m4/macros/struct_nfs_fh3.m4 \ + m4/macros/struct_nfs_gfs_mount.m4 \ + m4/macros/try_compile_anyfs.m4 \ + m4/macros/try_compile_nfs.m4 \ + m4/macros/try_compile_rpc.m4 \ + m4/macros/type_auth_create_gidlist.m4 \ + m4/macros/type_autofs_args.m4 \ + m4/macros/type_cachefs_args.m4 \ + m4/macros/type_cdfs_args.m4 \ + m4/macros/type_udf_args.m4 \ + m4/macros/type_efs_args.m4 \ + m4/macros/type_lofs_args.m4 \ + m4/macros/type_mfs_args.m4 \ + m4/macros/type_pcfs_args.m4 \ + m4/macros/type_pte_t.m4 \ + m4/macros/type_recvfrom_fromlen.m4 \ + m4/macros/type_rfs_args.m4 \ + m4/macros/type_rpcvers_t.m4 \ + m4/macros/type_svc_in_arg.m4 \ + m4/macros/type_time_t.m4 \ + m4/macros/type_tmpfs_args.m4 \ + m4/macros/type_ufs_args.m4 \ + m4/macros/type_xdrproc_t.m4 \ + m4/macros/type_xfs_args.m4 \ + m4/macros/type_yp_order_outorder.m4 \ + m4/macros/with_addon.m4 + +EXTRA_DIST_CONF = \ + conf/autofs/autofs_default.h \ + conf/autofs/autofs_default.c \ + conf/autofs/autofs_linux.h \ + conf/autofs/autofs_linux.c \ + conf/autofs/autofs_solaris_v1.h \ + conf/autofs/autofs_solaris_v1.c \ + conf/autofs/autofs_solaris_v2_v3.h \ + conf/autofs/autofs_solaris_v2_v3.c \ + \ + conf/checkmount/checkmount_aix.c \ + conf/checkmount/checkmount_bsd44.c \ + conf/checkmount/checkmount_default.c \ + conf/checkmount/checkmount_osf.c \ + conf/checkmount/checkmount_svr4.c \ + conf/checkmount/checkmount_ultrix.c \ + \ + conf/fh_dref/fh_dref_aix3.h \ + conf/fh_dref/fh_dref_aix42.h \ + conf/fh_dref/fh_dref_bsd44.h \ + conf/fh_dref/fh_dref_default.h \ + conf/fh_dref/fh_dref_freebsd22.h \ + conf/fh_dref/fh_dref_hpux.h \ + conf/fh_dref/fh_dref_irix.h \ + conf/fh_dref/fh_dref_isc3.h \ + conf/fh_dref/fh_dref_linux.h \ + conf/fh_dref/fh_dref_nextstep.h \ + conf/fh_dref/fh_dref_osf2.h \ + conf/fh_dref/fh_dref_osf4.h \ + conf/fh_dref/fh_dref_sunos3.h \ + conf/fh_dref/fh_dref_sunos4.h \ + conf/fh_dref/fh_dref_svr4.h \ + \ + conf/hn_dref/hn_dref_default.h \ + conf/hn_dref/hn_dref_isc3.h \ + conf/hn_dref/hn_dref_linux.h \ + \ + conf/mount/mount_aix.c \ + conf/mount/mount_aix3.c \ + conf/mount/mount_bsdi3.c \ + conf/mount/mount_default.c \ + conf/mount/mount_hpux.c \ + conf/mount/mount_irix5.c \ + conf/mount/mount_irix6.c \ + conf/mount/mount_isc3.c \ + conf/mount/mount_linux.c \ + conf/mount/mount_mach3.c \ + conf/mount/mount_stellix.c \ + conf/mount/mount_svr4.c \ + \ + conf/mtab/mtab_aix.c \ + conf/mtab/mtab_bsd.c \ + conf/mtab/mtab_file.c \ + conf/mtab/mtab_isc3.c \ + conf/mtab/mtab_linux.c \ + conf/mtab/mtab_mach3.c \ + conf/mtab/mtab_osf.c \ + conf/mtab/mtab_svr4.c \ + conf/mtab/mtab_ultrix.c \ + \ + conf/nfs_prot/nfs_prot_aix3.h \ + conf/nfs_prot/nfs_prot_aix4.h \ + conf/nfs_prot/nfs_prot_aix4_2.h \ + conf/nfs_prot/nfs_prot_aix4_3.h \ + conf/nfs_prot/nfs_prot_aix5_1.h \ + conf/nfs_prot/nfs_prot_aix5_2.h \ + conf/nfs_prot/nfs_prot_bsdi2.h \ + conf/nfs_prot/nfs_prot_bsdi3.h \ + conf/nfs_prot/nfs_prot_darwin.h \ + conf/nfs_prot/nfs_prot_default.h \ + conf/nfs_prot/nfs_prot_freebsd2.h \ + conf/nfs_prot/nfs_prot_freebsd3.h \ + conf/nfs_prot/nfs_prot_hpux.h \ + conf/nfs_prot/nfs_prot_hpux11.h \ + conf/nfs_prot/nfs_prot_irix5.h \ + conf/nfs_prot/nfs_prot_irix6.h \ + conf/nfs_prot/nfs_prot_linux.h \ + conf/nfs_prot/nfs_prot_ncr2.h \ + conf/nfs_prot/nfs_prot_nextstep.h \ + conf/nfs_prot/nfs_prot_netbsd.h \ + conf/nfs_prot/nfs_prot_netbsd1_3.h \ + conf/nfs_prot/nfs_prot_netbsd1_4.h \ + conf/nfs_prot/nfs_prot_openbsd.h \ + conf/nfs_prot/nfs_prot_osf2.h \ + conf/nfs_prot/nfs_prot_osf4.h \ + conf/nfs_prot/nfs_prot_osf5.h \ + conf/nfs_prot/nfs_prot_sunos3.h \ + conf/nfs_prot/nfs_prot_sunos4.h \ + conf/nfs_prot/nfs_prot_sunos5_3.h \ + conf/nfs_prot/nfs_prot_sunos5_4.h \ + conf/nfs_prot/nfs_prot_sunos5_5.h \ + conf/nfs_prot/nfs_prot_sunos5_6.h \ + conf/nfs_prot/nfs_prot_sunos5_7.h \ + conf/nfs_prot/nfs_prot_sunos5_8.h \ + conf/nfs_prot/nfs_prot_svr4.h \ + conf/nfs_prot/nfs_prot_ultrix.h \ + \ + conf/sa_dref/sa_dref_386bsd.h \ + conf/sa_dref/sa_dref_aix3.h \ + conf/sa_dref/sa_dref_aoi.h \ + conf/sa_dref/sa_dref_bsd44.h \ + conf/sa_dref/sa_dref_default.h \ + conf/sa_dref/sa_dref_isc3.h \ + conf/sa_dref/sa_dref_linux.h \ + conf/sa_dref/sa_dref_svr4.h \ + \ + conf/transp/transp_sockets.c \ + conf/transp/transp_tli.c \ + \ + conf/trap/trap_aix3.h \ + conf/trap/trap_aux.h \ + conf/trap/trap_default.h \ + conf/trap/trap_dgux.h \ + conf/trap/trap_hcx.h \ + conf/trap/trap_hpux.h \ + conf/trap/trap_irix.h \ + conf/trap/trap_isc3.h \ + conf/trap/trap_linux.h \ + conf/trap/trap_mach3.h \ + conf/trap/trap_netbsd.h \ + conf/trap/trap_news4.h \ + conf/trap/trap_rtu6.h \ + conf/trap/trap_stellix.h \ + conf/trap/trap_svr4.h \ + conf/trap/trap_ultrix.h \ + \ + conf/umount/umount_aix.c \ + conf/umount/umount_bsd44.c \ + conf/umount/umount_default.c \ + conf/umount/umount_linux.c \ + conf/umount/umount_osf.c + +EXTRA_DIST_INCLUDE = \ + include/am_compat.h \ + include/am_utils.h \ + include/am_xdr_func.h \ + include/am_defs.h \ + include/amq_defs.h \ + include/mount_headers1.h \ + include/mount_headers2.h \ + include/nfs_common.h + +EXTRA_DIST = \ + $(EXTRA_DIST_M4) \ + $(EXTRA_DIST_CONF) \ + $(EXTRA_DIST_INCLUDE) \ + \ + BUGS \ + FAQ \ + LSM.am-utils \ + MIRRORS.txt \ + MIRRORS.html \ + README.attrcache \ + README.autofs \ + README.ldap \ + README.osx \ + README.sun2amd \ + README.y2k \ + bootstrap \ + buildall \ + config.guess.long \ + depcomp \ + ldap.schema \ + ldap-id.ms \ + ldap-id.txt \ + stamp-h.in \ + tasks \ + ylwrap.amd + +DISTCLEANFILES = amu_nfs_prot.h amu_autofs_prot.h config.cache.old dbgcf.h +CLEANFILES = dbgcf.h + +############################################################################## +# Personal maintainer rules by Erez Zadok + +# update possibly new versions of autoconf/automake/libtool files +update: + (cd $(top_srcdir) && ${MAKE} ${MFLAGS} -f ./m4/GNUmakefile update) + ${MAKE} ${MFLAGS} libtool + +# remake libtool +libtool: $(LIBTOOL_DEPS) + $(SHELL) ./config.status --recheck + +# make a snapshots and put them in the ftp snapshots directory +FTPTOP=/var/ftp/pub/am-utils +snapshot: dist install-snapshot +install-snapshot: + snap=`/bin/ls -1 am-utils*.tar.gz` && \ + echo COPYING SNAPSHOTS: $$snap && \ + cp -pu $$snap $(FTPTOP)/snapshots && \ + rm -f $(FTPTOP)/am-utils-6.1-snapshot.tar.gz && \ + ln -s snapshots/$$snap $(FTPTOP)/am-utils-6.1-snapshot.tar.gz && \ + (cd $(FTPTOP) && ${MAKE} ${MFLAGS}) && \ + (cd $(FTPTOP)/snapshots && ${MAKE} ${MFLAGS}) +test-snapshot: dist + mv -f am-utils*.tar.gz /var/ftp/private/ezk + +# dist hook: change directory modes so they are not world writable +dist-hook: + @echo "Protecting distribution directories..." + chmod -R go-w $(distdir) |