blob: edc386043da16211a4b88e10be690c2e88cd9fd6 (
plain)
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
57
58
59
60
|
# This file is part of GNU Parted
# Copyright (C) 1999-2001, 2007-2014, 2019-2023 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_builddir)/include -I$(top_srcdir)/include \
-I$(top_srcdir)/libparted
noinst_LTLIBRARIES = liblabels.la
liblabels_la_SOURCES = \
$(S390_SRCS) \
aix.c \
atari.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) $(LIBICONV)
AM_CPPFLAGS = $(partedincludedir) $(INTLINCS)
# Included by 'pt-tools.c', so needs to be built early.
BUILT_SOURCES = pt-limit.c
MAINTAINERCLEANFILES = $(BUILT_SOURCES)
# DOn't add this to '_SOURCES', because it's not to be compiled!
EXTRA_DIST= pt-limit.c
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 $@
EXTRA_DIST += pt-limit.gperf
|