1 ## Process this file with automake to produce Makefile.in 2 3 # Package: am-utils 4 # Level: Makefile for libamu/ directory 5 # Author: Erez Zadok 6 7 #noinst_LIBRARIES = libamu.a 8 lib_LTLIBRARIES = libamu.la 9 10 # headers this depends on, not to be installed 11 noinst_HEADERS = amu.h 12 13 # these sources must be included: 14 libamu_la_SOURCES = \ 15 misc_rpc.c \ 16 mount_fs.c \ 17 mtab.c \ 18 nfs_prot_xdr.c \ 19 strutil.c \ 20 wire.c \ 21 xdr_func.c \ 22 xutil.c 23 24 ## no need to list other optional sources because automake will add them 25 ## automatically. 26 ## XXX: must add the files after memcmp.c until automake 1.4+ is out 27 EXTRA_DIST = memcmp.c \ 28 clnt_sperrno.c \ 29 hasmntopt.c \ 30 strcasecmp.c \ 31 strerror.c \ 32 strlcat.c \ 33 strlcpy.c \ 34 strstr.c \ 35 ualarm.c 36 37 DISTCLEANFILES = mountutil.c mtabutil.c transputil.c umount_fs.c 38 39 # these may be added automatically by automake if needed: 40 # alloca.c 41 # clnt_sperrno.c 42 # hasmntopt.c 43 # memcmp.c (via AC_FUNC_MEMCMP) 44 # strcasecmp.c 45 # strerror.c 46 # strstr.c 47 # ualarm.c 48 # 49 # files optionally compiled: 50 # mountutil.c: mount utilities 51 # umount_fs.c: un-mount utilities 52 # 53 # files that are always compiled, but to a different path: 54 # mtabutil.c: mount table utilities 55 # transputil.c: transport (Sockets or TLI) utilities 56 BUILT_SOURCES = \ 57 mountutil.c \ 58 umount_fs.c \ 59 mtabutil.c \ 60 transputil.c 61 62 ## XXX: Use the next line when automake newer than 1.4 63 ## XXX: Instead of the two lines that follow. 64 ## libamu_la_LIBADD = @LTLIBOBJS@ @LTALLOCA@ 65 libamu_la_LIBADD = @AMU_LIB_OBJS@ 66 libamu_la_DEPENDENCIES = @AMU_LIB_OBJS@ 67 68 69 # LDFLAGS should include standard ones plus LIBTOOL ones 70 AM_LDFLAGS = @LDFLAGS@ @LIBTOOL_LDFLAGS@ 71 72 AM_CPPFLAGS = -I$(top_srcdir)/include 73 74 # allow users to add their own flags via "configure --enable-am-flags=ARG" 75 AMU_CFLAGS = @AMU_CFLAGS@ 76 AM_CFLAGS = $(AMU_CFLAGS) 77 78 # dependencies 79 $(libamu_la_OBJECTS) $(libamu_la_LIBADD): \ 80 ../config.h \ 81 ../aux_conf.h \ 82 $(top_srcdir)/include/am_compat.h \ 83 $(top_srcdir)/include/am_defs.h \ 84 $(top_srcdir)/include/am_utils.h \ 85 $(top_srcdir)/include/am_xdr_func.h \ 86 $(top_srcdir)/include/amq_defs.h \ 87 @AMU_NFS_PROT_HEADER@ \ 88 $(noinst_HEADERS) 89