annotate makefile.vc @ 1306:dbd507f42947

Added dw_debug() logging function which will output a message to the debugging console. On Windows this uses OutputDebugMessage(), on Mac it uses NSLog() ... The other platforms currently just dump it to stderr. Maybe more enhancements to come.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 03 Nov 2011 23:34:10 +0000
parents 7809be48de7d
children 4333b58d879d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
1 #
750
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
2 # Visual C Makefile for Dynamic Windows
381
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
3 #
1113
a049f447999c Updated makefiles to 2.1 on Windows and OS/2 for packaging.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1030
diff changeset
4 VER = 21
a049f447999c Updated makefiles to 2.1 on Windows and OS/2 for packaging.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1030
diff changeset
5 VERDOT = 2.1
1163
2991afb3bf71 Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1113
diff changeset
6 VERREV = 0
640
cd1f9f0bd7e1 Support for building zip file on Win32
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 634
diff changeset
7
750
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
8 #
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
9 # Setup the source and destination directories
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
10 #
381
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
11 !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
12 SRCDIR=.
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
13 !else
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
14 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
15 !endif
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
16
750
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
17 !if "$(DWLIBDIR)" == ""
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
18 DWLIBDIR=.\lib
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
19 !endif
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
20
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
21 !if "$(DWDLLDIR)" == ""
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
22 DWDLLDIR=.\dll
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
23 !endif
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
24
750
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
25 #
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
26 # Configure settings for the target platform
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
27 # Default to x86 if not specified
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
28 #
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
29 !if "$(TARGET_CPU)" == ""
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
30 TARGET_CPU=x86
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
31 !endif
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
32
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
33 !if "$(TARGET_CPU)" == "x86"
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
34 PLATFORM_DEF = -DWIN32
1113
a049f447999c Updated makefiles to 2.1 on Windows and OS/2 for packaging.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1030
diff changeset
35 PLATFORM_NAME = win32
750
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
36 !else
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
37 PLATFORM_DEF = -DWIN64
1113
a049f447999c Updated makefiles to 2.1 on Windows and OS/2 for packaging.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1030
diff changeset
38 PLATFORM_NAME = win64
750
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
39 !endif
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
40
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
41 #
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
42 # Settings for either debug or release
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
43 #
634
c6a216c8174f Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 631
diff changeset
44 !if "$(DEBUG)" == "Y"
772
b28ec71cfc88 Add -MT or -MTd switch to DEBUG switches
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 758
diff changeset
45 CFLAGS_DEBUG = -DDEBUG -Z7 -Od -MTd # was -Zi
647
f09977bc9b5c Fixed building with Visual Studio 2008.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 643
diff changeset
46 LINK_DEBUG = -debug
634
c6a216c8174f Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 631
diff changeset
47 !else
772
b28ec71cfc88 Add -MT or -MTd switch to DEBUG switches
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 758
diff changeset
48 CFLAGS_DEBUG = -Ox -MT
634
c6a216c8174f Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 631
diff changeset
49 LINK_DEBUG = -release
c6a216c8174f Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 631
diff changeset
50 !endif
c6a216c8174f Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 631
diff changeset
51
1163
2991afb3bf71 Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1113
diff changeset
52 # Check the SVN revision number if possible
2991afb3bf71 Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1113
diff changeset
53 !if ![subwcrev . win\__SVN__.REV SVN.REV > NUL]
2991afb3bf71 Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1113
diff changeset
54 !include SVN.REV
2991afb3bf71 Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1113
diff changeset
55 !message Revision is [$(VERREV)]
2991afb3bf71 Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1113
diff changeset
56 SVNVERSION=-DVER_REV=$(VERREV)
2991afb3bf71 Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1113
diff changeset
57 !endif
2991afb3bf71 Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1113
diff changeset
58
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
59 CC = cl
1251
7809be48de7d Enable GDI Plus on Windows to see how well it works.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1167
diff changeset
60 CFLAGS = -c $(PLATFORM_DEF) -D__WIN32__ -DMSVC -DGDIPLUS -DBUILD_DLL -I$(SRCDIR)\platform -I$(SRCDIR) $(SVNVERSION)
7809be48de7d Enable GDI Plus on Windows to see how well it works.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1167
diff changeset
61 LIBS = wsock32.lib kernel32.lib user32.lib comctl32.lib gdi32.lib advapi32.lib shell32.lib comdlg32.lib ole32.lib oleaut32.lib userenv.lib msimg32.lib gdiplus.lib
598
78a8c4123818 Specify library output filenames.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 584
diff changeset
62 RES =
750
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
63 LINKFLAGS = -machine:$(TARGET_CPU) -manifest $(LINK_DEBUG)
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
64 DLLLINKFLAGS = -dll
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
65 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
66 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
67 DEFFILE2 = $(SRCDIR)\dwcompatw.def
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
68
631
fa6c46796883 Use better directory browser widget.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 598
diff changeset
69 OBJS = dw.obj browser.obj XBrowseForFolder.obj
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
70
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
71 OBJS2 = compat.obj dirent.obj
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
72
381
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
73 all: dw dwcompat dwtest
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
74
1163
2991afb3bf71 Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1113
diff changeset
75
2991afb3bf71 Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1113
diff changeset
76
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
77 clean:
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
78 -erase *.dll
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
79 -erase *.exe
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
80 -erase *.opt
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
81 -erase *.lib
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
82 -erase *.obj
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
83 -erase *.map
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
84 -erase *.pdb
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
85 -erase *.ilk
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
86 -erase *.exp
1167
5668d269beb3 Add *.REV to the clean rules on Windows and OS/2 when using nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1163
diff changeset
87 -erase *.REV
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
88 -erase *~
598
78a8c4123818 Specify library output filenames.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 584
diff changeset
89
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
90 dw: dw.dll
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
91
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
92 dw.dll: $(OBJS) $(DEFFILE)
1163
2991afb3bf71 Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1113
diff changeset
93 -md $(DWLIBDIR)
2991afb3bf71 Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1113
diff changeset
94 -md $(DWDLLDIR)
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
95 $(LINK) @<<
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
96 -out:$(@) -def:$(DEFFILE)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
97 $(LINKFLAGS) $(DLLLINKFLAGS)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
98 $(OBJS) $(RES)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
99 $(LIBS)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
100 <<
598
78a8c4123818 Specify library output filenames.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 584
diff changeset
101 lib /def:$(DEFFILE) /out:dw.lib
758
842bc671eaa7 Added manifest files that will import the common controls library that allows for XP/Vista/7 themes to be used.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 756
diff changeset
102 mt.exe /manifest dw.dll.manifest win\dw.dll.$(TARGET_CPU).manifest /outputresource:dw.dll;2
750
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
103 copy dw.lib $(DWLIBDIR)\dw.lib
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
104 copy dw.dll $(DWDLLDIR)\dw.dll
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
105
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
106 dwcompat: dwcompat.dll
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
107
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
108 dwcompat.dll: $(OBJS2) $(DEFFILE2)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
109 $(LINK) @<<
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
110 -out:$(@) -def:$(DEFFILE2)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
111 $(LINKFLAGS) $(DLLLINKFLAGS)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
112 $(OBJS2) $(RES)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
113 $(LIBS)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
114 <<
598
78a8c4123818 Specify library output filenames.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 584
diff changeset
115 lib /def:$(DEFFILE2) /out:dwcompat.lib
750
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
116 mt.exe /manifest dwcompat.dll.manifest /outputresource:dwcompat.dll;2
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
117 copy dwcompat.lib $(DWLIBDIR)\dwcompat.lib
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
118 copy dwcompat.dll $(DWDLLDIR)\dwcompat.dll
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
119
381
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
120 dw.obj: $(SRCDIR)\win\dw.c
772
b28ec71cfc88 Add -MT or -MTd switch to DEBUG switches
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 758
diff changeset
121 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(SRCDIR)\win\dw.c
381
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
122
584
420c6c94abc7 Added dw_html_* functionality for embedding HTML pages in Dynamic Windows
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 381
diff changeset
123 browser.obj: $(SRCDIR)\win\browser.c
772
b28ec71cfc88 Add -MT or -MTd switch to DEBUG switches
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 758
diff changeset
124 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(SRCDIR)\win\browser.c
584
420c6c94abc7 Added dw_html_* functionality for embedding HTML pages in Dynamic Windows
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 381
diff changeset
125
631
fa6c46796883 Use better directory browser widget.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 598
diff changeset
126 XBrowseForFolder.obj: $(SRCDIR)\win\XBrowseForFolder.cpp
772
b28ec71cfc88 Add -MT or -MTd switch to DEBUG switches
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 758
diff changeset
127 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(SRCDIR)\win\XBrowseForFolder.cpp
631
fa6c46796883 Use better directory browser widget.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 598
diff changeset
128
381
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
129 dirent.obj: $(SRCDIR)\win\dirent.c
772
b28ec71cfc88 Add -MT or -MTd switch to DEBUG switches
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 758
diff changeset
130 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(SRCDIR)\win\dirent.c
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
131
381
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
132 compat.obj: $(SRCDIR)\compat.c
772
b28ec71cfc88 Add -MT or -MTd switch to DEBUG switches
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 758
diff changeset
133 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(SRCDIR)\compat.c
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
134
381
0df4ad2ac083 Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 286
diff changeset
135 dwtest.obj: $(SRCDIR)\dwtest.c
772
b28ec71cfc88 Add -MT or -MTd switch to DEBUG switches
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 758
diff changeset
136 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(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
137
286
e9270ff04ced Simple add dwtest as a target, dependent on dwtest.exe.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 191
diff changeset
138 dwtest: dwtest.exe
e9270ff04ced Simple add dwtest as a target, dependent on dwtest.exe.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 191
diff changeset
139
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
140 dwtest.exe: dwtest.obj winmain.obj
750
e6a9f1c7b0d7 Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 647
diff changeset
141 $(LINK) $(LINKFLAGS) /out:dwtest.exe dwtest.obj winmain.obj /subsystem:windows $(DWLIBDIR)\dwcompat.lib $(DWLIBDIR)\dw.lib $(LIBS)
758
842bc671eaa7 Added manifest files that will import the common controls library that allows for XP/Vista/7 themes to be used.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 756
diff changeset
142 mt.exe /manifest dwtest.exe.manifest win\dwtest.exe.$(TARGET_CPU).manifest /outputresource:dwtest.exe;1
640
cd1f9f0bd7e1 Support for building zip file on Win32
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 634
diff changeset
143
cd1f9f0bd7e1 Support for building zip file on Win32
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 634
diff changeset
144 zip: dw.dll
cd1f9f0bd7e1 Support for building zip file on Win32
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 634
diff changeset
145 copy win\readme-win.txt .
1113
a049f447999c Updated makefiles to 2.1 on Windows and OS/2 for packaging.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 1030
diff changeset
146 zip dwindows-$(PLATFORM_NAME)-$(VERDOT).zip readme-win.txt readme dw.dll dwcompat.dll dw.lib dwcompat.lib dw.h