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