File: WIN-Makefile

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 (137 lines) | stat: -rw-r--r-- 4,456 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
##########################################################################
#                     MAKEFILE FOR MYODBC 3.51 Test Library              #
#                                 WINDOWS                                #
#                         (C) MySQL AB 1997-2003                         #
##########################################################################
!MESSAGE *****************************************************************
!MESSAGE *         MySQL ODBC 3.51 Driver, WINDOWS TEST LIBRARY          *          
!MESSAGE *               (C) Copyright MySQL AB 1997-2003                *
!MESSAGE *                                                               *
!MESSAGE *    AUTHORS: Monty (monty@mysql.com), Venu (venu@mysql.com)    *
!MESSAGE *****************************************************************
!MESSAGE *                                                               *
!MESSAGE *****************************************************************
!MESSAGE * This program is free software; you can redistribute it and/or *
!MESSAGE * modify it under the terms of the GNU General Public License   *
!MESSAGE * as published by the Free Software Foundation; either version  *
!MESSAGE * 2 of the License, or (at your option) any later version.      *
!MESSAGE *****************************************************************
!MESSAGE                                                                

#
# SPECIFY THE DSN, UID and PWD COMMAND LINE OPTIONS FOR RUNALL NET
#

MYDSN      = myodbc3
MYUID      = 
MYPWD      = 

#	
# COMPILATION SPECIFICATION
# 

CC         = cl
LINK       = link
CFLAGS     = -I -I. -DMY_DEBUG -DDBUG_ON -DDEBUG -D_DEBUG -DMLd -DW3 -DGm -DGX -DZI -D_CONSOLE  -D_MBCS -DWINDOWS -DWIN32 -o3 /nologo
OBJEXT     = .obj
EXEEXT     = .exe

#
# BASED ON THE OS, PICK THE SYSTEM DIRECTORY
#

MYODBC_LIB_PATH  = ../win32/Release
LFLAGS     = $(MYODBC_LIB_PATH)\myodbc3.lib

#	
# BUILDALL SPECIFICATION, BUILD AND RUN ALL SAMPLES
# 

all      : buildall
samples  : build run
test     : tbuild trun
testall  : samples test
buildall : build tbuild
runall   : samples test

#	
# COMPILATION, BUILD SPECIFICATION
# 

.c$(OBJEXT):
	$(CC) $(CFLAGS) $*.c $(LFLAGS) -o $*$(EXEEXT)
	
#	
# SPECIFY THE LIST OF SAMPLES TO BE COMPILED
# 
	
build:\
      my_connect$(OBJEXT)\
      my_basics$(OBJEXT)\
      my_param$(OBJEXT)\
      my_result$(OBJEXT)\
      my_tran$(OBJEXT)\
      my_cursor$(OBJEXT)\
      my_position$(OBJEXT)\
      my_relative$(OBJEXT)\
      my_scroll$(OBJEXT)\
      my_col_length$(OBJEXT)\
      my_blob$(OBJEXT)\
      my_bulk$(OBJEXT)\
      my_unixodbc$(OBJEXT)\
      my_dyn_cursor$(OBJEXT)\
      my_ts$(OBJEXT)\
      my_keys$(OBJEXT)\
      my_curext$(OBJEXT)\
      my_error$(OBJEXT)\
      my_ts$(OBJEXT)\
      my_tran_ext$(OBJEXT)\
      my_use_result$(OBJEXT) \
      my_catalog$(OBJEXT) 
   
tbuild:\
       mytest$(OBJEXT)\
       mytest3$(OBJEXT)\
       mytest32$(OBJEXT)
	
#	
# RUN ALL NET SPECIFICATION
# PASS DSN UID PWD as the command line arguments to each sample
#

run: 
     my_connect$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_basics$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_param$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_result$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_cursor$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_tran$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_position$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_relative$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_scroll$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_col_length$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_blob$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_bulk$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_unixodbc$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_dyn_cursor$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_ts$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_keys$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_curext$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_error$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_ts$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_tran_ext$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     my_use_result$(EXEEXT) 10000 $(MYDSN) $(MYUID) $(MYPWD)
     my_catalog$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)

trun:
     mytest32$(EXEEXT) $(MYDSN) $(MYUID) $(MYPWD)
     mytest3$(EXEEXT) -1 $(MYDSN) $(MYUID) $(MYPWD)
     mytest$(EXEEXT) -1 $(MYDSN) $(MYUID) $(MYPWD)     

#	
# CLEAN SPECIFICATION
#            

clean: 
     -@erase my*$(OBJEXT)
     -@erase my*$(EXEEXT)