2002-11-29 20:16:35 +08:00
|
|
|
if REALLYSTATIC
|
2013-02-13 15:51:47 +08:00
|
|
|
AM_LIBS = $(top_builddir)/libntfs-3g/.libs/libntfs-3g.a $(NTFSPROGS_STATIC_LIBS)
|
|
|
|
# older builds may need -static instead of newer -all-static
|
2002-11-29 20:16:35 +08:00
|
|
|
AM_LFLAGS = -static
|
|
|
|
STATIC_LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
|
|
|
else
|
2010-12-13 21:59:00 +08:00
|
|
|
AM_LIBS = $(top_builddir)/libntfs-3g/libntfs-3g.la
|
2010-07-02 01:10:02 +08:00
|
|
|
AM_LFLAGS = $(all_libraries)
|
2002-11-29 20:16:35 +08:00
|
|
|
LIBTOOL_LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Workaround to make REALLYSTATIC work with automake 1.5.
|
|
|
|
LINK=$(STATIC_LINK) $(LIBTOOL_LINK)
|
|
|
|
|
2010-12-15 21:58:24 +08:00
|
|
|
if ENABLE_NTFSPROGS
|
|
|
|
|
2006-04-12 06:47:22 +08:00
|
|
|
bin_PROGRAMS = ntfsfix ntfsinfo ntfscluster ntfsls ntfscat ntfscmp
|
2004-10-13 04:05:02 +08:00
|
|
|
sbin_PROGRAMS = mkntfs ntfslabel ntfsundelete ntfsresize ntfsclone \
|
|
|
|
ntfscp
|
2016-04-07 15:20:23 +08:00
|
|
|
EXTRA_PROGRAM_NAMES = ntfswipe ntfstruncate ntfsrecover \
|
|
|
|
ntfsusermap ntfssecaudit
|
2014-06-23 16:15:24 +08:00
|
|
|
|
2014-06-23 16:33:22 +08:00
|
|
|
QUARANTINED_PROGRAM_NAMES = ntfsdump_logfile ntfsmftalloc ntfsmove ntfsck \
|
|
|
|
ntfsfallocate
|
2002-11-29 20:16:35 +08:00
|
|
|
|
2002-12-28 07:14:11 +08:00
|
|
|
man_MANS = mkntfs.8 ntfsfix.8 ntfslabel.8 ntfsinfo.8 \
|
2003-08-30 00:17:15 +08:00
|
|
|
ntfsundelete.8 ntfsresize.8 ntfsprogs.8 ntfsls.8 \
|
2005-07-05 09:18:02 +08:00
|
|
|
ntfsclone.8 ntfscluster.8 ntfscat.8 ntfscp.8 \
|
2014-06-25 18:50:45 +08:00
|
|
|
ntfscmp.8 ntfswipe.8 ntfstruncate.8 \
|
2016-04-07 15:20:23 +08:00
|
|
|
ntfsdecrypt.8 ntfsfallocate.8 ntfsrecover.8 \
|
|
|
|
ntfsusermap.8 ntfssecaudit.8
|
2002-11-29 20:16:35 +08:00
|
|
|
EXTRA_MANS =
|
|
|
|
|
|
|
|
CLEANFILES = $(EXTRA_PROGRAMS)
|
|
|
|
|
2005-07-29 23:51:49 +08:00
|
|
|
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
|
2005-08-04 18:36:35 +08:00
|
|
|
if ENABLE_CRYPTO
|
2011-07-06 18:41:19 +08:00
|
|
|
EXTRA_PROGRAM_NAMES += ntfsdecrypt
|
2005-08-04 18:36:35 +08:00
|
|
|
endif
|
|
|
|
|
2011-07-05 18:17:11 +08:00
|
|
|
if ENABLE_EXTRAS
|
2011-07-06 18:41:19 +08:00
|
|
|
bin_PROGRAMS += $(EXTRA_PROGRAM_NAMES)
|
2014-06-23 16:15:24 +08:00
|
|
|
if ENABLE_QUARANTINED
|
|
|
|
bin_PROGRAMS += $(QUARANTINED_PROGRAM_NAMES)
|
|
|
|
endif
|
2011-07-06 18:41:19 +08:00
|
|
|
else
|
|
|
|
EXTRA_PROGRAMS = $(EXTRA_PROGRAM_NAMES)
|
2011-07-05 18:17:11 +08:00
|
|
|
endif
|
|
|
|
|
2002-11-29 20:16:35 +08:00
|
|
|
# Set the include path.
|
2010-12-15 21:19:11 +08:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include/ntfs-3g $(all_includes)
|
2002-11-29 20:16:35 +08:00
|
|
|
|
2005-02-20 03:34:37 +08:00
|
|
|
ntfsfix_SOURCES = ntfsfix.c utils.c utils.h
|
2002-11-29 20:16:35 +08:00
|
|
|
ntfsfix_LDADD = $(AM_LIBS)
|
|
|
|
ntfsfix_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2006-12-13 08:11:50 +08:00
|
|
|
mkntfs_CPPFLAGS = $(AM_CPPFLAGS) $(MKNTFS_CPPFLAGS)
|
2006-12-20 00:31:52 +08:00
|
|
|
mkntfs_SOURCES = attrdef.c attrdef.h boot.c boot.h sd.c sd.h mkntfs.c utils.c utils.h
|
2006-12-13 08:11:50 +08:00
|
|
|
mkntfs_LDADD = $(AM_LIBS) $(MKNTFS_LIBS)
|
2002-11-29 20:16:35 +08:00
|
|
|
mkntfs_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2003-01-19 19:48:06 +08:00
|
|
|
ntfslabel_SOURCES = ntfslabel.c utils.c utils.h
|
2002-11-29 20:16:35 +08:00
|
|
|
ntfslabel_LDADD = $(AM_LIBS)
|
|
|
|
ntfslabel_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2003-01-19 19:48:06 +08:00
|
|
|
ntfsinfo_SOURCES = ntfsinfo.c utils.c utils.h
|
2002-11-29 20:16:35 +08:00
|
|
|
ntfsinfo_LDADD = $(AM_LIBS)
|
|
|
|
ntfsinfo_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2010-12-15 21:19:11 +08:00
|
|
|
ntfsundelete_SOURCES = ntfsundelete.c ntfsundelete.h utils.c utils.h list.h
|
2002-11-29 20:16:35 +08:00
|
|
|
ntfsundelete_LDADD = $(AM_LIBS)
|
|
|
|
ntfsundelete_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2003-01-20 07:45:17 +08:00
|
|
|
ntfsresize_SOURCES = ntfsresize.c utils.c utils.h
|
2002-11-29 20:16:35 +08:00
|
|
|
ntfsresize_LDADD = $(AM_LIBS)
|
|
|
|
ntfsresize_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2003-04-11 21:08:52 +08:00
|
|
|
ntfsclone_SOURCES = ntfsclone.c utils.c utils.h
|
|
|
|
ntfsclone_LDADD = $(AM_LIBS)
|
|
|
|
ntfsclone_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2004-03-07 01:42:28 +08:00
|
|
|
ntfscluster_SOURCES = ntfscluster.c ntfscluster.h cluster.c cluster.h utils.c utils.h
|
2003-01-09 09:42:21 +08:00
|
|
|
ntfscluster_LDADD = $(AM_LIBS)
|
|
|
|
ntfscluster_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2010-12-15 21:19:11 +08:00
|
|
|
ntfsls_SOURCES = ntfsls.c utils.c utils.h list.h
|
2003-07-23 04:41:19 +08:00
|
|
|
ntfsls_LDADD = $(AM_LIBS)
|
|
|
|
ntfsls_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2003-10-11 07:22:23 +08:00
|
|
|
ntfscat_SOURCES = ntfscat.c ntfscat.h utils.c utils.h
|
|
|
|
ntfscat_LDADD = $(AM_LIBS)
|
|
|
|
ntfscat_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2004-10-13 04:05:02 +08:00
|
|
|
ntfscp_SOURCES = ntfscp.c utils.c utils.h
|
|
|
|
ntfscp_LDADD = $(AM_LIBS)
|
|
|
|
ntfscp_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2006-12-11 11:06:35 +08:00
|
|
|
ntfsck_SOURCES = ntfsck.c utils.c utils.h
|
|
|
|
ntfsck_LDADD = $(AM_LIBS)
|
|
|
|
ntfsck_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2006-04-12 06:47:22 +08:00
|
|
|
ntfscmp_SOURCES = ntfscmp.c utils.c utils.h
|
|
|
|
ntfscmp_LDADD = $(AM_LIBS)
|
|
|
|
ntfscmp_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2015-11-09 20:18:58 +08:00
|
|
|
ntfsrecover_SOURCES = playlog.c ntfsrecover.c utils.c utils.h ntfsrecover.h
|
|
|
|
ntfsrecover_LDADD = $(AM_LIBS) $(NTFSRECOVER_LIBS)
|
|
|
|
ntfsrecover_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2016-04-07 15:20:23 +08:00
|
|
|
ntfsusermap_SOURCES = ntfsusermap.c utils.c utils.h
|
|
|
|
ntfsusermap_LDADD = $(AM_LIBS) $(NTFSRECOVER_LIBS)
|
|
|
|
ntfsusermap_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
|
|
|
ntfssecaudit_SOURCES = ntfssecaudit.c utils.c utils.h
|
|
|
|
ntfssecaudit_LDADD = $(AM_LIBS) $(NTFSRECOVER_LIBS)
|
|
|
|
ntfssecaudit_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2003-10-11 08:13:17 +08:00
|
|
|
# We don't distribute these
|
|
|
|
|
2003-01-20 06:01:18 +08:00
|
|
|
ntfstruncate_SOURCES = attrdef.c ntfstruncate.c utils.c utils.h
|
2002-12-28 07:14:11 +08:00
|
|
|
ntfstruncate_LDADD = $(AM_LIBS)
|
|
|
|
ntfstruncate_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2004-09-16 17:32:23 +08:00
|
|
|
ntfsmftalloc_SOURCES = ntfsmftalloc.c utils.c utils.h
|
|
|
|
ntfsmftalloc_LDADD = $(AM_LIBS)
|
|
|
|
ntfsmftalloc_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2004-03-07 01:42:28 +08:00
|
|
|
ntfsmove_SOURCES = ntfsmove.c ntfsmove.h utils.c utils.h
|
|
|
|
ntfsmove_LDADD = $(AM_LIBS)
|
|
|
|
ntfsmove_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2003-01-09 09:42:21 +08:00
|
|
|
ntfswipe_SOURCES = ntfswipe.c ntfswipe.h utils.c utils.h
|
2002-11-29 20:16:35 +08:00
|
|
|
ntfswipe_LDADD = $(AM_LIBS)
|
|
|
|
ntfswipe_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
|
|
|
ntfsdump_logfile_SOURCES= ntfsdump_logfile.c
|
|
|
|
ntfsdump_logfile_LDADD = $(AM_LIBS)
|
|
|
|
ntfsdump_logfile_LDFLAGS= $(AM_LFLAGS)
|
|
|
|
|
2014-06-23 16:33:22 +08:00
|
|
|
ntfsfallocate_SOURCES = ntfsfallocate.c utils.c utils.h
|
|
|
|
ntfsfallocate_LDADD = $(AM_LIBS)
|
|
|
|
ntfsfallocate_LDFLAGS = $(AM_LFLAGS)
|
|
|
|
|
2005-08-04 18:36:35 +08:00
|
|
|
if ENABLE_CRYPTO
|
2005-08-06 07:41:52 +08:00
|
|
|
ntfsdecrypt_SOURCES = ntfsdecrypt.c utils.c utils.h
|
2010-12-03 14:50:47 +08:00
|
|
|
ntfsdecrypt_LDADD = $(AM_LIBS) $(GNUTLS_LIBS) $(LIBGCRYPT_LIBS)
|
2010-12-02 17:17:32 +08:00
|
|
|
ntfsdecrypt_LDFLAGS = $(AM_LFLAGS)
|
2010-12-03 14:50:47 +08:00
|
|
|
ntfsdecrypt_CFLAGS = $(GNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS)
|
2005-08-04 18:36:35 +08:00
|
|
|
endif
|
|
|
|
|
2002-11-29 20:16:35 +08:00
|
|
|
# Extra targets
|
|
|
|
|
|
|
|
strip: $(bin_PROGRAMS) $(sbin_PROGRAMS)
|
|
|
|
$(STRIP) $^
|
2003-01-09 09:42:21 +08:00
|
|
|
|
2005-08-04 21:12:41 +08:00
|
|
|
libs:
|
2010-12-15 21:09:10 +08:00
|
|
|
(cd ../libntfs-3g && $(MAKE) libs) || exit 1;
|
2005-08-04 21:12:41 +08:00
|
|
|
|
2003-10-17 05:11:12 +08:00
|
|
|
extra: extras
|
|
|
|
|
2005-08-04 21:12:41 +08:00
|
|
|
extras: libs $(EXTRA_PROGRAMS)
|
2005-08-16 04:48:48 +08:00
|
|
|
|
2010-11-22 17:58:32 +08:00
|
|
|
# mkfs.ntfs[.8] hard link
|
2005-08-16 04:48:48 +08:00
|
|
|
|
2015-06-23 12:26:52 +08:00
|
|
|
if ENABLE_MOUNT_HELPER
|
2005-08-16 04:48:48 +08:00
|
|
|
install-exec-hook:
|
2020-11-18 18:29:05 +08:00
|
|
|
$(INSTALL) -d $(DESTDIR)/$(sbindir)
|
|
|
|
$(LN_S) -f $(sbindir)/mkntfs $(DESTDIR)$(sbindir)/mkfs.ntfs
|
2005-08-16 04:48:48 +08:00
|
|
|
|
|
|
|
install-data-hook:
|
2005-10-08 07:01:23 +08:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(man8dir)
|
|
|
|
$(LN_S) -f mkntfs.8 $(DESTDIR)$(man8dir)/mkfs.ntfs.8
|
2005-08-16 04:48:48 +08:00
|
|
|
|
|
|
|
uninstall-local:
|
2005-10-08 07:01:23 +08:00
|
|
|
$(RM) -f $(DESTDIR)/sbin/mkfs.ntfs
|
|
|
|
$(RM) -f $(DESTDIR)$(man8dir)/mkfs.ntfs.8
|
2015-06-23 12:26:52 +08:00
|
|
|
endif
|
2010-12-15 21:58:24 +08:00
|
|
|
|
|
|
|
endif
|