]> sourceware.org Git - glibc.git/blame - posix/Makefile
Update.
[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 24headers := sys/utsname.h sys/times.h sys/wait.h sys/types.h unistd.h \
5107cf1d
UD
25 glob.h regex.h wordexp.h fnmatch.h bits/types.h getopt.h \
26 bits/posix1_lim.h bits/posix2_lim.h bits/posix_opt.h \
27 bits/local_lim.h tar.h bits/utsname.h bits/confname.h \
28 bits/waitflags.h bits/waitstatus.h sys/unistd.h sched.h \
29 bits/sched.h re_comp.h wait.h
28f540f4 30
61eb22d3
UD
31distribute := confstr.h TESTS TESTS2C.sed testcases.h \
32 globtest.c globtest.sh
28f540f4
RM
33
34routines := \
35 uname \
36 times \
37 wait waitpid wait3 wait4 \
7b3547eb 38 alarm sleep pause nanosleep \
28f540f4
RM
39 fork vfork _exit \
40 execve fexecve execv execle execl execvp execlp \
41 getpid getppid \
3bbceb12 42 getuid geteuid getgid getegid getgroups setuid setgid group_member \
0d8733c4 43 getpgid setpgid getpgrp bsd-getpgrp setpgrp getsid setsid \
ee188d55 44 getlogin getlogin_r setlogin \
28f540f4 45 pathconf sysconf fpathconf \
2b83a2a4 46 glob fnmatch regex \
28f540f4 47 confstr \
7cc27f44 48 getopt getopt1 getopt_init \
7b3547eb 49 sched_setp sched_getp sched_sets sched_gets sched_yield sched_primax \
46ec036d 50 sched_primin sched_rr_gi \
55c14926 51 getaddrinfo gai_strerror wordexp
7b3547eb 52
5f9e57ba 53aux := init-posix environ
4cca6b86 54tests := tstgetopt testfnm runtests
2604afb1 55test-srcs := globtest
28f540f4
RM
56others := getconf
57install-bin := getconf
58install-lib := libposix.a
2b83a2a4 59gpl2lgpl := getopt.c getopt1.c getopt.h regex.c regex.h
28f540f4 60
4cca6b86
UD
61before-compile := testcases.h
62
28f540f4
RM
63include ../Rules
64
61eb22d3
UD
65ifeq (no,$(cross-compiling))
66tests: $(objpfx)globtest
67 $(SHELL) -e globtest.sh $(common-objpfx)
68endif
69
707ac6cb 70CFLAGS-regex.c = -Wno-unused -Wno-strict-prototypes
46ec036d 71CFLAGS-getaddrinfo.c = -DRESOLVER
0793d348 72
28f540f4
RM
73$(objpfx)libposix.a: $(dep-dummy-lib); $(make-dummy-lib)
74lib: $(objpfx)libposix.a
4cca6b86
UD
75
76testcases.h: TESTS TESTS2C.sed
77 sed -f TESTS2C.sed < $< > $@T
78 mv -f $@T $@
79 test ! -d CVS || cvs commit -mRegenerated $@
28f540f4
RM
80\f
81# Make the standalone glob/fnmatch package.
82
83glob.tar: glob/ChangeLog glob/COPYING.LIB \
84 glob/Makefile.in glob/configure glob/configure.in glob/configure.bat\
3e2632b6 85 glob/SCOPTIONS glob/SMakefile glob/Makefile.ami \
b7843ea9 86 glob/fnmatch.h glob/glob.h glob/fnmatch.c glob/glob.c
28f540f4
RM
87 tar cho$(verbose)f $@ $^
88glob/%.c: %.c
89 rm -f $@
90 ln -s ../$< $@
91glob/%.h: %.h
92 rm -f $@
93 ln -s ../$< $@
94
95glob/configure: glob/configure.in
96 cd glob; autoconf $(ACFLAGS)
a2fe9c76 97 test ! -d CVS || cvs commit -m'Regenerated: autoconf $(ACFLAGS) $<' $@
28f540f4
RM
98
99glob/ChangeLog: ../ChangeLog
100 changelog-extract --regexp 'posix/(glob|fnmatch).*' < $< > $@.new
101 chmod a-w $@.new
102 mv -f $@.new $@
a2fe9c76 103 test ! -d CVS || cvs commit -mRegenerated $@
28f540f4
RM
104
105%.Z: %
106 compress -c $< > $@-tmp
107 mv $@-tmp $@
108%.gz: %
109 gzip -9v -c $< > $@-tmp
110 mv $@-tmp $@
This page took 0.071609 seconds and 5 git commands to generate.