2
##### Top of the Tkhtml source tree - the directory with this file in it.
4
TOP = /home/dan/work/tkhtml/htmlwidget/
6
##### BUILD can be DEBUG or RELEASE.
11
HV3_POLIPO = /home/dan/work/polipo/hv3_polipo.exe
13
##### Version of and path to the Tcl installation to use.
16
TCL = /home/dan/work/tkhtml/mingwtcl/install
18
##### Flags passed to the C-compiler to link to Tcl.
20
# TCLLIB = -L$(TCL)/lib -ltclstub$(TCLVERSION) -ltkstub$(TCLVERSION)
21
TCLLIB = -L$(TCL)/lib -ltcl$(TCLVERSION) -ltk$(TCLVERSION) -ltclstub$(TCLVERSION) -ltkstub$(TCLVERSION)
23
##### Extra libraries used by Tcl on Linux. These flags are only required to
24
# staticly link Tcl into an executable
26
# TCLLIB_DEBUG += -L/usr/X11R6/lib/ -lX11 -ldl -lm
31
CFLAGS_RELEASE = -O2 -DNDEBUG
33
CFLAGS = $(CFLAGS_$(BUILD))
34
CFLAGS += -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1
36
##### The name of the shared library file to build.
38
SHARED_LIB_DEBUG = libTkhtml3g.dll
39
SHARED_LIB_RELEASE = libTkhtml3.dll
40
SHARED_LIB = $(SHARED_LIB_$(BUILD))
42
##### Command to build a shared library from a set of object files. The
43
# command executed will be:
45
# $(MKSHLIB) $(OBJS) $(TCLSTUBSLIB) -o $(SHARED_LIB)
47
MKSHLIB = $(CC) -shared
48
TCLSTUBSLIB = "/home/dan/work/tkhtml/mingwtcl/install/lib/libtclstub85.a"
49
TCLSTUBSLIB += "/home/dan/work/tkhtml/mingwtcl/install/lib/libtkstub85.a"
50
TCLSTUBSLIB += -LC:/Tcl/lib
52
##### Commands to run tclsh on the build platform (to generate C files
53
# to be passed to $(CC) from tcl scripts).
57
##### Strip the shared library
59
STRIP = i386-mingw32-strip
61
MKSTARKIT = tclkit /home/dan/bin/sdx.kit wrap
62
STARKITRT = /home/dan/work/tclkit-win32.upx.exe
64
##### Javascript libaries - libgc.a and libsee.a
66
JS_SHARED_LIB = libTclsee.dll
68
JSLIB = $(HOME)/work/tkhtml/jswin/lib/libsee.a
69
JSLIB += $(HOME)/work/tkhtml/jswin/lib/libgc.a
70
JSFLAGS = -I$(HOME)/work/tkhtml/jswin/include
73
# End of configuration section.
74
###########################################################################
78
hv3-win32.exe: hv3_img.kit
79
cp $(STARKITRT) starkit_runtime
80
$(MKSTARKIT) hv3_img.bin -runtime ./starkit_runtime
81
mv hv3_img.bin hv3-win32.exe
82
chmod 644 hv3-win32.exe
84
###############################################################################
85
include $(TOP)/main.mk