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 other_coreutils_files = \
17 error.c error.h \
18 fsusage.c \
19 getloadavg.c \
20 intprops.h \
21 malloc.c \
22 mountlist.c \
23 realloc.c \
24 strtod.c \
25 exitfail.c exitfail.h \
26 fsusage.h \
27 getopt.c getopt1.c \
28 mountlist.h \
29 unlocked-io.h \
30 xalloc.h \
31 xmalloc.c
34 libcoreutils_a_LIBADD = $(LIBOBJS)
35 libcoreutils_a_DEPENDENCIES = $(libcoreutils_a_LIBADD)
37 libnagiosplug_a_SOURCES = snprintf.c
39 INCLUDES = -I$(srcdir) -I$(top_srcdir)/intl
41 print_coreutil_files:
42 @echo $(libcoreutils_a_SOURCES) $(other_coreutils_files) $(EXTRA_DIST)
44 # Below are from coreutil's lib/Makefile.am
45 BUILT_SOURCES = $(STDBOOL_H)
46 EXTRA_DIST = stdbool_.h
47 MOSTLYCLEANFILES = stdbool.h stdbool.ht
48 # Create stdbool.h on systems that lack a working one.
49 stdbool.h: stdbool_.h
50 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' $(srcdir)/stdbool_.h > $@t
51 mv $@t $@
53 BUILT_SOURCES += $(GETOPT_H)
54 EXTRA_DIST += getopt_.h getopt_int.h
56 # We need the following in order to create an <getopt.h> when the system
57 # doesn't have one that works with the given compiler.
58 all-local $(lib_OBJECTS): $(GETOPT_H)
59 getopt.h: getopt_.h
60 cp $(srcdir)/getopt_.h $@-t
61 mv $@-t $@
62 MOSTLYCLEANFILES += getopt.h getopt.h-t