~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to lib/asn1/c_src/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# %CopyrightBegin%
3
 
4
 
# Copyright Ericsson AB 2002-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
 
include $(ERL_TOP)/make/target.mk
21
 
include $(ERL_TOP)/make/$(TARGET)/otp.mk
22
 
 
23
 
ERLANG_OSTYPE = @ERLANG_OSTYPE@
24
 
 
25
 
CC = @CC@
26
 
 
27
 
LD = @DED_LD@
28
 
LIBS = @LIBS@
29
 
 
30
 
LIBDIR = $(ERL_TOP)/lib/asn1/priv/lib/$(TARGET)
31
 
OBJDIR = $(ERL_TOP)/lib/asn1/priv/obj/$(TARGET)
32
 
 
33
 
# ----------------------------------------------------
34
 
# Application version
35
 
# ----------------------------------------------------
36
 
include ../vsn.mk
37
 
VSN=$(ASN1_VSN)
38
 
 
39
 
# ----------------------------------------------------
40
 
# Release directory specification
41
 
# ----------------------------------------------------
42
 
RELSYSDIR = $(RELEASE_PATH)/lib/asn1-$(VSN)
43
 
 
44
 
 
45
 
# ----------------------------------------------------
46
 
# FLAGS misc
47
 
# ----------------------------------------------------
48
 
ifeq ($(TYPE),debug)
49
 
TYPEMARKER = .debug
50
 
else
51
 
TYPEMARKER =
52
 
endif
53
 
 
54
 
EI_LIBDIR = $(ERL_TOP)/lib/erl_interface/obj$(TYPEMARKER)/$(TARGET)
55
 
 
56
 
# ----------------------------------------------------
57
 
# FLAGS
58
 
# ----------------------------------------------------
59
 
EI_INCLUDES = -I$(ERL_TOP)/lib/erl_interface/include
60
 
DRIVER_INCLUDES = -I$(ERL_TOP)/erts/emulator/beam \
61
 
        -I$(ERL_TOP)/erts/emulator/sys/$(ERLANG_OSTYPE)
62
 
CFLAGS = $(DRIVER_INCLUDES) $(EI_INCLUDES) @DED_CFLAGS@
63
 
LDFLAGS += @DED_LDFLAGS@
64
 
 
65
 
LD_INCL_EI = -L$(EI_LIBDIR)
66
 
 
67
 
# ----------------------------------------------------
68
 
# Target Specs
69
 
# ----------------------------------------------------
70
 
 
71
 
C_FILES = asn1_erl_driver.c
72
 
 
73
 
 
74
 
ifeq ($(TARGET),win32)
75
 
LD_EI = -lei_md 
76
 
SHARED_OBJ_FILES = $(LIBDIR)/asn1_erl_drv.dll
77
 
OBJ_FILES = $(OBJDIR)/asn1_erl_drv.o
78
 
CLIB_FLAGS =
79
 
LN=cp
80
 
else
81
 
LD_EI = -lei 
82
 
OBJ_FILES = $(OBJDIR)/asn1_erl_drv.o
83
 
ifeq ($(findstring vxworks,$(TARGET)),vxworks)
84
 
SHARED_OBJ_FILES = $(LIBDIR)/asn1_erl_drv.eld
85
 
CLIB_FLAGS =
86
 
else
87
 
SHARED_OBJ_FILES = $(LIBDIR)/asn1_erl_drv.so
88
 
CLIB_FLAGS = -lc
89
 
endif
90
 
LN= ln -s
91
 
endif
92
 
 
93
 
# ----------------------------------------------------
94
 
# Targets
95
 
# ----------------------------------------------------
96
 
 
97
 
opt: $(OBJDIR) $(LIBDIR) $(SHARED_OBJ_FILES)
98
 
 
99
 
debug: opt
100
 
 
101
 
clean:
102
 
        rm -f core *~ 
103
 
        rm -f $(LIBDIR)/*
104
 
        rm -f $(OBJDIR)/*
105
 
 
106
 
docs:
107
 
 
108
 
# ----------------------------------------------------
109
 
# Special Build Targets
110
 
# ----------------------------------------------------
111
 
 
112
 
 
113
 
$(OBJ_FILES): $(C_FILES) $(OBJDIR)
114
 
        $(CC) -c $(CFLAGS) -o $(OBJ_FILES) $(C_FILES) 
115
 
 
116
 
$(SHARED_OBJ_FILES): $(OBJ_FILES) $(LIBDIR)
117
 
        $(LD) $(LDFLAGS) $(LD_INCL_EI) -o $(SHARED_OBJ_FILES) $(OBJ_FILES) $(LD_EI) $(CLIB_FLAGS) $(LIBS) 
118
 
 
119
 
$(LIBDIR):
120
 
        -mkdir -p $(LIBDIR)
121
 
 
122
 
$(OBJDIR):
123
 
        -mkdir -p $(OBJDIR)
124
 
 
125
 
 
126
 
 
127
 
# ----------------------------------------------------
128
 
# Release Target
129
 
# ----------------------------------------------------
130
 
include $(ERL_TOP)/make/otp_release_targets.mk
131
 
 
132
 
release_spec: opt
133
 
        $(INSTALL_DIR) $(RELSYSDIR)/priv/lib
134
 
        $(INSTALL_DATA) $(SHARED_OBJ_FILES) $(RELSYSDIR)/priv/lib
135
 
        $(INSTALL_DIR) $(RELSYSDIR)/c_src
136
 
        $(INSTALL_DATA) $(C_FILES) $(RELSYSDIR)/c_src
137
 
 
138
 
release_docs_spec:
139