OSDN Git Service

tests: try harder to clean up scsi_debug
[android-x86/external-parted.git] / libparted / Makefile.am
1 # This file is part of GNU Parted
2 # Copyright (C) 1999-2001, 2007, 2009-2012 Free Software Foundation, Inc.
3 #
4 # This file may be modified and/or distributed without restriction.
5
6 SUBDIRS_CHECK =
7 if HAVE_CHECK
8 SUBDIRS_CHECK += tests
9 endif
10
11 ARCH_SOURCE = arch/$(OS).c
12 if BUILD_LINUX
13 ARCH_SOURCE += arch/$(OS).h
14 endif
15
16 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
17
18 SUBDIRS       = labels fs . $(SUBDIRS_CHECK)
19
20
21 partedincludedir      = -I$(top_srcdir)/lib -I$(top_srcdir)/include
22 lib_LTLIBRARIES       = libparted.la
23
24 # Set the shared library version, per Libtool's guidelines.
25 # For details, see the "Updating library version information" section of
26 # "info libtool".
27 CURRENT = 1
28 REVISION = 0
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