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
19
include $(ERL_TOP)/make/target.mk
20
include $(ERL_TOP)/make/$(TARGET)/otp.mk
23
INCLUDES= -I. -I$(ERL_TOP)/lib/test_server/include/ -I$(ERL_TOP)/lib/odbc/src
25
# ----------------------------------------------------
27
# ----------------------------------------------------
33
odbc_data_type_SUITE \
41
ERL_FILES= $(MODULES:%=%.erl)
43
HRL_FILES= odbc_test.hrl\
46
$(MODULES:%=$(EBIN)/%.$(EMULATOR))
48
SPEC_FILES = odbc.spec
49
COVER_FILE = odbc.cover
52
MAKE_EMAKE = $(wildcard $(ERL_TOP)/make/make_emakefile)
55
BUILDTARGET = $(TARGET_FILES)
56
RELTEST_FILES = $(SPEC_FILES) $(SOURCE)
58
BUILDTARGET = emakebuild
59
RELTEST_FILES = $(EMAKEFILE) $(SPEC_FILES) $(SOURCE)
62
# ----------------------------------------------------
63
# Release directory specification
64
# ----------------------------------------------------
65
RELSYSDIR = $(RELEASE_PATH)/odbc_test
67
# ----------------------------------------------------
69
# ----------------------------------------------------
71
ERL_COMPILE_FLAGS += $(INCLUDES) \
73
# ----------------------------------------------------
75
# ----------------------------------------------------
77
tests debug opt: $(BUILDTARGET)
79
targets: $(TARGET_FILES)
83
emakebuild: $(EMAKEFILE)
86
$(MAKE_EMAKE) $(ERL_COMPILE_FLAGS) -o$(EBIN) '*_SUITE_make' | grep -v Warning > $(EMAKEFILE)
87
$(MAKE_EMAKE) $(ERL_COMPILE_FLAGS) -o$(EBIN) $(MODULES) | grep -v Warning >> $(EMAKEFILE)
95
# ----------------------------------------------------
97
# ----------------------------------------------------
98
include $(ERL_TOP)/make/otp_release_targets.mk
102
release_tests_spec: opt
103
$(INSTALL_DIR) $(RELSYSDIR)
104
$(INSTALL_DATA) $(SPEC_FILES) $(COVER_FILE) $(ERL_FILES) $(HRL_FILES) $(RELSYSDIR)