]> granicus.if.org Git - apache/blob - build/special.mk
apply Apache License, Version 2.0
[apache] / build / special.mk
1 # Copyright 2000-2004 Apache Software Foundation
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 #
15 #
16 # The build environment was provided by Sascha Schumann.
17
18 all: all-recursive
19
20 include $(builddir)/modules.mk
21 TARGETS = $(static)
22 SHARED_TARGETS = $(shared)
23 INSTALL_TARGETS = install-modules
24
25 install-modules:
26         @test -d $(DESTDIR)$(libexecdir) || $(MKINSTALLDIRS) $(DESTDIR)$(libexecdir)
27         @builtin='$(BUILTIN_LIBS)'; \
28         has_mod_so=`echo $$builtin|sed 's/^.*libso.*$$/has_mod_so/'`; \
29         if [ "x$$has_mod_so" = "xhas_mod_so" ]; then \
30                 list='$(shared)'; \
31                 for i in $$list; do \
32                         $(top_srcdir)/build/instdso.sh SH_LIBTOOL='$(SH_LIBTOOL)' $$i $(DESTDIR)$(libexecdir); \
33                 done; \
34         fi      
35
36 include $(top_builddir)/build/rules.mk
37