"Fossies" - the Fresh Open Source Software Archive

Member "ntfs-3g_ntfsprogs-2017.3.23/ntfsprogs/Makefile.am" (23 Mar 2017, 5181 Bytes) of package /linux/misc/ntfs-3g_ntfsprogs-2017.3.23.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.am": 3g_ntfsprogs-2016.2.22_vs_3g_ntfsprogs-2017.3.23.

    1 if REALLYSTATIC
    2 AM_LIBS		= $(top_builddir)/libntfs-3g/.libs/libntfs-3g.a $(NTFSPROGS_STATIC_LIBS)
    3 # older builds may need -static instead of newer -all-static
    4 AM_LFLAGS	= -static
    5 STATIC_LINK     = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
    6 else
    7 AM_LIBS		= $(top_builddir)/libntfs-3g/libntfs-3g.la
    8 AM_LFLAGS	= $(all_libraries)
    9 LIBTOOL_LINK    = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
   10 endif
   11 
   12 # Workaround to make REALLYSTATIC work with automake 1.5.
   13 LINK=$(STATIC_LINK) $(LIBTOOL_LINK)
   14 
   15 if ENABLE_NTFSPROGS
   16 
   17 bin_PROGRAMS		= ntfsfix ntfsinfo ntfscluster ntfsls ntfscat ntfscmp
   18 sbin_PROGRAMS		= mkntfs ntfslabel ntfsundelete ntfsresize ntfsclone \
   19 			  ntfscp
   20 EXTRA_PROGRAM_NAMES	= ntfswipe ntfstruncate ntfsrecover \
   21 			  ntfsusermap ntfssecaudit
   22 
   23 QUARANTINED_PROGRAM_NAMES = ntfsdump_logfile ntfsmftalloc ntfsmove ntfsck \
   24 			   ntfsfallocate
   25 
   26 man_MANS		= mkntfs.8 ntfsfix.8 ntfslabel.8 ntfsinfo.8 \
   27 			  ntfsundelete.8 ntfsresize.8 ntfsprogs.8 ntfsls.8 \
   28 			  ntfsclone.8 ntfscluster.8 ntfscat.8 ntfscp.8 \
   29 			  ntfscmp.8 ntfswipe.8 ntfstruncate.8 \
   30 			  ntfsdecrypt.8 ntfsfallocate.8 ntfsrecover.8 \
   31 			  ntfsusermap.8 ntfssecaudit.8
   32 EXTRA_MANS		=
   33 
   34 CLEANFILES		= $(EXTRA_PROGRAMS)
   35 
   36 MAINTAINERCLEANFILES = Makefile.in
   37 
   38 if ENABLE_CRYPTO
   39 EXTRA_PROGRAM_NAMES	+= ntfsdecrypt
   40 endif
   41 
   42 if ENABLE_EXTRAS
   43 bin_PROGRAMS		+= $(EXTRA_PROGRAM_NAMES)
   44 if ENABLE_QUARANTINED
   45 bin_PROGRAMS		+= $(QUARANTINED_PROGRAM_NAMES)
   46 endif
   47 else
   48 EXTRA_PROGRAMS		= $(EXTRA_PROGRAM_NAMES)
   49 endif
   50 
   51 # Set the include path.
   52 AM_CPPFLAGS		= -I$(top_srcdir)/include/ntfs-3g $(all_includes)
   53 
   54 ntfsfix_SOURCES		= ntfsfix.c utils.c utils.h
   55 ntfsfix_LDADD		= $(AM_LIBS)
   56 ntfsfix_LDFLAGS		= $(AM_LFLAGS)
   57 
   58 mkntfs_CPPFLAGS		= $(AM_CPPFLAGS) $(MKNTFS_CPPFLAGS)
   59 mkntfs_SOURCES		= attrdef.c attrdef.h boot.c boot.h sd.c sd.h mkntfs.c utils.c utils.h
   60 mkntfs_LDADD		= $(AM_LIBS) $(MKNTFS_LIBS)
   61 mkntfs_LDFLAGS		= $(AM_LFLAGS)
   62 
   63 ntfslabel_SOURCES	= ntfslabel.c utils.c utils.h
   64 ntfslabel_LDADD		= $(AM_LIBS)
   65 ntfslabel_LDFLAGS	= $(AM_LFLAGS)
   66 
   67 ntfsinfo_SOURCES	= ntfsinfo.c utils.c utils.h
   68 ntfsinfo_LDADD		= $(AM_LIBS)
   69 ntfsinfo_LDFLAGS	= $(AM_LFLAGS)
   70 
   71 ntfsundelete_SOURCES	= ntfsundelete.c ntfsundelete.h utils.c utils.h list.h
   72 ntfsundelete_LDADD	= $(AM_LIBS)
   73 ntfsundelete_LDFLAGS	= $(AM_LFLAGS)
   74 
   75 ntfsresize_SOURCES	= ntfsresize.c utils.c utils.h
   76 ntfsresize_LDADD	= $(AM_LIBS)
   77 ntfsresize_LDFLAGS	= $(AM_LFLAGS)
   78 
   79 ntfsclone_SOURCES	= ntfsclone.c utils.c utils.h
   80 ntfsclone_LDADD		= $(AM_LIBS)
   81 ntfsclone_LDFLAGS	= $(AM_LFLAGS)
   82 
   83 ntfscluster_SOURCES	= ntfscluster.c ntfscluster.h cluster.c cluster.h utils.c utils.h
   84 ntfscluster_LDADD	= $(AM_LIBS)
   85 ntfscluster_LDFLAGS	= $(AM_LFLAGS)
   86 
   87 ntfsls_SOURCES		= ntfsls.c utils.c utils.h list.h
   88 ntfsls_LDADD		= $(AM_LIBS)
   89 ntfsls_LDFLAGS		= $(AM_LFLAGS)
   90 
   91 ntfscat_SOURCES		= ntfscat.c ntfscat.h utils.c utils.h
   92 ntfscat_LDADD		= $(AM_LIBS)
   93 ntfscat_LDFLAGS		= $(AM_LFLAGS)
   94 
   95 ntfscp_SOURCES		= ntfscp.c utils.c utils.h
   96 ntfscp_LDADD		= $(AM_LIBS)
   97 ntfscp_LDFLAGS		= $(AM_LFLAGS)
   98 
   99 ntfsck_SOURCES		= ntfsck.c utils.c utils.h
  100 ntfsck_LDADD		= $(AM_LIBS)
  101 ntfsck_LDFLAGS		= $(AM_LFLAGS)
  102 
  103 ntfscmp_SOURCES		= ntfscmp.c utils.c utils.h
  104 ntfscmp_LDADD		= $(AM_LIBS)
  105 ntfscmp_LDFLAGS		= $(AM_LFLAGS)
  106 
  107 ntfsrecover_SOURCES	= playlog.c ntfsrecover.c utils.c utils.h ntfsrecover.h
  108 ntfsrecover_LDADD	= $(AM_LIBS) $(NTFSRECOVER_LIBS)
  109 ntfsrecover_LDFLAGS	= $(AM_LFLAGS)
  110 
  111 ntfsusermap_SOURCES	= ntfsusermap.c utils.c utils.h
  112 ntfsusermap_LDADD	= $(AM_LIBS) $(NTFSRECOVER_LIBS)
  113 ntfsusermap_LDFLAGS	= $(AM_LFLAGS)
  114 
  115 ntfssecaudit_SOURCES	= ntfssecaudit.c utils.c utils.h
  116 ntfssecaudit_LDADD	= $(AM_LIBS) $(NTFSRECOVER_LIBS)
  117 ntfssecaudit_LDFLAGS	= $(AM_LFLAGS)
  118 
  119 # We don't distribute these
  120 
  121 ntfstruncate_SOURCES	= attrdef.c ntfstruncate.c utils.c utils.h
  122 ntfstruncate_LDADD	= $(AM_LIBS)
  123 ntfstruncate_LDFLAGS	= $(AM_LFLAGS)
  124 
  125 ntfsmftalloc_SOURCES	= ntfsmftalloc.c utils.c utils.h
  126 ntfsmftalloc_LDADD	= $(AM_LIBS)
  127 ntfsmftalloc_LDFLAGS	= $(AM_LFLAGS)
  128 
  129 ntfsmove_SOURCES	= ntfsmove.c ntfsmove.h utils.c utils.h
  130 ntfsmove_LDADD		= $(AM_LIBS)
  131 ntfsmove_LDFLAGS	= $(AM_LFLAGS)
  132 
  133 ntfswipe_SOURCES	= ntfswipe.c ntfswipe.h utils.c utils.h
  134 ntfswipe_LDADD		= $(AM_LIBS)
  135 ntfswipe_LDFLAGS	= $(AM_LFLAGS)
  136 
  137 ntfsdump_logfile_SOURCES= ntfsdump_logfile.c
  138 ntfsdump_logfile_LDADD	= $(AM_LIBS)
  139 ntfsdump_logfile_LDFLAGS= $(AM_LFLAGS)
  140 
  141 ntfsfallocate_SOURCES	= ntfsfallocate.c utils.c utils.h
  142 ntfsfallocate_LDADD	= $(AM_LIBS)
  143 ntfsfallocate_LDFLAGS	= $(AM_LFLAGS)
  144 
  145 if ENABLE_CRYPTO
  146 ntfsdecrypt_SOURCES	= ntfsdecrypt.c utils.c utils.h
  147 ntfsdecrypt_LDADD	= $(AM_LIBS) $(GNUTLS_LIBS) $(LIBGCRYPT_LIBS)
  148 ntfsdecrypt_LDFLAGS	= $(AM_LFLAGS)
  149 ntfsdecrypt_CFLAGS	= $(GNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS)
  150 endif
  151 
  152 # Extra targets
  153 
  154 strip:	$(bin_PROGRAMS) $(sbin_PROGRAMS)
  155 	$(STRIP) $^
  156 
  157 libs:
  158 	(cd ../libntfs-3g && $(MAKE) libs) || exit 1;
  159 
  160 extra:	extras
  161 
  162 extras:	libs $(EXTRA_PROGRAMS)
  163 
  164 # mkfs.ntfs[.8] hard link
  165 
  166 if ENABLE_MOUNT_HELPER
  167 install-exec-hook:
  168 	$(INSTALL) -d $(DESTDIR)/sbin
  169 	$(LN_S) -f $(sbindir)/mkntfs $(DESTDIR)/sbin/mkfs.ntfs
  170 
  171 install-data-hook:
  172 	$(INSTALL) -d $(DESTDIR)$(man8dir)
  173 	$(LN_S) -f mkntfs.8 $(DESTDIR)$(man8dir)/mkfs.ntfs.8
  174 
  175 uninstall-local:
  176 	$(RM) -f $(DESTDIR)/sbin/mkfs.ntfs
  177 	$(RM) -f $(DESTDIR)$(man8dir)/mkfs.ntfs.8
  178 endif
  179 
  180 endif