summaryrefslogtreecommitdiffstats
path: root/kexi/3rdparty/kexisql/Makefile.msvc
blob: 01e3028f62b03f986e78594cade3b547c8c96dbd (plain)
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
#############################################################################
# Makefile for building: sqlite2
#############################################################################

####### Compiler, tools and options

CC		=	cl
CXX		=	cl
LEX		= flex
YACC		= byacc
CFLAGS	=	-nologo -Zm200 -W3 -MDd -Z7 -GX -GR -DTHREADSAFE=1 
CXXFLAGS	=	-nologo -Zm200 /GR /GX /GZ /TP -W3 -MDd -Z7 -GX -GR  -DUNICODE 
LEXFLAGS	=
YACCFLAGS	=-d
INCPATH	=	 -Isrc
LINK	=	link
LFLAGS	=	/NOLOGO /FORCE:MULTIPLE /DEBUG /SUBSYSTEM:console /DEF:kexisql.def /DLL
VERSION=2.8.2
LIBS	=	 "kernel32.lib" "user32.lib" "gdi32.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "imm32.lib" "winmm.lib" "wsock32.lib" "winspool.lib" 
IDC		=	$(TQTDIR)\bin\idc.exe
IDL		=	midl
ZIP		=	zip -r -9
COPY_FILE	=       copy
COPY_DIR	=       copy
DEL_FILE	=       del
DEL_DIR	=       rmdir
MOVE		=       move
CHK_DIR_EXISTS =	if not exist
MKDIR		=	mkdir

####### Files

HEADERS =	
SOURCES =	\
src/attach.c \
src/auth.c \
src/btree.c \
src/btree_rb.c \
src/build.c \
src/copy.c \
src/date.c \
src/delete.c \
src/expr.c \
src/func.c \
src/hash.c \
src/insert.c \
src/main.c \
src/os.c \
src/pager.c \
src/pragma.c \
src/printf.c \
src/random.c \
src/select.c \
src/table.c \
src/tokenize.c \
src/trigger.c \
src/update.c \
src/util.c \
src/vacuum.c \
src/vdbe.c \
src/vdbeaux.c \
src/where.c \
src/opcodes.c \
src/parse.c \
src/shell.c

OBJECTS =	\
obj/attach.obj \
obj/auth.obj \
obj/btree.obj \
obj/btree_rb.obj \
obj/build.obj \
obj/copy.obj \
obj/date.obj \
obj/delete.obj \
obj/expr.obj \
obj/func.obj \
obj/hash.obj \
obj/insert.obj \
obj/main.obj \
obj/os.obj \
obj/pager.obj \
obj/pragma.obj \
obj/printf.obj \
obj/random.obj \
obj/select.obj \
obj/table.obj \
obj/tokenize.obj \
obj/trigger.obj \
obj/update.obj \
obj/util.obj \
obj/vacuum.obj \
obj/vdbe.obj \
obj/vdbeaux.obj \
obj/where.obj \
obj/opcodes.obj \
obj/parse.obj \
obj/shell.obj

FORMS =	
UICDECLS =	
UICIMPLS =	
SRCMOC	=	
OBJMOC	=	
DIST	=	
TARGET	=	$(TDEDIR)/bin/kexisql2_d.dll

####### Implicit rules

.SUFFIXES: .c .cpp .cxx .C

{.}.cpp{obj\}.obj::
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
	$<
<<

{.}.cxx{obj\}.obj::
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
	$<
<<

{.}.C{obj\}.obj::
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
	$<
<<

{.}.c{obj\}.obj::
	$(CC) -c $(CFLAGS) $(INCPATH) -Foobj\ @<<
	$<
<<

{src\}.c{obj\}.obj::
	$(CC) -c $(CFLAGS) $(INCPATH) -Foobj\ @<<
	$<
<<

####### Build rules

all: $(TARGET) sqlite2

$(TARGET):  $(UICDECLS) $(OBJECTS) $(OBJMOC) 
	$(LINK) $(LFLAGS) /OUT:$(TARGET) @<< 
	  $(OBJECTS) $(OBJMOC) $(LIBS)
<<

sqlite2:	obj/shell.obj $(TDEDIR)/bin/kexisql2.lib
	link $(READLINE_FLAGS) $(LIBPTHREAD) \
		/OUT:$(TDEDIR)/bin/ksqlite2.exe obj/shell.obj $(TDEDIR)/bin/kexisql2.lib $(LIBREADLINE)

mocables: $(SRCMOC)
uicables: $(UICIMPLS) $(UICDECLS)

clean: 
	-del obj\*.obj

distclean: clean
	-del $(TARGET)

install: all 

uninstall: