]>
Commit | Line | Data |
---|---|---|
28f540f4 RM |
1 | # Copyright (C) 1991, 1992, 1993, 1994, 1995 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 unistd.h \ | |
2b83a2a4 | 25 | glob.h regex.h wordexp.h fnmatch.h gnu/types.h getopt.h \ |
28f540f4 RM |
26 | posix1_lim.h posix2_lim.h posix_opt.h local_lim.h tar.h \ |
27 | utsnamelen.h confname.h waitflags.h waitstatus.h sys/unistd.h | |
28 | ||
29 | distribute := confstr.h | |
30 | ||
31 | routines := \ | |
32 | uname \ | |
33 | times \ | |
34 | wait waitpid wait3 wait4 \ | |
35 | alarm sleep pause \ | |
36 | fork vfork _exit \ | |
37 | execve fexecve execv execle execl execvp execlp \ | |
38 | getpid getppid \ | |
3bbceb12 | 39 | getuid geteuid getgid getegid getgroups setuid setgid group_member \ |
28f540f4 RM |
40 | getpgid setpgid getpgrp setsid \ |
41 | getlogin setlogin \ | |
42 | pathconf sysconf fpathconf \ | |
2b83a2a4 | 43 | glob fnmatch regex \ |
28f540f4 RM |
44 | confstr \ |
45 | getopt getopt1 | |
5f9e57ba | 46 | aux := init-posix environ |
28f540f4 RM |
47 | tests := tstgetopt testfnm |
48 | others := getconf | |
49 | install-bin := getconf | |
50 | install-lib := libposix.a | |
2b83a2a4 | 51 | gpl2lgpl := getopt.c getopt1.c getopt.h regex.c regex.h |
28f540f4 RM |
52 | |
53 | include ../Rules | |
54 | ||
55 | $(objpfx)libposix.a: $(dep-dummy-lib); $(make-dummy-lib) | |
56 | lib: $(objpfx)libposix.a | |
57 | \f | |
58 | # Make the standalone glob/fnmatch package. | |
59 | ||
60 | glob.tar: glob/ChangeLog glob/COPYING.LIB \ | |
61 | glob/Makefile.in glob/configure glob/configure.in glob/configure.bat\ | |
62 | glob/fnmatch.h glob/glob.h glob/fnmatch.c glob/glob.c | |
63 | tar cho$(verbose)f $@ $^ | |
64 | glob/%.c: %.c | |
65 | rm -f $@ | |
66 | ln -s ../$< $@ | |
67 | glob/%.h: %.h | |
68 | rm -f $@ | |
69 | ln -s ../$< $@ | |
70 | ||
71 | glob/configure: glob/configure.in | |
72 | cd glob; autoconf $(ACFLAGS) | |
a2fe9c76 | 73 | test ! -d CVS || cvs commit -m'Regenerated: autoconf $(ACFLAGS) $<' $@ |
28f540f4 RM |
74 | |
75 | glob/ChangeLog: ../ChangeLog | |
76 | changelog-extract --regexp 'posix/(glob|fnmatch).*' < $< > $@.new | |
77 | chmod a-w $@.new | |
78 | mv -f $@.new $@ | |
a2fe9c76 | 79 | test ! -d CVS || cvs commit -mRegenerated $@ |
28f540f4 RM |
80 | |
81 | %.Z: % | |
82 | compress -c $< > $@-tmp | |
83 | mv $@-tmp $@ | |
84 | %.gz: % | |
85 | gzip -9v -c $< > $@-tmp | |
86 | mv $@-tmp $@ |