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

« back to all changes in this revision

Viewing changes to lib/cosEvent/test/Makefile

  • 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 1999-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
include $(ERL_TOP)/make/target.mk
 
21
include $(ERL_TOP)/make/$(TARGET)/otp.mk
 
22
 
 
23
# ----------------------------------------------------
 
24
# Application version
 
25
# ----------------------------------------------------
 
26
include ../vsn.mk
 
27
VSN=$(COSEVENT_VSN)
 
28
# ----------------------------------------------------
 
29
# Release directory specification
 
30
# ----------------------------------------------------
 
31
RELSYSDIR = $(RELEASE_PATH)/cosEvent_test
 
32
 
 
33
# ----------------------------------------------------
 
34
# Target Specs
 
35
# ----------------------------------------------------
 
36
TEST_SPEC_FILE = cosEvent.spec
 
37
COVER_FILE = cosEvent.cover
 
38
 
 
39
 
 
40
IDL_FILES = \
 
41
        event_test_server.idl \
 
42
 
 
43
IDLOUTDIR = idl_output
 
44
 
 
45
MODULES =  \
 
46
        event_test_PushC_impl \
 
47
        event_test_PullC_impl \
 
48
        event_test_PushS_impl \
 
49
        event_test_PullS_impl \
 
50
        event_channel_SUITE \
 
51
        generated_SUITE
 
52
 
 
53
GEN_MOD_COS = \
 
54
        event_test_PullC \
 
55
        event_test_PushS \
 
56
        event_test_PullS \
 
57
        oe_event_test_server \
 
58
        event_test_PushC
 
59
 
 
60
GEN_HRL_COS = \
 
61
        event_test.hrl \
 
62
        event_test_PushC.hrl \
 
63
        event_test_PullC.hrl \
 
64
        event_test_PushS.hrl \
 
65
        event_test_PullS.hrl \
 
66
        oe_event_test_server.hrl
 
67
 
 
68
 
 
69
GEN_MODULES = $(GEN_MOD_COS) 
 
70
 
 
71
ERL_FILES = $(MODULES:%=%.erl)
 
72
 
 
73
HRL_FILES = 
 
74
 
 
75
GEN_HRL_FILES = $(GEN_HRL_COS)
 
76
 
 
77
GEN_FILES = \
 
78
        $(GEN_HRL_FILES:%=$(IDLOUTDIR)/%) \
 
79
        $(GEN_MODULES:%=$(IDLOUTDIR)/%.erl) 
 
80
 
 
81
GEN_TARGET_FILES = $(GEN_MODULES:%=$(IDLOUTDIR)/%.$(EMULATOR))
 
82
 
 
83
SUITE_TARGET_FILES = $(MODULES:%=%.$(EMULATOR))
 
84
 
 
85
TARGET_FILES = \
 
86
        $(GEN_TARGET_FILES) \
 
87
        $(SUITE_TARGET_FILES)
 
88
 
 
89
# ----------------------------------------------------
 
90
# PROGRAMS
 
91
# ----------------------------------------------------
 
92
# ----------------------------------------------------
 
93
# FLAGS
 
94
# ----------------------------------------------------
 
95
ERL_IDL_FLAGS += -pa $(ERL_TOP)/lib/orber/ebin -pa $(ERL_TOP)/lib/ic/ebin
 
96
 
 
97
ERL_COMPILE_FLAGS += $(ERL_IDL_FLAGS) \
 
98
        -pa $(ERL_TOP)/lib/test_server/ebin \
 
99
        -pa $(ERL_TOP)/lib/cosEvent/ebin \
 
100
        -pa $(ERL_TOP)/lib/cosEvent/test/idl_output \
 
101
        -I$(ERL_TOP)/lib/cosEvent \
 
102
        -I$(ERL_TOP)/lib/cosEvent/test/$(IDLOUTDIR) \
 
103
        -I$(ERL_TOP)/lib/test_server/include
 
104
 
 
105
# ----------------------------------------------------
 
106
# Targets
 
107
# ----------------------------------------------------
 
108
tests debug opt: $(TARGET_FILES) 
 
109
 
 
110
clean:
 
111
        rm -f idl_output/*
 
112
        rm -rf java_initial_reference_idl java_cos_naming_idl 
 
113
        rm -rf java_iiop_module_idl java_output/*
 
114
        rm -f $(TARGET_FILES) 
 
115
        rm -f errs core *~
 
116
 
 
117
 
 
118
docs:
 
119
 
 
120
# ----------------------------------------------------
 
121
# Special Targets
 
122
# ----------------------------------------------------
 
123
 
 
124
#
 
125
# Each IDL file produces many target files so no pattern
 
126
# rule can be used.
 
127
#
 
128
TGT_COS = \
 
129
        $(GEN_HRL_COS:%=$(IDLOUTDIR)/%) \
 
130
        $(GEN_MOD_COS:%=$(IDLOUTDIR)/%.erl)
 
131
 
 
132
 
 
133
$(TGT_COS): event_test_server.idl
 
134
        erlc $(ERL_IDL_FLAGS) -o$(IDLOUTDIR) event_test_server.idl
 
135
 
 
136
# ----------------------------------------------------
 
137
# Release Targets
 
138
# ---------------------------------------------------- 
 
139
# We don't copy generated intermediate erlang and hrl files
 
140
 
 
141
include $(ERL_TOP)/make/otp_release_targets.mk
 
142
 
 
143
release_spec: 
 
144
 
 
145
release_docs_spec:
 
146
 
 
147
release_tests_spec: tests
 
148
        $(INSTALL_DIR) $(RELSYSDIR)
 
149
        $(INSTALL_DATA) $(IDL_FILES)  $(TEST_SPEC_FILE) \
 
150
                $(COVER_FILE) $(ERL_FILES) $(RELSYSDIR)
 
151
        $(INSTALL_DATA) $(SUITE_TARGET_FILES) $(RELSYSDIR)
 
152
        $(INSTALL_DIR) $(RELSYSDIR)/$(IDLOUTDIR)
 
153
        $(INSTALL_DATA) $(GEN_TARGET_FILES) $(GEN_FILES) \
 
154
                $(RELSYSDIR)/$(IDLOUTDIR)
 
155