(fu_SOURCES): Remove regex.c and rx.c.
[gnulib.git] / lib / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 noinst_LIBRARIES = fu
3
4 EXTRA_DIST = alloca.c basename.c error.c euidaccess.c fnmatch.c fsusage.c \
5 ftruncate.c getdate.y group-member.c memcmp.c memcpy.c memset.c \
6 mkdir.c mktime.c mountlist.c obstack.c posixtm.y regex.c rx.c \
7 rename.c rmdir.c rpmatch.c \
8 stpcpy.c strcasecmp.c strdup.c strndup.c strstr.c strtol.c strtoul.c
9
10 INCLUDES = -I.. -I$(srcdir)
11 INCLUDES = -I.. -I$(srcdir) -I../intl
12
13 fu_SOURCES = getdate.c getline.c getopt.c getopt1.c posixtm.c \
14 argmatch.c backupfile.c \
15 dirname.c fileblocks.c filemode.c \
16 full-write.c getversion.c idcache.c \
17 isdir.c long-options.c makepath.c modechange.c path-concat.c \
18 safe-read.c save-cwd.c savedir.c stripslash.c userspec.c xgetcwd.c \
19 xmalloc.c xstrdup.c xstrtol.c xstrtoul.c yesno.c
20
21 fu_LIBADD = @LIBOBJS@ @ALLOCA@
22
23 noinst_HEADERS = argmatch.h backupfile.h error.h fnmatch.h fsusage.h \
24 getline.h getopt.h group-member.h long-options.h makepath.h modechange.h \
25 mountlist.h obstack.h path-concat.h pathmax.h regex.h rx.h \
26 save-cwd.h xstrtol.h xstrtoul.h
27
28 BUILT_SOURCES = getdate.c posixtm.c
29
30 # Since this directory contains two parsers, we have to be careful to avoid
31 # running two $(YACC)s during parallel makes.  See below.
32 getdate.c: @MAINT@getdate.y
33         @echo expect 10 shift/reduce conflicts
34         $(YACC) $(srcdir)/getdate.y
35         mv y.tab.c getdate.c
36
37 # Make the rename atomic, in case sed is interrupted and later rerun.
38 # The artificial dependency on getdate.c keeps the two parsers from being
39 # built in parallel.  Enforcing this little bit of sequentiality lets
40 # everyone (even those without bison) still run mostly parallel builds.
41 posixtm.c: @MAINT@posixtm.y getdate.c
42         $(YACC) $(srcdir)/posixtm.y
43         mv y.tab.c posixtm.tab.c
44         sed -e 's/yy/zz/g' posixtm.tab.c > tposixtm.c
45         mv tposixtm.c posixtm.c
46         rm -f posixtm.tab.c