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

« back to all changes in this revision

Viewing changes to lib/ic/test/erl_client_c_server_proto_SUITE_data/Makefile.src

  • 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 2004-2011. 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
# Makefile.src for erl_client_c_server test
 
21
# Note: This file *must* work for both Unix and Windows
 
22
#
 
23
# We use both `rm' (Unix) and `del' (Windows) for removing files, but
 
24
# with a `-' in front so that the error in not finding `rm' (`del') on
 
25
# Windows (Unix) is ignored.
 
26
#
 
27
# VxWorks? XXX 
 
28
#
 
29
 
 
30
.SUFFIXES:
 
31
.SUFFIXES: .c .h .erl .idl @obj@ .@EMULATOR@
 
32
 
 
33
 
 
34
# Variables from ts: 
 
35
#
 
36
 
 
37
ERL_INCLUDE = @erl_include@
 
38
 
 
39
IC_INCLUDE_PATH = @ic_include_path@
 
40
IC_LIB = @ic_libpath@@DS@@ic_lib@
 
41
 
 
42
ERL_INTERFACE_INCLUDE = @erl_interface_include@
 
43
ERL_INTERFACE_LIB = @erl_interface_libpath@@DS@@erl_interface_lib@
 
44
ERL_INTERFACE_EILIB = @erl_interface_libpath@@DS@@erl_interface_eilib@
 
45
ERL_INTERFACE_THREADLIB = @erl_interface_threadlib@
 
46
ERL_INTERFACE_SOCK_LIBS = @erl_interface_sock_libs@
 
47
 
 
48
CC = @CC@
 
49
## XXX Should set warning flag with a DEBUG_FLAG 
 
50
CFLAGS = @CFLAGS@ @DEFS@ -I$(ERL_INCLUDE) \
 
51
        -I$(IC_INCLUDE_PATH) -I$(ERL_INTERFACE_INCLUDE)
 
52
 
 
53
LD = @LD@
 
54
LDFLAGS = @CROSSLDFLAGS@
 
55
LIBS =  $(IC_LIB) $(ERL_INTERFACE_LIB) $(ERL_INTERFACE_EILIB) \
 
56
        $(ERL_INTERFACE_THREADLIB) @LIBS@ $(ERL_INTERFACE_SOCK_LIBS)
 
57
ERLC = erlc
 
58
 
 
59
# Generated C header files
 
60
GEN_H_FILES = \
 
61
        m__s.h \
 
62
        m_i__s.h \
 
63
        oe_erl_c_test__s.h
 
64
 
 
65
# Generated C files 
 
66
GEN_C_FILES =  \
 
67
        m__s.c \
 
68
        m_i__s.c \
 
69
        oe_code_m_a.c \
 
70
        oe_code_m_arr1.c \
 
71
        oe_code_m_arr2.c \
 
72
        oe_code_m_arr3.c \
 
73
        oe_code_m_aseq.c \
 
74
        oe_code_m_b.c \
 
75
        oe_code_m_bseq.c \
 
76
        oe_code_m_dd.c \
 
77
        oe_code_m_dyn.c \
 
78
        oe_code_m_dyn_sl.c \
 
79
        oe_code_m_es.c \
 
80
        oe_code_m_et.c \
 
81
        oe_code_m_etseq.c \
 
82
        oe_code_m_fruit.c \
 
83
        oe_code_m_lseq.c \
 
84
        oe_code_m_s.c \
 
85
        oe_code_m_s_sl.c \
 
86
        oe_code_m_sarr3.c \
 
87
        oe_code_m_simple.c \
 
88
        oe_code_m_ssarr3.c \
 
89
        oe_code_m_sseq.c \
 
90
        oe_code_m_ssstr3.c \
 
91
        oe_code_m_sstr3.c \
 
92
        oe_code_m_str1.c \
 
93
        oe_code_m_str3.c \
 
94
        oe_code_m_strRec.c \
 
95
        oe_code_m_strRec_str5.c \
 
96
        oe_code_m_strRec_str7.c \
 
97
        oe_erl_c_test__s.c
 
98
 
 
99
GEN_HRL_FILES = \
 
100
        m.hrl \
 
101
        m_i.hrl \
 
102
        oe_erl_c_test.hrl
 
103
 
 
104
GEN_ERL_FILES = \
 
105
        m.erl \
 
106
        m_arr2.erl \
 
107
        m_arr3.erl \
 
108
        m_i.erl \
 
109
        m_str3.erl \
 
110
        oe_erl_c_test.erl
 
111
 
 
112
C_FILES = $(GEN_C_FILES) c_server.c callbacks.c
 
113
 
 
114
OBJS = $(C_FILES:.c=@obj@)
 
115
 
 
116
PGMS = c_server@exe@
 
117
 
 
118
ERL_FILES = $(GEN_ERL_FILES) erl_client.erl
 
119
 
 
120
EBINS = $(ERL_FILES:.erl=.@EMULATOR@)
 
121
 
 
122
 
 
123
all: $(PGMS) $(EBINS)
 
124
 
 
125
clean:  
 
126
        -rm -f $(OBJS) $(GEN_C_FILES) $(GEN_H_FILES) $(PGMS) \
 
127
                $(EBINS) $(GEN_ERL_FILES) $(GEN_HRL_FILES)
 
128
        -del /F /Q $(OBJS) $(GEN_C_FILES) $(GEN_H_FILES) $(PGMS) \
 
129
                $(EBINS) $(GEN_ERL_FILES) $(GEN_HRL_FILES)
 
130
 
 
131
$(PGMS): $(OBJS)
 
132
        $(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
 
133
 
 
134
$(GEN_C_FILES) $(GEN_H_FILES): erl_c_test.idl
 
135
        $(ERLC) -I $(IC_INCLUDE_PATH) "+{be,c_server}" \
 
136
        "+{scoped_op_calls,true}" erl_c_test.idl
 
137
 
 
138
# If we have scoped operation calls for C, we must have that for
 
139
# Erlang as well, if we use the m_i.erl file for calling the server.
 
140
 
 
141
$(GEN_ERL_FILES) $(GEN_HRL_FILES): erl_c_test.idl
 
142
        $(ERLC) -I $(IC_INCLUDE_PATH) "+{be,erl_genserv}" \
 
143
        "+{scoped_op_calls,true}"  "+{timeout,true}" erl_c_test.idl
 
144
 
 
145
.c@obj@:
 
146
        $(CC) -c -o $*@obj@ $(CFLAGS) $<
 
147
 
 
148
.erl.@EMULATOR@:
 
149
        $(ERLC) -W -I $(IC_INCLUDE_PATH) $<
 
150