Formerly ../posix/fnmatch.c.~18~
[kopensolaris-gnu/glibc.git] / posix / Makefile
index 117d745..ea72eb8 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 1991 Free Software Foundation, Inc.
+# Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
 # The GNU C Library is free software; you can redistribute it and/or
 #
 subdir := posix
 
-headers        := sys/utsname.h sys/times.h sys/wait.h sys/types.h sys/stat.h  \
-          utime.h fcntl.h unistd.h glob.h wordexp.h posix1_limits.h    \
-          posix2_limits.h posix_options.h confstr.h fnmatch.h          \
-          local_limits.h                                               \
-          gnu/stat.h gnu/wait.h gnu/types.h gnu/fcntl.h
+headers        := sys/utsname.h sys/times.h sys/wait.h sys/types.h unistd.h    \
+          glob.h wordexp.h fnmatch.h gnu/types.h getopt.h              \
+          posix1_lim.h posix2_lim.h posix_opt.h local_lim.h tar.h      \
+          utsnamelen.h
+
+distribute := confstr.h
 
 routines :=                                                                  \
-       utime                                                                 \
-       mkfifo                                                                \
        uname                                                                 \
        __times                                                               \
        __wait __waitpid __wait3 __wait4                                      \
-       __stat __fstat __lstat                                                \
-       __umask __chmod __fchmod __mkdir                                      \
-       __open __close __read __write __lseek __access __fcntl flock          \
-       __dup __dup2 __pipe                                                   \
-       creat                                                                 \
-       __chdir getcwd getwd                                                  \
        alarm sleep pause                                                     \
-       __chown __fchown                                                      \
        __fork __vfork _exit                                                  \
        __execve execve execv execle execl execvp execlp                      \
        __getpid __getppid                                                    \
-       __getuid __geteuid __getgid __getegid __getgroups __setuid __setgid   \
-       ttyname __isatty                                                      \
+       __getuid __geteuid __getgid __getegid __getgrps __setuid __setgid     \
        __getpgrp __setpgrp __setsid setpgid                                  \
-       __link __symlink __readlink                                           \
-       __unlink __rmdir                                                      \
        getlogin setlogin                                                     \
-       __pathconf __sysconf __fpathconf                                      \
+       __pathconf __sysconf __fpathcon                                       \
        glob fnmatch                                                          \
        confstr                                                               \
-       getopt
+       getopt getopt1
 routines       := $(sort $(foreach f,$(routines),$f $(f:__%=%)))
 aux            := init-posix environ
-tests := test-getopt
-
-others         := pwd logname getconf id
+tests          := tstgetopt
+others         := getconf
+install-lib    := libposix.a
+gpl2lgpl := getopt.c getopt1.c getopt.h        # Frob these guys' copying notices.
 
 include ../Rules
 
+$(objpfx)libposix.a:
+       $(AR) cr $@ /dev/null
+\f
 # Make the standalone glob/fnmatch package.
 glob.tar.Z: glob.tar
-       compress -c $< > $@
-glob.tar: glob/COPYING.LIB glob/Makefile \
+       compress -c $< > $@-tmp
+       mv $@-tmp $@
+glob.tar: glob/COPYING.LIB glob/Makefile.in glob/configure glob/configure.in \
          glob/fnmatch.h glob/glob.h glob/fnmatch.c glob/glob.c   
        tar ch$(verbose)f $@ $^
 glob/%.c: %.c
-       $(..)ansidecl -trad $< | indent -stdin -gnu > $@
+       rm -f $@
+       ln -s ../$< $@
 glob/%.h: %.h
-       $(..)ansidecl -trad $< | indent -stdin -gnu > $@
+       rm -f $@
+       ln -s ../$< $@
+
+glob/configure: /home/gd/gnu/autoconf/glob.conf
+       cp $< $@
+/home/gd/gnu/autoconf/%: FORCE;$(MAKE) -C $(@D) $(@F)
+FORCE: