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