4
# Copyright Ericsson AB 1999-2011. All Rights Reserved.
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/.
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
20
include $(ERL_TOP)/make/target.mk
21
include $(ERL_TOP)/make/$(TARGET)/otp.mk
23
# ----------------------------------------------------
25
# ----------------------------------------------------
28
# ----------------------------------------------------
29
# Release directory specification
30
# ----------------------------------------------------
31
RELSYSDIR = $(RELEASE_PATH)/cosEvent_test
33
# ----------------------------------------------------
35
# ----------------------------------------------------
36
TEST_SPEC_FILE = cosEvent.spec
37
COVER_FILE = cosEvent.cover
41
event_test_server.idl \
43
IDLOUTDIR = idl_output
46
event_test_PushC_impl \
47
event_test_PullC_impl \
48
event_test_PushS_impl \
49
event_test_PullS_impl \
57
oe_event_test_server \
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
69
GEN_MODULES = $(GEN_MOD_COS)
71
ERL_FILES = $(MODULES:%=%.erl)
75
GEN_HRL_FILES = $(GEN_HRL_COS)
78
$(GEN_HRL_FILES:%=$(IDLOUTDIR)/%) \
79
$(GEN_MODULES:%=$(IDLOUTDIR)/%.erl)
81
GEN_TARGET_FILES = $(GEN_MODULES:%=$(IDLOUTDIR)/%.$(EMULATOR))
83
SUITE_TARGET_FILES = $(MODULES:%=%.$(EMULATOR))
89
# ----------------------------------------------------
91
# ----------------------------------------------------
92
# ----------------------------------------------------
94
# ----------------------------------------------------
95
ERL_IDL_FLAGS += -pa $(ERL_TOP)/lib/orber/ebin -pa $(ERL_TOP)/lib/ic/ebin
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
105
# ----------------------------------------------------
107
# ----------------------------------------------------
108
tests debug opt: $(TARGET_FILES)
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)
120
# ----------------------------------------------------
122
# ----------------------------------------------------
125
# Each IDL file produces many target files so no pattern
129
$(GEN_HRL_COS:%=$(IDLOUTDIR)/%) \
130
$(GEN_MOD_COS:%=$(IDLOUTDIR)/%.erl)
133
$(TGT_COS): event_test_server.idl
134
erlc $(ERL_IDL_FLAGS) -o$(IDLOUTDIR) event_test_server.idl
136
# ----------------------------------------------------
138
# ----------------------------------------------------
139
# We don't copy generated intermediate erlang and hrl files
141
include $(ERL_TOP)/make/otp_release_targets.mk
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)