File: Makefile.win32

package info (click to toggle)
odpic 5.6.4-1
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 4,320 kB
  • sloc: ansic: 42,451; sql: 2,153; makefile: 218; python: 123; sh: 15
file content (90 lines) | stat: -rw-r--r-- 3,547 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#------------------------------------------------------------------------------
# Copyright (c) 2017, 2025, Oracle and/or its affiliates.
#
# This software is dual-licensed to you under the Universal Permissive License
# (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License
# 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose
# either license.
#
# If you elect to accept the software under the Apache License, Version 2.0,
# the following applies:
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#------------------------------------------------------------------------------
#
# Sample nmake Makefile if you wish to build the ODPI-C test executables.
#
# Look at README.md for information on how to build and run the tests.
#------------------------------------------------------------------------------

BUILD_DIR = build
INCLUDE_DIR = ..\include
LIB_DIR = ..\lib

LIBS = $(LIB_DIR)\odpic.lib
COMMON_OBJS = $(BUILD_DIR)\TestLib.obj

EXES = $(BUILD_DIR)\test_1000_context.exe \
       $(BUILD_DIR)\test_1100_numbers.exe \
       $(BUILD_DIR)\test_1200_conn.exe \
       $(BUILD_DIR)\test_1300_conn_properties.exe \
       $(BUILD_DIR)\test_1400_pool.exe \
       $(BUILD_DIR)\test_1500_pool_properties.exe \
       $(BUILD_DIR)\test_1600_queries.exe \
       $(BUILD_DIR)\test_1700_transactions.exe \
       $(BUILD_DIR)\test_1800_misc.exe \
       $(BUILD_DIR)\test_1900_variables.exe \
       $(BUILD_DIR)\test_2000_statements.exe \
       $(BUILD_DIR)\test_2100_data_types.exe \
       $(BUILD_DIR)\test_2200_object_types.exe \
       $(BUILD_DIR)\test_2300_objects.exe \
       $(BUILD_DIR)\test_2400_enq_options.exe \
       $(BUILD_DIR)\test_2500_deq_options.exe \
       $(BUILD_DIR)\test_2600_msg_props.exe \
       $(BUILD_DIR)\test_2700_aq.exe \
       $(BUILD_DIR)\test_2800_lobs.exe \
       $(BUILD_DIR)\test_2900_implicit_results.exe \
       $(BUILD_DIR)\test_3000_scroll_cursors.exe \
       $(BUILD_DIR)\test_3100_subscriptions.exe \
       $(BUILD_DIR)\test_3200_batch_errors.exe \
       $(BUILD_DIR)\test_3300_dml_returning.exe \
       $(BUILD_DIR)\test_3400_soda_db.exe \
       $(BUILD_DIR)\test_3500_soda_coll.exe \
       $(BUILD_DIR)\test_3600_soda_coll_cursor.exe \
       $(BUILD_DIR)\test_3700_soda_doc.exe \
       $(BUILD_DIR)\test_3800_soda_doc_cursor.exe \
       $(BUILD_DIR)\test_3900_sess_tags.exe \
       $(BUILD_DIR)\test_4000_queue.exe \
       $(BUILD_DIR)\test_4100_binds.exe \
       $(BUILD_DIR)\test_4200_rowids.exe \
       $(BUILD_DIR)\test_4300_json.exe \
       $(BUILD_DIR)\test_4400_vector.exe \
       $(BUILD_DIR)\test_4500_sessionless_txn.exe \
       $(BUILD_DIR)\TestSuiteRunner.exe

all: $(EXES) $(BUILD_DIR)

$(EXES): $(BUILD_DIR) $(COMMON_OBJS) $*.obj

clean:
	@if exist $(BUILD_DIR) rmdir /S /Q $(BUILD_DIR)

$(BUILD_DIR):
	@if not exist $(BUILD_DIR) mkdir $(BUILD_DIR)

{.}.c{$(BUILD_DIR)}.obj ::
	cl /nologo /c /Fo$(BUILD_DIR)\ /I$(INCLUDE_DIR) $<

{$(BUILD_DIR)}.obj{$(BUILD_DIR)}.exe:
	link /nologo /out:$@ $< $(COMMON_OBJS) $(LIBS)