OSDN Git Service

libparted: don't allow values less than 1 (#665496)
[android-x86/external-parted.git] / libparted / labels / Makefile.am
1 # This file is part of GNU Parted
2 # Copyright (C) 1999-2001, 2007-2011 Free Software Foundation, Inc.
3 #
4 # This file may be modified and/or distributed without restriction.
5
6 if COMPILE_FOR_S390
7 S390_SRCS = dasd.c fdasd.c vtoc.c
8 else
9 S390_SRCS =
10 endif
11
12 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
13
14 partedincludedir = \
15   -I$(top_srcdir)/lib -I$(top_srcdir)/include -I$(top_srcdir)/libparted
16 noinst_LTLIBRARIES    = liblabels.la
17
18 liblabels_la_SOURCES = \
19   $(S390_SRCS)  \
20   aix.c         \
21   bsd.c         \
22   dos.c         \
23   dvh.c         \
24   dvh.h         \
25   efi_crc32.c   \
26   gpt.c         \
27   loop.c        \
28   mac.c         \
29   misc.h        \
30   pc98.c        \
31   pt-common.h   \
32   pt-tools.c    \
33   pt-tools.h    \
34   rdb.c         \
35   sun.c
36
37 liblabels_la_LIBADD = $(OS_LIBS) $(INTLLIBS)
38
39 INCLUDES = $(partedincludedir) $(INTLINCS)
40
41 BUILT_SOURCES = pt-limit.c
42 MAINTAINERCLEANFILES = $(BUILT_SOURCES)
43 liblabels_la_SOURCES += pt-limit.gperf
44 EXTRA_DIST = $(BUILT_SOURCES)
45
46 GPERF = gperf
47 GPERF_OPTIONS = \
48   -C -N pt_limit_lookup -n -t -s 6 -k '*' --language=ANSI-C
49
50 pt-limit.c: pt-limit.gperf
51         rm -f $@ $@-tmp
52         $(GPERF) $(GPERF_OPTIONS) $< \
53           | perl -ne '/__GNUC_STDC_INLINE__/ and print "static\n"; print' \
54           > $@-tmp
55         chmod a-w $@-tmp
56         mv $@-tmp $@