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
# mingw64-cross-build.sh
#### C Compile and options for use in building executables that
# will run on the target platform.
#
TCC = /opt/mingw64/bin/x86_64-pc-mingw32-gcc -O2 -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/mingw64/bin/x86_64-pc-mingw32-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
|