Initial revision
[kopensolaris-gnu/glibc.git] / posix / Makefile
1 # Copyright (C) 1991 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
3
4 # The GNU C Library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Library General Public License as
6 # published by the Free Software Foundation; either version 2 of the
7 # License, or (at your option) any later version.
8
9 # The GNU C Library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Library General Public License for more details.
13
14 # You should have received a copy of the GNU Library General Public
15 # License along with the GNU C Library; see the file COPYING.LIB.  If
16 # not, write to the Free Software Foundation, Inc., 675 Mass Ave,
17 # Cambridge, MA 02139, USA.
18
19 #
20 #       Sub-makefile for POSIX portion of the library.
21 #
22 subdir  := posix
23
24 headers := sys/utsname.h sys/times.h sys/wait.h sys/types.h sys/stat.h  \
25            utime.h fcntl.h unistd.h glob.h wordexp.h posix1_limits.h    \
26            posix2_limits.h posix_options.h confstr.h fnmatch.h          \
27            local_limits.h                                               \
28            gnu/stat.h gnu/wait.h gnu/types.h gnu/fcntl.h
29
30 routines :=                                                                   \
31         utime                                                                 \
32         mkfifo                                                                \
33         uname                                                                 \
34         __times                                                               \
35         __wait __waitpid __wait3 __wait4                                      \
36         __stat __fstat __lstat                                                \
37         __umask __chmod __fchmod __mkdir                                      \
38         __open __close __read __write __lseek __access __fcntl flock          \
39         __dup __dup2 __pipe                                                   \
40         creat                                                                 \
41         __chdir getcwd getwd                                                  \
42         alarm sleep pause                                                     \
43         __chown __fchown                                                      \
44         __fork __vfork _exit                                                  \
45         __execve execve execv execle execl execvp execlp                      \
46         __getpid __getppid                                                    \
47         __getuid __geteuid __getgid __getegid __getgroups __setuid __setgid   \
48         ttyname __isatty                                                      \
49         __getpgrp __setpgrp __setsid setpgid                                  \
50         __link __symlink __readlink                                           \
51         __unlink __rmdir                                                      \
52         getlogin setlogin                                                     \
53         __pathconf __sysconf __fpathconf                                      \
54         glob fnmatch                                                          \
55         confstr                                                               \
56         getopt
57 routines        := $(sort $(foreach f,$(routines),$f $(f:__%=%)))
58 aux             := init-posix environ
59 tests := test-getopt
60
61 others          := pwd logname getconf id
62
63 include ../Rules
64
65 # Make the standalone glob/fnmatch package.
66 glob.tar.Z: glob.tar
67         compress -c $< > $@
68 glob.tar: glob/COPYING.LIB glob/Makefile \
69           glob/fnmatch.h glob/glob.h glob/fnmatch.c glob/glob.c   
70         tar ch$(verbose)f $@ $^
71 glob/%.c: %.c
72         $(..)ansidecl -trad $< | indent -stdin -gnu > $@
73 glob/%.h: %.h
74         $(..)ansidecl -trad $< | indent -stdin -gnu > $@