http://linux-ntfs.sourceforge.net/snapshots/ntfsprogs-200307311516.tar.bz2
[ntfsprogs.git] / libntfs / Makefile.am
1 #
2 # Before making a release, the LTVERSION string should be modified.
3 # The string is of the form CURRENT:REVISION:AGE.
4 #
5 # CURRENT (C)
6 #       The most recent interface number that this library implements.
7 #
8 # REVISION (R)
9 #       The implementation number that this library implements.
10 #
11 # AGE (A)
12 #       The difference between the newest and oldest interfaces that this
13 #       library implements. In other works, the library implements all the
14 #       interface numbers in the range from number 'CURRENT - AGE' to
15 #       'CURRENT'.
16 #
17 # This means that:
18 #
19 #   - If interfaces have been changed or added, but binary compatibility has
20 #     been preserved, change to C+1:0:A+1
21 #
22 #   - If binary compatibility has been broken (eg removed or changed
23 #     interfaces) change to C+1:0:0
24 #
25 #   - If the interface is the same as the previous version, change to C:R+1:A
26 #
27
28 LTVERSION = 5:0:0
29
30 # Later gcc require -fms-extensions to work.
31 if GCC_NEEDS_MS_EXTENSIONS
32 GCCflag = -fms-extensions
33 else
34 GCCflag =
35 endif
36
37 # Need this to enable 64-bit (device) file access functions and parameters.
38 if DEBUG
39 AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -Wall -g -DDEBUG $(GCCflag)
40 else
41 AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -Wall $(GCCflag)
42 endif
43
44 linux_ntfsincludedir = -I$(top_srcdir)/include
45 lib_LTLIBRARIES = libntfs.la
46 libntfs_la_LDFLAGS = -version-info $(LTVERSION)
47 libntfs_la_SOURCES =    \
48         attrib.c        \
49         bitmap.c        \
50         bootsect.c      \
51         compat.c        \
52         debug.c         \
53         device.c        \
54         dir.c           \
55         disk_io.c       \
56         inode.c         \
57         lcnalloc.c      \
58         mft.c           \
59         mst.c           \
60         runlist.c       \
61         unistr.c        \
62         volume.c
63
64 INCLUDES = $(linux_ntfsincludedir) $(all_includes)
65