OSDN Git Service

fb8351eb412d102d5dcc203e3bcd1548f1a10b5f
[android-x86/external-parted.git] / libparted / Makefile.am
1 # This file is part of GNU Parted
2 # Copyright (C) 1999-2001, 2007, 2009-2010 Free Software Foundation,
3 # Inc.
4 #
5 # This file may be modified and/or distributed without restriction.
6
7 SUBDIRS_CHECK =
8 if HAVE_CHECK
9 SUBDIRS_CHECK += tests
10 endif
11
12 ARCH_SOURCE = arch/$(OS).c
13 if BUILD_LINUX
14 ARCH_SOURCE += arch/$(OS).h
15 endif
16
17 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
18
19 SUBDIRS       = labels fs . $(SUBDIRS_CHECK)
20
21
22 partedincludedir      = -I$(top_srcdir)/lib -I$(top_srcdir)/include
23 lib_LTLIBRARIES       = libparted.la
24
25 # Set the shared library version, per Libtool's guidelines.
26 # For details, see the "Libtool's versioning system" section of "info libtool"
27 CURRENT = 0
28 REVISION = 1
29 AGE = 0
30
31 libparted_la_LDFLAGS  = -version-info $(CURRENT):$(REVISION):$(AGE)
32
33 libparted_la_SOURCES  = debug.c                 \
34                         architecture.c          \
35                         architecture.h          \
36                         device.c                \
37                         exception.c             \
38                         filesys.c               \
39                         libparted.c             \
40                         timer.c                 \
41                         unit.c                  \
42                         disk.c                  \
43                         cs/geom.c               \
44                         cs/constraint.c         \
45                         cs/natmath.c            \
46                         $(ARCH_SOURCE)
47
48
49 EXTRA_libparted_la_SOURCES    = arch/linux.c    \
50                                 arch/linux.h    \
51                                 arch/gnu.c      \
52                                 arch/beos.c
53
54 libparted_la_LIBADD =   \
55   fs/libfs.la           \
56   labels/liblabels.la   \
57   $(top_builddir)/lib/libgnulib.la \
58   $(OS_LIBS)            \
59   $(DL_LIBS)            \
60   $(DM_LIBS)            \
61   $(SELINUX_LIBS)       \
62   $(LIB_BLKID)          \
63   $(INTLLIBS)
64
65 EXTRA_DIST            = mbr.s
66
67 INCLUDES = $(partedincludedir) $(INTLINCS)
68
69 MAINTAINERCLEANFILES = Makefile.in