1 # Later gcc require -fms-extensions to work.
2 if GCC_NEEDS_MS_EXTENSIONS
3 GCCflag = -fms-extensions
8 # Need this to enable 64-bit (device) file access functions and parameters.
10 AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -Wall -g -DDEBUG $(GCCflag)
12 AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -Wall $(GCCflag)
16 AM_LIBS = $(top_srcdir)/libntfs/.libs/libntfs.a
18 STATIC_LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
20 AM_LIBS = $(top_srcdir)/libntfs/libntfs.la
21 AM_LFLAGS = $(all_libraries)
22 LIBTOOL_LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
25 # Workaround to make REALLYSTATIC work with automake 1.5.
26 LINK=$(STATIC_LINK) $(LIBTOOL_LINK)
28 bin_PROGRAMS = ntfsfix ntfsinfo
29 sbin_PROGRAMS = mkntfs ntfslabel ntfsundelete ntfsresize
30 EXTRA_PROGRAMS = ntfsdump_logfile dumplog ntfswipe ntfstruncate ntfscluster
32 man_MANS = mkntfs.8 ntfsfix.8 ntfslabel.8 ntfsinfo.8 \
33 ntfsundelete.8 ntfsresize.8 ntfsprogs.8
36 CLEANFILES = $(EXTRA_PROGRAMS)
38 linux_ntfsincludedir = -I$(top_srcdir)/include
40 # Set the include path.
41 INCLUDES = -I$(top_srcdir)/include $(all_includes)
43 ntfsfix_SOURCES = ntfsfix.c
44 ntfsfix_LDADD = $(AM_LIBS)
45 ntfsfix_LDFLAGS = $(AM_LFLAGS)
47 mkntfs_SOURCES = attrdef.c upcase.c boot.c sd.c mkntfs.c utils.c utils.h
48 mkntfs_LDADD = $(AM_LIBS)
49 mkntfs_LDFLAGS = $(AM_LFLAGS)
51 ntfslabel_SOURCES = ntfslabel.c utils.c utils.h
52 ntfslabel_LDADD = $(AM_LIBS)
53 ntfslabel_LDFLAGS = $(AM_LFLAGS)
55 ntfsinfo_SOURCES = ntfsinfo.c utils.c utils.h
56 ntfsinfo_LDADD = $(AM_LIBS)
57 ntfsinfo_LDFLAGS = $(AM_LFLAGS)
59 ntfsundelete_SOURCES = ntfsundelete.c ntfsundelete.h utils.c utils.h
60 ntfsundelete_LDADD = $(AM_LIBS)
61 ntfsundelete_LDFLAGS = $(AM_LFLAGS)
63 ntfsresize_SOURCES = ntfsresize.c utils.c utils.h
64 ntfsresize_LDADD = $(AM_LIBS)
65 ntfsresize_LDFLAGS = $(AM_LFLAGS)
67 # We don't distribute these
69 ntfscluster_SOURCES = ntfscluster.c ntfscluster.h utils.c utils.h
70 ntfscluster_LDADD = $(AM_LIBS)
71 ntfscluster_LDFLAGS = $(AM_LFLAGS)
73 ntfstruncate_SOURCES = attrdef.c ntfstruncate.c utils.c utils.h
74 ntfstruncate_LDADD = $(AM_LIBS)
75 ntfstruncate_LDFLAGS = $(AM_LFLAGS)
77 ntfswipe_SOURCES = ntfswipe.c ntfswipe.h utils.c utils.h
78 ntfswipe_LDADD = $(AM_LIBS)
79 ntfswipe_LDFLAGS = $(AM_LFLAGS)
81 ntfsdump_logfile_SOURCES= ntfsdump_logfile.c
82 ntfsdump_logfile_LDADD = $(AM_LIBS)
83 ntfsdump_logfile_LDFLAGS= $(AM_LFLAGS)
85 dumplog_SOURCES = dumplog.c
86 dumplog_LDADD = $(AM_LIBS)
87 dumplog_LDFLAGS = $(AM_LFLAGS)
91 strip: $(bin_PROGRAMS) $(sbin_PROGRAMS)