~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to engines/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2006-05-15 16:00:58 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20060515160058-pg6lnbkkpkwpdj2e
Tags: upstream-0.9.8b
ImportĀ upstreamĀ versionĀ 0.9.8b

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
 
# SSLeay/engines/Makefile
 
2
# OpenSSL/engines/Makefile
3
3
#
4
4
 
5
5
DIR=    engines
84
84
# XXXXX This currently only works on systems that use .so as suffix
85
85
# for shared libraries as well as for Cygwin which uses the
86
86
# dlfcn_name_converter and therefore stores the engines with .so suffix, too.
 
87
# XXXXX This was extended to HP-UX dl targets, which use .sl suffix.
87
88
install:
88
89
        @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
89
90
        @if [ -n "$(SHARED_LIBS)" ]; then \
91
92
                for l in $(LIBNAMES); do \
92
93
                        ( echo installing $$l; \
93
94
                          if [ "$(PLATFORM)" != "Cygwin" ]; then \
94
 
                                  cp lib$$l.so $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.so.new; \
 
95
                                case "$(CFLAGS)" in \
 
96
                                *DSO_DLFCN*)    sfx="so";;      \
 
97
                                *DSO_DL*)       sfx="sl";;      \
 
98
                                *)              sfx="bad";;     \
 
99
                                esac; \
 
100
                                cp lib$$l.$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \
95
101
                          else \
96
 
                                  cp cyg$$l.dll $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.so.new; \
 
102
                                sfx="so"; \
 
103
                                cp cyg$$l.dll $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \
97
104
                          fi; \
98
 
                          chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.so.new; \
99
 
                          mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.so.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.so ); \
 
105
                          chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \
 
106
                          mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx ); \
100
107
                done; \
101
108
        fi
102
109