3aff9e66ea8f56a571574ec4f91c04a47d43ff60
[gnulib.git] / lib / Makefile.am
1 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
2
3 AUTOMAKE_OPTIONS = ../src/ansi2knr
4
5 noinst_LIBRARIES = libfu.a
6
7 INCLUDES = -I.. -I$(srcdir) -I../intl
8
9 libfu_a_SOURCES = getdate.y posixtm.c getopt.c getopt1.c \
10 addext.c argmatch.c backupfile.c basename.c \
11 closeout.c dirname.c exclude.c filemode.c \
12 full-write.c human.c idcache.c \
13 isdir.c long-options.c makepath.c modechange.c hash.c path-concat.c \
14 quotearg.c safe-read.c same.c save-cwd.c savedir.c stripslash.c userspec.c \
15 version-etc.c xgetcwd.c xmalloc.c xstrdup.c \
16 xstrtol.c xstrtoul.c xstrtoumax.c yesno.c
17
18 libfu_a_LIBADD = @LIBOBJS@ @ALLOCA@
19 libfu_a_DEPENDENCIES = $(libfu_a_LIBADD)
20
21 noinst_HEADERS = argmatch.h backupfile.h closeout.h \
22 dirname.h error.h exclude.h filemode.h fnmatch.h fsusage.h \
23 getdate.h getline.h getopt.h getpagesize.h \
24 group-member.h human.h lchown.h long-options.h \
25 makepath.h modechange.h mountlist.h hash.h path-concat.h pathmax.h \
26 posixtm.h quotearg.h regex.h safe-read.h same.h save-cwd.h \
27 savedir.h strverscmp.h \
28 version-etc.h xalloc.h xstrtol.h
29
30 BUILT_SOURCES = getdate.c lstat.c stat.c
31 MAINTAINERCLEANFILES = $(BUILT_SOURCES)
32
33 EXTRA_DIST = xstat.in
34 lstat.c: xstat.in
35         sed -e '/@IGNORE@/d' -e 's/@xstat@/lstat/g' $(srcdir)/xstat.in > $@-t
36         mv $@-t $@
37
38 stat.c: xstat.in
39         sed -e '/@IGNORE@/d' -e 's/@xstat@/stat/g' $(srcdir)/xstat.in > $@-t
40         mv $@-t $@