1 # Copyright (C) 1991, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
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.
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.
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 not,
16 # write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 # Boston, MA 02111-1307, USA.
20 # Sub-makefile for POSIX portion of the library.
24 headers
:= sys
/utsname.h sys
/times.h sys
/wait.h sys
/types.h unistd.h \
25 glob.h regex.h wordexp.h fnmatch.h gnu
/types.h getopt.h \
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 sched.h schedbits.h re_comp.h wait.h
30 distribute
:= confstr.h TESTS TESTS2C.sed testcases.h
35 wait waitpid wait3 wait4 \
36 alarm sleep pause nanosleep \
38 execve fexecve execv execle execl execvp execlp \
40 getuid geteuid getgid getegid getgroups setuid setgid group_member \
41 getpgid setpgid getpgrp setpgrp getsid setsid \
42 getlogin getlogin_r setlogin \
43 pathconf sysconf fpathconf \
46 getopt getopt1 getopt_init \
47 sched_setp sched_getp sched_sets sched_gets sched_yield sched_primax \
48 sched_primin sched_rr_gi \
51 aux
:= init-posix environ
52 tests
:= tstgetopt testfnm runtests
54 install-bin
:= getconf
55 install-lib
:= libposix.a
56 gpl2lgpl
:= getopt.c getopt1.c getopt.h regex.c regex.h
58 before-compile
:= testcases.h
62 CFLAGS-regex.c
= -Wno-unused
-Wno-strict-prototypes
63 CFLAGS-getaddrinfo.c
= -DRESOLVER
65 $(objpfx
)libposix.a
: $(dep-dummy-lib
); $(make-dummy-lib
)
66 lib
: $(objpfx
)libposix.a
68 testcases.h
: TESTS TESTS2C.sed
69 sed
-f TESTS2C.sed
< $< > $@T
71 test ! -d CVS || cvs commit
-mRegenerated
$@
73 # Make the standalone glob/fnmatch package.
75 glob.
tar: glob
/ChangeLog glob
/COPYING.LIB \
76 glob
/Makefile.in glob
/configure glob
/configure.in glob
/configure.bat\
77 glob
/SCOPTIONS glob
/SMakefile glob
/Makefile.ami \
78 glob
/fnmatch.h glob
/glob.h glob
/fnmatch.c glob
/glob.c
79 tar cho
$(verbose
)f
$@
$^
87 glob
/configure
: glob
/configure.in
88 cd glob
; autoconf
$(ACFLAGS
)
89 test ! -d CVS || cvs commit
-m
'Regenerated: autoconf $(ACFLAGS) $<' $@
91 glob
/ChangeLog
: ..
/ChangeLog
92 changelog-extract
--regexp
'posix/(glob|fnmatch).*' < $< > $@.new
95 test ! -d CVS || cvs commit
-mRegenerated
$@
98 compress
-c
$< > $@
-tmp
101 gzip
-9v
-c
$< > $@
-tmp