]> git.ipfire.org Git - thirdparty/glibc.git/blame - posix/Makefile
Update.
[thirdparty/glibc.git] / posix / Makefile
CommitLineData
7cc27f44 1# Copyright (C) 1991, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.
28f540f4
RM
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
d38cd08c
UD
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.
28f540f4
RM
18
19#
20# Sub-makefile for POSIX portion of the library.
21#
22subdir := posix
23
7b3547eb
RM
24headers := 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 \
8a523922 28 sched.h schedbits.h re_comp.h wait.h
28f540f4 29
4cca6b86 30distribute := confstr.h TESTS TESTS2C.sed testcases.h
28f540f4
RM
31
32routines := \
33 uname \
34 times \
35 wait waitpid wait3 wait4 \
7b3547eb 36 alarm sleep pause nanosleep \
28f540f4
RM
37 fork vfork _exit \
38 execve fexecve execv execle execl execvp execlp \
39 getpid getppid \
3bbceb12 40 getuid geteuid getgid getegid getgroups setuid setgid group_member \
b20e47cb 41 getpgid setpgid getpgrp setpgrp getsid setsid \
ee188d55 42 getlogin getlogin_r setlogin \
28f540f4 43 pathconf sysconf fpathconf \
2b83a2a4 44 glob fnmatch regex \
28f540f4 45 confstr \
7cc27f44 46 getopt getopt1 getopt_init \
7b3547eb 47 sched_setp sched_getp sched_sets sched_gets sched_yield sched_primax \
46ec036d 48 sched_primin sched_rr_gi \
1fb05e3d 49 getaddrinfo gai_strerror
7b3547eb 50
5f9e57ba 51aux := init-posix environ
4cca6b86 52tests := tstgetopt testfnm runtests
28f540f4
RM
53others := getconf
54install-bin := getconf
55install-lib := libposix.a
2b83a2a4 56gpl2lgpl := getopt.c getopt1.c getopt.h regex.c regex.h
28f540f4 57
4cca6b86
UD
58before-compile := testcases.h
59
28f540f4
RM
60include ../Rules
61
0793d348 62CFLAGS-regex.c = -Wno-unused -Wno-strict-prototypes
46ec036d 63CFLAGS-getaddrinfo.c = -DRESOLVER
0793d348 64
28f540f4
RM
65$(objpfx)libposix.a: $(dep-dummy-lib); $(make-dummy-lib)
66lib: $(objpfx)libposix.a
4cca6b86
UD
67
68testcases.h: TESTS TESTS2C.sed
69 sed -f TESTS2C.sed < $< > $@T
70 mv -f $@T $@
71 test ! -d CVS || cvs commit -mRegenerated $@
28f540f4
RM
72\f
73# Make the standalone glob/fnmatch package.
74
75glob.tar: glob/ChangeLog glob/COPYING.LIB \
76 glob/Makefile.in glob/configure glob/configure.in glob/configure.bat\
3e2632b6 77 glob/SCOPTIONS glob/SMakefile glob/Makefile.ami \
b7843ea9 78 glob/fnmatch.h glob/glob.h glob/fnmatch.c glob/glob.c
28f540f4
RM
79 tar cho$(verbose)f $@ $^
80glob/%.c: %.c
81 rm -f $@
82 ln -s ../$< $@
83glob/%.h: %.h
84 rm -f $@
85 ln -s ../$< $@
86
87glob/configure: glob/configure.in
88 cd glob; autoconf $(ACFLAGS)
a2fe9c76 89 test ! -d CVS || cvs commit -m'Regenerated: autoconf $(ACFLAGS) $<' $@
28f540f4
RM
90
91glob/ChangeLog: ../ChangeLog
92 changelog-extract --regexp 'posix/(glob|fnmatch).*' < $< > $@.new
93 chmod a-w $@.new
94 mv -f $@.new $@
a2fe9c76 95 test ! -d CVS || cvs commit -mRegenerated $@
28f540f4
RM
96
97%.Z: %
98 compress -c $< > $@-tmp
99 mv $@-tmp $@
100%.gz: %
101 gzip -9v -c $< > $@-tmp
102 mv $@-tmp $@