9a8991e149d31ad3ab90529565db98ae06f80091
1 ## Process this file with automake to produce Makefile.in
3 noinst_LIBRARIES = libcoreutils.a libnagiosplug.a
5 # Will auto pick up fsusage.c mountlist.c
6 libcoreutils_a_SOURCES = \
7 cloexec.c cloexec.h \
8 exit.h \
9 full-read.c full-read.h \
10 full-write.c full-write.h \
11 gettext.h \
12 safe-read.c safe-read.h \
13 safe-write.c safe-write.h strcase.h xalloc-die.c
15 # intprops.h required for getloadavg.c
16 # This needs to be an EXTRA_DIST because the m4s
17 # that have AC_LIBSOURCES for intprops.h are not necessary and
18 # the getloadavg m4 is an autoconf one, so doesn't
19 # know about intprops.h. Confused? You will be!
20 EXTRA_DIST = intprops.h
22 other_coreutils_files = \
23 error.c error.h \
24 fsusage.c \
25 getloadavg.c \
26 malloc.c \
27 mountlist.c \
28 realloc.c \
29 strtod.c \
30 exitfail.c exitfail.h \
31 fsusage.h \
32 getopt.c getopt1.c \
33 mountlist.h \
34 unlocked-io.h \
35 xalloc.h \
36 xmalloc.c
39 libcoreutils_a_LIBADD = $(LIBOBJS)
40 libcoreutils_a_DEPENDENCIES = $(libcoreutils_a_LIBADD)
42 libnagiosplug_a_SOURCES = snprintf.c
44 INCLUDES = -I$(srcdir) -I$(top_srcdir)/intl
46 print_coreutil_files:
47 @echo $(libcoreutils_a_SOURCES) $(other_coreutils_files) $(EXTRA_DIST)
49 # Below are from coreutil's lib/Makefile.am
50 BUILT_SOURCES = $(STDBOOL_H)
51 EXTRA_DIST += stdbool_.h
52 MOSTLYCLEANFILES = stdbool.h stdbool.ht
53 # Create stdbool.h on systems that lack a working one.
54 stdbool.h: stdbool_.h
55 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' $(srcdir)/stdbool_.h > $@t
56 mv $@t $@
58 BUILT_SOURCES += $(GETOPT_H)
59 EXTRA_DIST += getopt_.h getopt_int.h
61 # We need the following in order to create an <getopt.h> when the system
62 # doesn't have one that works with the given compiler.
63 all-local $(lib_OBJECTS): $(GETOPT_H)
64 getopt.h: getopt_.h
65 cp $(srcdir)/getopt_.h $@-t
66 mv $@-t $@
67 MOSTLYCLEANFILES += getopt.h getopt.h-t