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