~ubuntu-branches/debian/sid/tk-html3/sid

« back to all changes in this revision

Viewing changes to mingw.mk

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2012-03-02 18:45:00 UTC
  • Revision ID: package-import@ubuntu.com-20120302184500-np17d7d6gd1jedj0
Tags: upstream-3.0~fossil20110109
ImportĀ upstreamĀ versionĀ 3.0~fossil20110109

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
##### Top of the Tkhtml source tree - the directory with this file in it.
 
3
#
 
4
TOP = /home/dan/work/tkhtml/htmlwidget/
 
5
 
 
6
##### BUILD can be DEBUG or RELEASE.
 
7
#
 
8
# BUILD = DEBUG
 
9
BUILD = RELEASE
 
10
 
 
11
HV3_POLIPO = /home/dan/work/polipo/hv3_polipo.exe
 
12
 
 
13
##### Version of and path to the Tcl installation to use.
 
14
#
 
15
TCLVERSION = 85
 
16
TCL = /home/dan/work/tkhtml/mingwtcl/install
 
17
 
 
18
##### Flags passed to the C-compiler to link to Tcl.
 
19
#
 
20
# TCLLIB = -L$(TCL)/lib -ltclstub$(TCLVERSION) -ltkstub$(TCLVERSION)
 
21
TCLLIB = -L$(TCL)/lib -ltcl$(TCLVERSION) -ltk$(TCLVERSION) -ltclstub$(TCLVERSION) -ltkstub$(TCLVERSION)
 
22
 
 
23
##### Extra libraries used by Tcl on Linux. These flags are only required to
 
24
#     staticly link Tcl into an executable
 
25
#
 
26
# TCLLIB_DEBUG += -L/usr/X11R6/lib/ -lX11 -ldl -lm
 
27
 
 
28
BCC = gcc
 
29
CC = i386-mingw32-gcc
 
30
 
 
31
CFLAGS_RELEASE = -O2 -DNDEBUG 
 
32
CFLAGS_DEBUG   = -g
 
33
CFLAGS = $(CFLAGS_$(BUILD))
 
34
CFLAGS += -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1
 
35
 
 
36
##### The name of the shared library file to build.
 
37
#
 
38
SHARED_LIB_DEBUG = libTkhtml3g.dll
 
39
SHARED_LIB_RELEASE = libTkhtml3.dll
 
40
SHARED_LIB = $(SHARED_LIB_$(BUILD))
 
41
 
 
42
##### Command to build a shared library from a set of object files. The
 
43
#     command executed will be:
 
44
 
45
#         $(MKSHLIB) $(OBJS) $(TCLSTUBSLIB) -o $(SHARED_LIB)
 
46
#
 
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
 
51
 
 
52
##### Commands to run tclsh on the build platform (to generate C files
 
53
#     to be passed to $(CC) from tcl scripts).
 
54
#
 
55
TCLSH = tclsh
 
56
 
 
57
##### Strip the shared library
 
58
#
 
59
STRIP = i386-mingw32-strip
 
60
 
 
61
MKSTARKIT = tclkit /home/dan/bin/sdx.kit wrap
 
62
STARKITRT = /home/dan/work/tclkit-win32.upx.exe
 
63
 
 
64
##### Javascript libaries - libgc.a and libsee.a
 
65
#
 
66
JS_SHARED_LIB = libTclsee.dll
 
67
 
 
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
 
71
 
 
72
#
 
73
# End of configuration section.
 
74
###########################################################################
 
75
 
 
76
default: binaries
 
77
 
 
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
 
83
 
 
84
###############################################################################
 
85
include $(TOP)/main.mk
 
86