annotate makefile.vc @ 634:c6a216c8174f

Support for setting transparent colour for bitmaps Support for checkable menu items Mouse support on render window Fix bubble text on buttons dw_window_set_text() works for group box dw_window_set_size() and dw_window_set_pos_size() to allow negative values Add dw_draw_polygon()
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 10 Apr 2009 10:25:26 +0000
parents fa6c46796883
children cd1f9f0bd7e1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
1 #
381
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
2 # Get our source directory
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
3 #
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
4 !if "$(DWINDOWS_SRCDIR)" == ""
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
5 SRCDIR=.
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
6 !else
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
7 SRCDIR=$(DWINDOWS_SRCDIR)
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
8 !endif
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
9
45
90aa71b3298a Fixed makefile for Windows, and updated to latest source.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
10 FXLIBDIR=.\lib
90aa71b3298a Fixed makefile for Windows, and updated to latest source.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
11 FXDLLDIR=.\dll
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
12
634
c6a216c8174f Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 631
diff changeset
13 !if "$(DEBUG)" == "Y"
c6a216c8174f Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 631
diff changeset
14 CFLAGS_DEBUG = -Z7 -Od # was -Zi
c6a216c8174f Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 631
diff changeset
15 LINK_DEBUG = -debug:full
c6a216c8174f Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 631
diff changeset
16 !else
c6a216c8174f Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 631
diff changeset
17 CFLAGS_DEBUG = -Ox
c6a216c8174f Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 631
diff changeset
18 LINK_DEBUG = -release
c6a216c8174f Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 631
diff changeset
19 !endif
c6a216c8174f Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 631
diff changeset
20
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
21 CC = cl
381
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
22 CFLAGS = -c -G5 -GD -Zp1 -DWIN32 -D__WIN32__ -DMSVC -DBUILD_DLL -I$(SRCDIR)\platform -I$(SRCDIR)
634
c6a216c8174f Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 631
diff changeset
23 #CFLAGS_COMPILE = -MTd
c6a216c8174f Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 631
diff changeset
24 CFLAGS_COMPILE = -MD
584
420c6c94abc7 Added dw_html_* functionality for embedding HTML pages in Dynamic Windows
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 381
diff changeset
25 LIBS = wsock32.lib kernel32.lib user32.lib comctl32.lib gdi32.lib advapi32.lib shell32.lib comdlg32.lib ole32.lib oleaut32.lib
598
78a8c4123818 Specify library output filenames.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 584
diff changeset
26 RES =
634
c6a216c8174f Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 631
diff changeset
27 LINKFLAGS = -machine:i386 $(LINK_DEBUG)
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
28 DLLLINKFLAGS = -dll
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
29 LINK = link
381
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
30 DEFFILE = $(SRCDIR)\dww.def
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
31 DEFFILE2 = $(SRCDIR)\dwcompatw.def
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
32
631
fa6c46796883 Use better directory browser widget.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 598
diff changeset
33 OBJS = dw.obj browser.obj XBrowseForFolder.obj
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
34
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
35 OBJS2 = compat.obj dirent.obj
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
36
381
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
37 all: dw dwcompat dwtest
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
38
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
39 clean:
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
40 -erase *.dll
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
41 -erase *.exe
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
42 -erase *.opt
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
43 -erase *.lib
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
44 -erase *.obj
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
45 -erase *.map
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
46 -erase *.pdb
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
47 -erase *.ilk
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
48 -erase *.exp
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
49 -erase *~
598
78a8c4123818 Specify library output filenames.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 584
diff changeset
50
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
51 dw: dw.dll
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
52
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
53 dw.dll: $(OBJS) $(DEFFILE)
381
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
54 -mkdir $(FXLIBDIR)
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
55 -mkdir $(FXDLLDIR)
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
56 $(LINK) @<<
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
57 -out:$(@) -def:$(DEFFILE)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
58 $(LINKFLAGS) $(DLLLINKFLAGS)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
59 $(OBJS) $(RES)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
60 $(LIBS)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
61 <<
598
78a8c4123818 Specify library output filenames.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 584
diff changeset
62 lib /def:$(DEFFILE) /out:dw.lib
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
63 copy dw.lib $(FXLIBDIR)\dw.lib
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
64 copy dw.dll $(FXDLLDIR)\dw.dll
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
65
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
66 dwcompat: dwcompat.dll
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
67
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
68 dwcompat.dll: $(OBJS2) $(DEFFILE2)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
69 $(LINK) @<<
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
70 -out:$(@) -def:$(DEFFILE2)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
71 $(LINKFLAGS) $(DLLLINKFLAGS)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
72 $(OBJS2) $(RES)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
73 $(LIBS)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
74 <<
598
78a8c4123818 Specify library output filenames.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 584
diff changeset
75 lib /def:$(DEFFILE2) /out:dwcompat.lib
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
76 copy dwcompat.lib $(FXLIBDIR)\dwcompat.lib
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
77 copy dwcompat.dll $(FXDLLDIR)\dwcompat.dll
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
78
381
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
79 dw.obj: $(SRCDIR)\win\dw.c
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
80 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(CFLAGS_COMPILE) $(SRCDIR)\win\dw.c
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
81
584
420c6c94abc7 Added dw_html_* functionality for embedding HTML pages in Dynamic Windows
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 381
diff changeset
82 browser.obj: $(SRCDIR)\win\browser.c
420c6c94abc7 Added dw_html_* functionality for embedding HTML pages in Dynamic Windows
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 381
diff changeset
83 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(CFLAGS_COMPILE) $(SRCDIR)\win\browser.c
420c6c94abc7 Added dw_html_* functionality for embedding HTML pages in Dynamic Windows
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 381
diff changeset
84
631
fa6c46796883 Use better directory browser widget.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 598
diff changeset
85 XBrowseForFolder.obj: $(SRCDIR)\win\XBrowseForFolder.cpp
fa6c46796883 Use better directory browser widget.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 598
diff changeset
86 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(CFLAGS_COMPILE) $(SRCDIR)\win\XBrowseForFolder.cpp
fa6c46796883 Use better directory browser widget.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 598
diff changeset
87
381
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
88 dirent.obj: $(SRCDIR)\win\dirent.c
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
89 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(CFLAGS_COMPILE) $(SRCDIR)\win\dirent.c
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
90
381
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
91 compat.obj: $(SRCDIR)\compat.c
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
92 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(CFLAGS_COMPILE) $(SRCDIR)\compat.c
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
93
381
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
94 dwtest.obj: $(SRCDIR)\dwtest.c
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
95 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(CFLAGS_COMPILE) $(SRCDIR)\dwtest.c
191
634625c3239d Fixes for dw_color_xxxx_set() to accept OS/2 style colors, and fixed a
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 45
diff changeset
96
286
e9270ff04ced Simple add dwtest as a target, dependent on dwtest.exe.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 191
diff changeset
97 dwtest: dwtest.exe
e9270ff04ced Simple add dwtest as a target, dependent on dwtest.exe.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 191
diff changeset
98
191
634625c3239d Fixes for dw_color_xxxx_set() to accept OS/2 style colors, and fixed a
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 45
diff changeset
99 dwtest.exe: dwtest.obj winmain.obj
634625c3239d Fixes for dw_color_xxxx_set() to accept OS/2 style colors, and fixed a
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 45
diff changeset
100 $(LINK) $(LINKFLAGS) /out:dwtest.exe dwtest.obj winmain.obj /subsystem:windows $(FXLIBDIR)\dwcompat.lib $(FXLIBDIR)\dw.lib $(LIBS)