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

« back to all changes in this revision

Viewing changes to lib/odbc/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
include $(ERL_TOP)/make/target.mk
 
20
include $(ERL_TOP)/make/$(TARGET)/otp.mk
 
21
 
 
22
 
 
23
INCLUDES= -I. -I$(ERL_TOP)/lib/test_server/include/  -I$(ERL_TOP)/lib/odbc/src
 
24
 
 
25
# ----------------------------------------------------
 
26
# Target Specs
 
27
# ----------------------------------------------------
 
28
 
 
29
MODULES= \
 
30
        odbc_start_SUITE \
 
31
        odbc_connect_SUITE \
 
32
        odbc_query_SUITE \
 
33
        odbc_data_type_SUITE \
 
34
        odbc_test_lib \
 
35
        oracle \
 
36
        sqlserver \
 
37
        postgres
 
38
 
 
39
EBIN = .
 
40
 
 
41
ERL_FILES= $(MODULES:%=%.erl)
 
42
 
 
43
HRL_FILES= odbc_test.hrl\
 
44
 
 
45
TARGET_FILES= \
 
46
        $(MODULES:%=$(EBIN)/%.$(EMULATOR))
 
47
 
 
48
SPEC_FILES = odbc.spec
 
49
COVER_FILE = odbc.cover
 
50
 
 
51
EMAKEFILE  = Emakefile
 
52
MAKE_EMAKE = $(wildcard $(ERL_TOP)/make/make_emakefile)
 
53
 
 
54
ifeq ($(MAKE_EMAKE),)
 
55
BUILDTARGET   = $(TARGET_FILES)
 
56
RELTEST_FILES = $(SPEC_FILES) $(SOURCE)
 
57
else
 
58
BUILDTARGET   = emakebuild
 
59
RELTEST_FILES = $(EMAKEFILE) $(SPEC_FILES) $(SOURCE)
 
60
endif
 
61
 
 
62
# ----------------------------------------------------
 
63
# Release directory specification
 
64
# ----------------------------------------------------
 
65
RELSYSDIR = $(RELEASE_PATH)/odbc_test
 
66
 
 
67
# ----------------------------------------------------
 
68
# FLAGS
 
69
# ----------------------------------------------------
 
70
 
 
71
ERL_COMPILE_FLAGS += $(INCLUDES) \
 
72
 
 
73
# ----------------------------------------------------
 
74
# Targets
 
75
# ----------------------------------------------------
 
76
 
 
77
tests debug opt: $(BUILDTARGET)
 
78
 
 
79
targets: $(TARGET_FILES)
 
80
 
 
81
.PHONY: emakebuild
 
82
 
 
83
emakebuild: $(EMAKEFILE)
 
84
 
 
85
$(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)
 
88
 
 
89
clean:
 
90
        rm -f $(TARGET_FILES)
 
91
        rm -f core
 
92
 
 
93
docs:
 
94
 
 
95
# ----------------------------------------------------
 
96
# Release Target
 
97
# ---------------------------------------------------- 
 
98
include $(ERL_TOP)/make/otp_release_targets.mk
 
99
 
 
100
release_spec: opt
 
101
 
 
102
release_tests_spec: opt
 
103
        $(INSTALL_DIR) $(RELSYSDIR)
 
104
        $(INSTALL_DATA) $(SPEC_FILES) $(COVER_FILE) $(ERL_FILES) $(HRL_FILES) $(RELSYSDIR)
 
105
 
 
106
 
 
107
release_docs_spec:
 
108
 
 
109
 
 
110
 
 
111
 
 
112
 
 
113
 
 
114