~clint-fewbar/ubuntu/precise/erlang/merge-15b

« back to all changes in this revision

Viewing changes to lib/ssl/c_src/Makefile.win32

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2011-12-15 19:20:10 UTC
  • mfrom: (1.1.18) (3.5.15 sid)
  • mto: (3.5.16 sid)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20111215192010-jnxcfe3tbrpp0big
Tags: 1:15.b-dfsg-1
* New upstream release.
* Upload to experimental because this release breaks external drivers
  API along with ABI, so several applications are to be fixed.
* Removed SSL patch because the old SSL implementation is removed from
  the upstream distribution.
* Removed never used patch which added native code to erlang beam files.
* Removed the erlang-docbuilder binary package because the docbuilder
  application was dropped by upstream.
* Documented dropping ${erlang-docbuilder:Depends} substvar in
  erlang-depends(1) manpage.
* Made erlang-base and erlang-base-hipe provide virtual package
  erlang-abi-15.b (the number means the first erlang version, which
  provides current ABI).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# %CopyrightBegin%
3
 
4
 
# Copyright Ericsson AB 1999-2009. All Rights Reserved.
5
 
6
 
# The contents of this file are subject to the Erlang Public License,
7
 
# Version 1.1, (the "License"); you may not use this file except in
8
 
# compliance with the License. You should have received a copy of the
9
 
# Erlang Public License along with this software. If not, it can be
10
 
# retrieved online at http://www.erlang.org/.
11
 
12
 
# Software distributed under the License is distributed on an "AS IS"
13
 
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
 
# the License for the specific language governing rights and limitations
15
 
# under the License.
16
 
17
 
# %CopyrightEnd%
18
 
#
19
 
 
20
 
#
21
 
# SSL - Makefile for Windows NT
22
 
#
23
 
# It is assumed that the following environment variables have been set:
24
 
#
25
 
# INCLUDE       X:\MSDEV\INCLUDE
26
 
# LIB           X:\MSDEV\LIB
27
 
#
28
 
# so that standard include files, and the socket library can be found.
29
 
#
30
 
# When ssl_esock.exe is run, the PATH environment variable must contain
31
 
# the name of a directory that contains ssleay32.dll and libeay32.dll,
32
 
# and windows socket dll.
33
 
#
34
 
 
35
 
# Roots
36
 
!ifndef OPENSSL_ROOT
37
 
!       error "Makefile.win32: ssl: OPENSSL_ROOT not set"
38
 
!endif
39
 
 
40
 
TARGET = win32
41
 
 
42
 
BINDIR = ..\priv\bin\$(TARGET)
43
 
OBJDIR = ..\priv\obj\$(TARGET)
44
 
 
45
 
!if !exist($(BINDIR)) 
46
 
!       if [mkdir $(BINDIR)]
47
 
!       error "SSL: cannot create BINDIR"
48
 
!       endif
49
 
!endif
50
 
 
51
 
!if !exist($(OBJDIR))
52
 
!       if [mkdir $(OBJDIR)]
53
 
!       error "SSL: cannot create OBJDIR"
54
 
!       endif
55
 
!endif
56
 
 
57
 
# Includes
58
 
#
59
 
OPENSSL_INCLUDE = $(OPENSSL_ROOT)\inc32
60
 
 
61
 
INCLUDES = /I. /I$(OPENSSL_INCLUDE)
62
 
 
63
 
# Libraries
64
 
#
65
 
OPENSSL_LIBDIR = $(OPENSSL_ROOT)\out32dll
66
 
OPENSSL_LIBS = \
67
 
        $(OPENSSL_LIBDIR)\ssleay32.lib \
68
 
        $(OPENSSL_LIBDIR)\libeay32.lib 
69
 
 
70
 
!ifdef ESOCK_WINSOCK2
71
 
WINSOCK_LIB = ws2_32.lib 
72
 
DEFS = -DESOCK_WINSOCK2
73
 
!else
74
 
WINSOCK_LIB = wsock32.lib
75
 
!endif  
76
 
 
77
 
# Compiler options
78
 
79
 
# NOTE: Size of fd_set is set in esock_winsock.h but can be overridden
80
 
# with a -D option here.
81
 
#
82
 
OPTS = /MDd /G5 /Ox /O2 /Ob2 /Z7
83
 
DEFS = -D__WIN32__ -DWIN32 $(DEFS)
84
 
CFLAGS = $(INCLUDES) /nologo $(OPTS) $(DEFS)
85
 
 
86
 
# Object files
87
 
#
88
 
SSL_BASE_OBJS = \
89
 
        $(OBJDIR)\esock.obj \
90
 
        $(OBJDIR)\debuglog.obj \
91
 
        $(OBJDIR)\esock_poll$(obj) \
92
 
        $(OBJDIR)\esock_osio.obj \
93
 
        $(OBJDIR)\esock_utils.obj \
94
 
        $(OBJDIR)\esock_posix_str.obj
95
 
 
96
 
OPENSSL_OBJS = \
97
 
        $(OBJDIR)\esock_openssl.obj
98
 
 
99
 
#
100
 
# Targets
101
 
#
102
 
 
103
 
all:    $(SSL_BASE_OBJS) $(OPENSSL_OBJS) $(BINDIR)\ssl_esock.exe
104
 
 
105
 
clean: 
106
 
        del $(BINDIR)\*.exe
107
 
        del $(OBJDIR)\*.obj
108
 
 
109
 
# Inference rule .c.obj:
110
 
#
111
 
{.}.c{$(OBJDIR)}.obj:
112
 
        $(CC) $(CFLAGS) /c /Fo$@ $(*B).c
113
 
 
114
 
# Binary
115
 
#
116
 
$(BINDIR)\ssl_esock.exe:        $(SSL_BASE_OBJS) $(OPENSSL_OBJS)
117
 
        $(CC) /nologo  $(SSL_BASE_OBJS) $(OPENSSL_OBJS) $(OPENSSL_LIBS) \
118
 
                $(WINSOCK_LIB) /Fe$(BINDIR)\ssl_esock.exe
119
 
 
120
 
 
121
 
 
122
 
# Dependencies
123
 
#
124
 
$(OBJDIR)\esock.o:      esock.h debuglog.h esock_ssl.h esock_osio.h \
125
 
                        esock_utils.h esock_winsock.h
126
 
$(OBJDIR)\debuglog.o:   debuglog.h esock_ssl.h esock_utils.h
127
 
$(OBJDIR)\esock_osio.o: esock_osio.h esock.h debuglog.h esock_utils.h \
128
 
                        esock_winsock.h
129
 
$(OBJDIR)\esock_utils.o:        esock_utils.h
130
 
$(OBJDIR)\esock_posix_str.o:    esock_posix_str.h esock_winsock.h
131
 
 
132
 
$(OBJDIR)\esock_openssl.o:      esock.h esock_ssl.h debuglog.h esock_utils.h \
133
 
                                $(OPENSSL_INCLUDE)\crypto.h \
134
 
                                $(OPENSSL_INCLUDE)\ssl.h \
135
 
                                $(OPENSSL_INCLUDE)\err.h
136
 
 
137
 
 
138
 
 
139
 
 
140
 
 
141
 
 
142
 
 
143
 
 
144
 
 
145
 
 
146
 
 
147