4
# Copyright Ericsson AB 2000-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
# ----------------------------------------------------
27
VSN=$(COSFILETRANSFER_VSN)
28
# ----------------------------------------------------
29
# Release directory specification
30
# ----------------------------------------------------
31
RELSYSDIR = $(RELEASE_PATH)/cosFileTransfer_test
33
# ----------------------------------------------------
35
# ----------------------------------------------------
36
TEST_SPEC_FILE = cosFileTransfer.spec
37
COVER_FILE = cosFileTransfer.cover
42
IDLOUTDIR = idl_output
51
ERL_FILES = $(MODULES:%=%.erl)
56
$(GEN_HRL_FILES:%=$(IDLOUTDIR)/%) \
57
$(GEN_MODULES:%=$(IDLOUTDIR)/%.erl)
59
GEN_TARGET_FILES = $(GEN_MODULES:%=$(IDLOUTDIR)/%.$(EMULATOR))
61
SUITE_TARGET_FILES = $(MODULES:%=%.$(EMULATOR))
68
# ----------------------------------------------------
70
# ----------------------------------------------------
71
LOCAL_CLASSPATH = $(ERL_TOP)lib/cosFileTransfer/priv:$(ERL_TOP)lib/cosFileTransfer/test
72
# ----------------------------------------------------
74
# ----------------------------------------------------
75
ERL_IDL_FLAGS += -pa $(ERL_TOP)/lib/cosFileTransfer/ebin \
76
-pa $(ERL_TOP)/lib/cosFileTransfer/src \
77
-pa $(ERL_TOP)/lib/cosFileTransfer/include \
78
-pa $(ERL_TOP)/lib/cosProperty/ebin \
79
-pa $(ERL_TOP)/lib/cosProperty/include \
80
-pa $(ERL_TOP)/lib/orber/ebin \
81
-pa $(ERL_TOP)/lib/ic/ebin
83
ERL_COMPILE_FLAGS += \
85
-pa $(ERL_TOP)/lib/orber/include \
86
-pa $(ERL_TOP)/lib/cosProperty/include \
87
-pa $(ERL_TOP)/internal_tools/test_server/ebin \
88
-pa $(ERL_TOP)/lib/cosFileTransfer/ebin \
89
-pa $(ERL_TOP)/lib/cosFileTransfer/include \
90
-pa $(ERL_TOP)/lib/cosFileTransfer/test/idl_output \
91
-I$(ERL_TOP)/lib/orber/include \
92
-I$(ERL_TOP)/lib/cosProperty/include \
93
-I$(ERL_TOP)/lib/cosFileTransfer/src \
94
-I$(ERL_TOP)/lib/cosFileTransfer/include \
95
-I$(ERL_TOP)/lib/cosFileTransfer \
96
-I$(ERL_TOP)/lib/cosFileTransfer/test/$(IDLOUTDIR) \
97
-I$(ERL_TOP)/lib/test_server/include
99
# ----------------------------------------------------
101
# ----------------------------------------------------
104
tests debug opt: $(TARGET_FILES)
108
rm -f $(TARGET_FILES)
113
# ----------------------------------------------------
115
# ----------------------------------------------------
117
# ----------------------------------------------------
119
# ----------------------------------------------------
120
# We don't copy generated intermediate erlang and hrl files
122
include $(ERL_TOP)/make/otp_release_targets.mk
128
release_tests_spec: tests
129
$(INSTALL_DIR) $(RELSYSDIR)
130
$(INSTALL_DATA) $(IDL_FILES) $(TEST_SPEC_FILE) \
131
$(COVER_FILE) $(ERL_FILES) $(RELSYSDIR)
132
$(INSTALL_DATA) $(SUITE_TARGET_FILES) $(RELSYSDIR)
133
chmod -f -R u+w $(RELSYSDIR)