Fix Charset comment in fi_FI, fi_FI@euro
[glibc.git] / dlfcn / Makefile
blob1eedc3fc5bad48f9dec1e1d0ba5ef690836e2d53
1 # Copyright (C) 1995-2013 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 Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the 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 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with the GNU C Library; if not, see
16 # <http://www.gnu.org/licenses/>.
18 subdir := dlfcn
19 headers := bits/dlfcn.h dlfcn.h
20 extra-libs := libdl
21 libdl-routines := dlopen dlclose dlsym dlvsym dlerror dladdr dladdr1 dlinfo \
22 dlmopen dlfcn
23 routines := $(patsubst %,s%,$(filter-out dlfcn,$(libdl-routines)))
24 elide-routines.os := $(routines)
26 extra-libs-others := libdl
28 include ../Makeconfig
30 ifeq ($(build-shared),yes)
31 libdl-routines += dlopenold
32 libdl-shared-only-routines := dlopenold dlfcn
33 endif
35 ifeq (yes,$(build-shared))
36 tests = glrefmain failtest tst-dladdr default errmsg1 tstcxaatexit \
37 bug-dlopen1 bug-dlsym1 tst-dlinfo bug-atexit1 bug-atexit2 \
38 bug-atexit3 tstatexit bug-dl-leaf
39 endif
40 modules-names = glreflib1 glreflib2 glreflib3 failtestmod defaultmod1 \
41 defaultmod2 errmsg1mod modatexit modcxaatexit \
42 bug-dlsym1-lib1 bug-dlsym1-lib2 bug-atexit1-lib \
43 bug-atexit2-lib bug-atexit3-lib bug-dl-leaf-lib \
44 bug-dl-leaf-lib-cb
46 failtestmod.so-no-z-defs = yes
47 glreflib2.so-no-z-defs = yes
48 errmsg1mod.so-no-z-defs = yes
50 ifeq (yes,$(build-shared))
51 tests += tststatic tststatic2 tststatic3 tststatic4 tststatic5
52 tests-static += tststatic tststatic2 tststatic3 tststatic4 tststatic5
53 modules-names += modstatic modstatic2 modstatic3 modstatic5
54 tststatic-ENV = LD_LIBRARY_PATH=$(objpfx):$(common-objpfx):$(common-objpfx)elf
55 tststatic2-ENV = $(tststatic-ENV)
56 tststatic3-ENV = $(tststatic-ENV)
57 tststatic4-ENV = $(tststatic-ENV)
58 tststatic5-ENV = $(tststatic-ENV)
59 endif
61 extra-test-objs += $(modules-names:=.os)
62 generated := $(modules-names:=.so)
64 include ../Rules
66 test-modules = $(addprefix $(objpfx),$(addsuffix .so,$(modules-names)))
68 ifeq ($(build-shared),yes)
69 # Build all the modules even when not actually running test programs.
70 tests: $(test-modules)
71 endif
73 $(objpfx)glrefmain: $(libdl)
74 $(objpfx)glrefmain.out: $(objpfx)glrefmain \
75 $(objpfx)glreflib1.so $(objpfx)glreflib2.so
77 $(objpfx)failtest: $(libdl)
78 $(objpfx)failtest.out: $(objpfx)failtestmod.so
80 $(objpfx)tst-dladdr: $(libdl)
81 $(objpfx)tst-dladdr.out: $(objpfx)glreflib1.so
83 $(objpfx)tst-dlinfo: $(libdl)
84 $(objpfx)tst-dlinfo.out: $(objpfx)glreflib3.so
85 LDFLAGS-glreflib3.so = -Wl,-rpath,:
87 LDFLAGS-default = $(LDFLAGS-rdynamic)
88 $(objpfx)default: $(libdl) $(objpfx)defaultmod1.so $(objpfx)defaultmod2.so
89 $(objpfx)defaultmod1.so: $(libdl)
90 LDFLAGS-defaultmod2.so = $(LDFLAGS-Bsymbolic)
91 $(objpfx)defaultmod2.so: $(libdl)
93 $(objpfx)errmsg1: $(libdl)
94 $(objpfx)errmsg1.out: $(objpfx)errmsg1 $(objpfx)errmsg1mod.so
96 $(objpfx)tstatexit: $(libdl)
97 $(objpfx)tstatexit.out: $(objpfx)tstatexit $(objpfx)modatexit.so
99 $(objpfx)tstcxaatexit: $(libdl)
100 $(objpfx)tstcxaatexit.out: $(objpfx)tstcxaatexit $(objpfx)modcxaatexit.so
102 $(objpfx)tststatic: $(objpfx)libdl.a
103 $(objpfx)tststatic.out: $(objpfx)tststatic $(objpfx)modstatic.so
105 $(objpfx)tststatic2: $(objpfx)libdl.a
106 $(objpfx)tststatic2.out: $(objpfx)tststatic2 $(objpfx)modstatic.so \
107 $(objpfx)modstatic2.so
109 $(objpfx)modstatic2.so: $(libdl)
111 $(objpfx)tststatic3: $(objpfx)libdl.a
112 $(objpfx)tststatic3.out: $(objpfx)tststatic3 $(objpfx)modstatic3.so
114 $(objpfx)tststatic4: $(objpfx)libdl.a
115 $(objpfx)tststatic4.out: $(objpfx)tststatic4 $(objpfx)modstatic3.so
117 $(objpfx)tststatic5: $(objpfx)libdl.a
118 $(objpfx)tststatic5.out: $(objpfx)tststatic5 $(objpfx)modstatic5.so
120 $(objpfx)bug-dlopen1: $(libdl)
122 $(objpfx)bug-dlsym1: $(libdl) $(objpfx)bug-dlsym1-lib2.so
123 $(objpfx)bug-dlsym1.out: $(objpfx)bug-dlsym1-lib1.so \
124 $(objpfx)bug-dlsym1-lib2.so
125 $(objpfx)bug-dlsym1-lib1.so: $(objpfx)bug-dlsym1-lib2.so
127 $(objpfx)bug-atexit1: $(libdl)
128 $(objpfx)bug-atexit1.out: $(objpfx)bug-atexit1-lib.so
130 $(objpfx)bug-atexit2: $(libdl)
131 $(objpfx)bug-atexit2.out: $(objpfx)bug-atexit2-lib.so
133 LDLIBS-bug-atexit3-lib.so = -lstdc++ -lgcc_eh
134 $(objpfx)bug-atexit3: $(libdl)
135 $(objpfx)bug-atexit3.out: $(objpfx)bug-atexit3-lib.so
137 $(objpfx)bug-dl-leaf: $(objpfx)bug-dl-leaf-lib.so
138 $(objpfx)bug-dl-leaf.out: $(objpfx)bug-dl-leaf-lib-cb.so
139 $(objpfx)bug-dl-leaf-lib.so: $(libdl)
140 $(objpfx)bug-dl-leaf-lib-cb.so: $(objpfx)bug-dl-leaf-lib.so