File: Makefile.am

package info (click to toggle)
myodbc 3.51.09-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,400 kB
  • ctags: 1,596
  • sloc: ansic: 29,806; sh: 10,765; cpp: 627; makefile: 610
file content (99 lines) | stat: -rw-r--r-- 2,347 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
91
92
93
94
95
96
97
98
99
##########################################################################
#               MAKEFILE FOR MYODBC 3.51 TEST_LIBRARY                    #
#                             UNIX                                       #
#                    (C) MySQL AB 1995-2003                              #
#                         venu@mysql.com                                 # 
##########################################################################
include Makefile.ini

noinst_PROGRAMS= \
my_connect \
my_basics \
my_param \
my_result \
my_tran \
my_cursor \
my_position \
my_relative \
my_scroll \
my_col_length \
my_blob \
my_bulk \
my_dyn_cursor \
my_unixodbc \
my_keys \
my_tran_ext \
my_catalog \
my_error \
my_use_result \
db_test \
mytest \
mytest2 \
mytest3 \
mytest32

#	
# COMPILATION SPECIFICATION
# 

INCLUDES= -I. -I../include
AM_LDFLAGS= @myodbc_test_linklib@

#	
# BUILDALL SPECIFICATION, BUILD AND RUN ALL SAMPLES
# 

buildall: all
testall  : all run trun
runall: testall
test: testall
testlib: testall

# PASS DSN UID PWD as the command line arguments to each sample
#

run: 
	./my_connect $(MYDSN) $(MYUID) $(MYPWD)
	./my_basics $(MYDSN) $(MYUID) $(MYPWD)
	./my_param $(MYDSN) $(MYUID) $(MYPWD)
	./my_result $(MYDSN) $(MYUID) $(MYPWD)
	./my_cursor $(MYDSN) $(MYUID) $(MYPWD)
	./my_tran $(MYDSN) $(MYUID) $(MYPWD)
	./my_position $(MYDSN) $(MYUID) $(MYPWD)
	./my_relative $(MYDSN) $(MYUID) $(MYPWD)
	./my_scroll $(MYDSN) $(MYUID) $(MYPWD)
	./my_col_length $(MYDSN) $(MYUID) $(MYPWD)
	./my_blob $(MYDSN) $(MYUID) $(MYPWD)
	./my_bulk $(MYDSN) $(MYUID) $(MYPWD)
	./my_keys $(MYDSN) $(MYUID) $(MYPWD)
	./my_unixodbc $(MYDSN) $(MYUID) $(MYPWD)
	./my_dyn_cursor $(MYDSN) $(MYUID) $(MYPWD)
	./my_tran_ext $(MYDSN) $(MYUID) $(MYPWD)
	./my_catalog $(MYDSN) $(MYUID) $(MYPWD)
	./my_error $(MYDSN) $(MYUID) $(MYPWD)
	./my_use_result 1000 $(MYDSN) $(MYUID) $(MYPWD)	

trun:
	./mytest32 $(MYDSN) $(MYUID) $(MYPWD)
	./mytest32 $(MYDSN) $(MYUID) $(MYPWD)
	./mytest3 -1 $(MYDSN) $(MYUID) $(MYPWD)
	./mytest3 -1 $(MYDSN) $(MYUID) $(MYPWD)
	./mytest -1 $(MYDSN) $(MYUID) $(MYPWD)
	./mytest -1 $(MYDSN) $(MYUID) $(MYPWD)
     
#	
# CLEAN SPECIFICATION
#            

clean: 
	rm -f my*dump
	rm -f core
	rm -f *~
	rm -f *.log
	rm -f *.da
	rm -f *.bb
	rm -f *.bbg
	rm -f gmon.*

EXTRA_DIST=mytest3.h mytest.h my_utility.h WIN-Makefile Makefile.ini