File: mf-sqlite3extfunc.mingw-cross

package info (click to toggle)
sqliteodbc 0.91-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 6,412 kB
  • sloc: ansic: 34,510; sh: 11,960; makefile: 582; sql: 313
file content (40 lines) | stat: -rw-r--r-- 1,030 bytes parent folder | download
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
#!/usr/make
#
# Makefile for SQLITE3 extension functions, use in conjunction with
# mingw-cross-build.sh

#### C Compile and options for use in building executables that 
#    will run on the target platform.
#
TCC = /opt/mingw/bin/i386-mingw32msvc-gcc -O2 -D_OFF_T_ -DNO_TCL

# This is how we compile
#
TCCX = $(TCC) $(OPTS) $(THREADSAFE) $(USLEEP) -I. -Isqlite3 -Isqlite3/src

# MKSHLIB = gcc -shared
# SO = so
# SHPREFIX = lib
MKSHLIB = /opt/mingw/bin/i386-mingw32msvc-ar -shared
SO = dll

# This is the default Makefile target.  The objects listed here
# are what get build when you type just "make" with no arguments.
#
all:	sqlite3_mod_extfunc.$(SO)

# Rules to build individual files
#
extfunc.o:	extfunc.c
	$(TCCX) -c extfunc.c

sqlite3_mod_extfunc.$(SO):	extfunc.o
	$(TCCX) -shared -Wl,--kill-at \
	    -Wl,-out-implib,libsqlite3extfunc.a -Wl,--strip-all \
	    -o sqlite3_mod_extfunc.$(SO) extfunc.o

clean:
	rm -f extfunc.o libsqlite3extfunc.a sqlite3_mod_extfunc.$(SO)

semiclean:
	rm -f extfunc.o libsqlite3extfunc.a