Mercurial > dwindows
annotate makefile.vac @ 1362:412af8059331
Attempt to get it building with Mingw again... builds but crashes.
Fix building DLL without HTML widget support... Mingw is missing required headers.
Moved wrapper functions into the main source file so it will export the APIs even if unsupported.
Removed debugging code from XBrowseForFolder.cpp because Mingw does not support it.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 18 Nov 2011 18:56:40 +0000 |
parents | 324812debcc9 |
children | e79cf0d73caf |
rev | line source |
---|---|
3 | 1 .SUFFIXES: .c .obj |
2 | |
1166
568b37e4b167
Attempt at importing the svn revision with VAC/nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
300
diff
changeset
|
3 !if ![cmd /c os2\svnrev.cmd] |
568b37e4b167
Attempt at importing the svn revision with VAC/nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
300
diff
changeset
|
4 !include SVN.REV |
568b37e4b167
Attempt at importing the svn revision with VAC/nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
300
diff
changeset
|
5 !endif |
568b37e4b167
Attempt at importing the svn revision with VAC/nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
300
diff
changeset
|
6 |
3 | 7 .all: \ |
8 .\dw.dll \ | |
9 .\dwcompat.dll | |
10 | |
11 .c.obj: | |
1166
568b37e4b167
Attempt at importing the svn revision with VAC/nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
300
diff
changeset
|
12 icc.exe /DOS2 /DTCPV40HDRS /DBUILD_DLL /DVER_REV=$(VERREV) /I. /Tm+ /Tdc /Ss /Wprorearet /Wpro+ /V"Dynamic Windows Compatibility" /Ti /Gm /Gd- /G5 /Ge- /C /W3 /Wini+ /Wpar+ /Wpro+ /Wuse+ %s |
3 | 13 |
14 .\dw.dll: \ | |
15 .\os2\dw.obj | |
16 @echo " Link::Linker " | |
17 icc.exe @<< | |
18 /B" /NOE /de /ST:32768 /nologo /li" | |
1360
32a5be18e187
Source tree cleanup, move import/export definition files to their platform folder.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1167
diff
changeset
|
19 /Fe"dw.dll" os2\dw.def |
3 | 20 .\dw.obj |
21 so32dll.lib | |
22 tcp32dll.lib | |
23 << | |
1361
324812debcc9
Missed a couple .DEF file references on OS/2 and...
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1360
diff
changeset
|
24 IMPLIB DW.LIB OS2\DW.DEF |
3 | 25 copy dw.lib lib\dw.lib |
26 copy dw.dll dll\dw.dll | |
27 | |
28 .\dwcompat.dll: \ | |
29 .\os2\dirent.obj \ | |
30 .\compat.obj | |
31 @echo " Link::Linker " | |
32 icc.exe @<< | |
33 /B" /NOE /de /ST:32768 /nologo /li" | |
1360
32a5be18e187
Source tree cleanup, move import/export definition files to their platform folder.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1167
diff
changeset
|
34 /Fe"dwcompat.dll" os2\dwcompat.def |
3 | 35 .\dirent.obj |
36 .\compat.obj | |
37 so32dll.lib | |
38 tcp32dll.lib | |
39 << | |
1361
324812debcc9
Missed a couple .DEF file references on OS/2 and...
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1360
diff
changeset
|
40 IMPLIB DWCOMPAT.LIB OS2\DWCOMPAT.DEF |
3 | 41 copy dwcompat.lib lib\dwcompat.lib |
42 copy dwcompat.dll dll\dwcompat.dll | |
43 | |
192
d946e329670c
Added test application for OS/2, and allow dw_color_xxx_set() to use OS/2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
56
diff
changeset
|
44 dwtest.obj: |
300
4559a2fd2db2
Keypress handler fixes, more need to be done, because I screwed up and
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
192
diff
changeset
|
45 icc /Ti /DOS2 /DTCPV40HDRS /Sp1 /I. /Sm /Ss /Q /Gm /Gt /C dwtest.c |
192
d946e329670c
Added test application for OS/2, and allow dw_color_xxx_set() to use OS/2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
56
diff
changeset
|
46 dwtest.exe: dwtest.obj |
d946e329670c
Added test application for OS/2, and allow dw_color_xxx_set() to use OS/2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
56
diff
changeset
|
47 icc @<< |
d946e329670c
Added test application for OS/2, and allow dw_color_xxx_set() to use OS/2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
56
diff
changeset
|
48 /B" /DE /optfunc" |
d946e329670c
Added test application for OS/2, and allow dw_color_xxx_set() to use OS/2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
56
diff
changeset
|
49 /Fedwtest.exe |
d946e329670c
Added test application for OS/2, and allow dw_color_xxx_set() to use OS/2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
56
diff
changeset
|
50 lib\dw.lib lib\dwcompat.lib |
d946e329670c
Added test application for OS/2, and allow dw_color_xxx_set() to use OS/2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
56
diff
changeset
|
51 dwtest.obj |
1360
32a5be18e187
Source tree cleanup, move import/export definition files to their platform folder.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1167
diff
changeset
|
52 os2\dwtest.def |
192
d946e329670c
Added test application for OS/2, and allow dw_color_xxx_set() to use OS/2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
56
diff
changeset
|
53 << |
3 | 54 clean : |
55 @if exist *.obj del *.obj | |
56 @if exist *.map del *.map | |
57 @if exist *.lib del *.lib | |
58 @if exist *.dll del *.dll | |
59 @if exist *.exe del *.exe | |
1167
5668d269beb3
Add *.REV to the clean rules on Windows and OS/2 when using nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1166
diff
changeset
|
60 @if exist *.REV del *.REV |
3 | 61 |