Mercurial > dwindows
annotate makefile.vc @ 640:cd1f9f0bd7e1
Support for building zip file on Win32
author | mhessling@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 12 Apr 2009 01:19:23 +0000 |
parents | c6a216c8174f |
children | 9ab89d89e6b4 |
rev | line source |
---|---|
3 | 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 # |
640
cd1f9f0bd7e1
Support for building zip file on Win32
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
634
diff
changeset
|
4 VER = 11 |
cd1f9f0bd7e1
Support for building zip file on Win32
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
634
diff
changeset
|
5 VERDOT = 1.1 |
cd1f9f0bd7e1
Support for building zip file on Win32
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
634
diff
changeset
|
6 |
381
0df4ad2ac083
Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
286
diff
changeset
|
7 !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
|
8 SRCDIR=. |
0df4ad2ac083
Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
286
diff
changeset
|
9 !else |
0df4ad2ac083
Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
286
diff
changeset
|
10 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
|
11 !endif |
0df4ad2ac083
Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
286
diff
changeset
|
12 |
45
90aa71b3298a
Fixed makefile for Windows, and updated to latest source.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
13 FXLIBDIR=.\lib |
90aa71b3298a
Fixed makefile for Windows, and updated to latest source.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
14 FXDLLDIR=.\dll |
3 | 15 |
634
c6a216c8174f
Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
631
diff
changeset
|
16 !if "$(DEBUG)" == "Y" |
c6a216c8174f
Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
631
diff
changeset
|
17 CFLAGS_DEBUG = -Z7 -Od # was -Zi |
c6a216c8174f
Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
631
diff
changeset
|
18 LINK_DEBUG = -debug:full |
c6a216c8174f
Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
631
diff
changeset
|
19 !else |
c6a216c8174f
Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
631
diff
changeset
|
20 CFLAGS_DEBUG = -Ox |
c6a216c8174f
Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
631
diff
changeset
|
21 LINK_DEBUG = -release |
c6a216c8174f
Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
631
diff
changeset
|
22 !endif |
c6a216c8174f
Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
631
diff
changeset
|
23 |
3 | 24 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
|
25 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
|
26 #CFLAGS_COMPILE = -MTd |
c6a216c8174f
Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
631
diff
changeset
|
27 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
|
28 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
|
29 RES = |
634
c6a216c8174f
Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
631
diff
changeset
|
30 LINKFLAGS = -machine:i386 $(LINK_DEBUG) |
3 | 31 DLLLINKFLAGS = -dll |
32 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
|
33 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
|
34 DEFFILE2 = $(SRCDIR)\dwcompatw.def |
3 | 35 |
631
fa6c46796883
Use better directory browser widget.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
598
diff
changeset
|
36 OBJS = dw.obj browser.obj XBrowseForFolder.obj |
3 | 37 |
38 OBJS2 = compat.obj dirent.obj | |
39 | |
381
0df4ad2ac083
Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
286
diff
changeset
|
40 all: dw dwcompat dwtest |
3 | 41 |
42 clean: | |
43 -erase *.dll | |
44 -erase *.exe | |
45 -erase *.opt | |
46 -erase *.lib | |
47 -erase *.obj | |
48 -erase *.map | |
49 -erase *.pdb | |
50 -erase *.ilk | |
51 -erase *.exp | |
52 -erase *~ | |
598
78a8c4123818
Specify library output filenames.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
584
diff
changeset
|
53 |
3 | 54 dw: dw.dll |
55 | |
56 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
|
57 -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
|
58 -mkdir $(FXDLLDIR) |
3 | 59 $(LINK) @<< |
60 -out:$(@) -def:$(DEFFILE) | |
61 $(LINKFLAGS) $(DLLLINKFLAGS) | |
62 $(OBJS) $(RES) | |
63 $(LIBS) | |
64 << | |
598
78a8c4123818
Specify library output filenames.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
584
diff
changeset
|
65 lib /def:$(DEFFILE) /out:dw.lib |
3 | 66 copy dw.lib $(FXLIBDIR)\dw.lib |
67 copy dw.dll $(FXDLLDIR)\dw.dll | |
68 | |
69 dwcompat: dwcompat.dll | |
70 | |
71 dwcompat.dll: $(OBJS2) $(DEFFILE2) | |
72 $(LINK) @<< | |
73 -out:$(@) -def:$(DEFFILE2) | |
74 $(LINKFLAGS) $(DLLLINKFLAGS) | |
75 $(OBJS2) $(RES) | |
76 $(LIBS) | |
77 << | |
598
78a8c4123818
Specify library output filenames.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
584
diff
changeset
|
78 lib /def:$(DEFFILE2) /out:dwcompat.lib |
3 | 79 copy dwcompat.lib $(FXLIBDIR)\dwcompat.lib |
80 copy dwcompat.dll $(FXDLLDIR)\dwcompat.dll | |
81 | |
381
0df4ad2ac083
Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
286
diff
changeset
|
82 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
|
83 $(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
|
84 |
584
420c6c94abc7
Added dw_html_* functionality for embedding HTML pages in Dynamic Windows
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
381
diff
changeset
|
85 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
|
86 $(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
|
87 |
631
fa6c46796883
Use better directory browser widget.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
598
diff
changeset
|
88 XBrowseForFolder.obj: $(SRCDIR)\win\XBrowseForFolder.cpp |
fa6c46796883
Use better directory browser widget.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
598
diff
changeset
|
89 $(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
|
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 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
|
92 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(CFLAGS_COMPILE) $(SRCDIR)\win\dirent.c |
3 | 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 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
|
95 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(CFLAGS_COMPILE) $(SRCDIR)\compat.c |
3 | 96 |
381
0df4ad2ac083
Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
286
diff
changeset
|
97 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
|
98 $(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
|
99 |
286
e9270ff04ced
Simple add dwtest as a target, dependent on dwtest.exe.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
191
diff
changeset
|
100 dwtest: dwtest.exe |
e9270ff04ced
Simple add dwtest as a target, dependent on dwtest.exe.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
191
diff
changeset
|
101 |
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
|
102 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
|
103 $(LINK) $(LINKFLAGS) /out:dwtest.exe dwtest.obj winmain.obj /subsystem:windows $(FXLIBDIR)\dwcompat.lib $(FXLIBDIR)\dw.lib $(LIBS) |
640
cd1f9f0bd7e1
Support for building zip file on Win32
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
634
diff
changeset
|
104 |
cd1f9f0bd7e1
Support for building zip file on Win32
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
634
diff
changeset
|
105 zip: dw.dll |
cd1f9f0bd7e1
Support for building zip file on Win32
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
634
diff
changeset
|
106 copy win\readme-win.txt . |
cd1f9f0bd7e1
Support for building zip file on Win32
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
634
diff
changeset
|
107 zip dwindows-win32-$(VERDOT).zip readme-win.txt dw.dll dwcompat.dll dw.lib dwcompat.lib dw.h |