Mercurial > dwindows
annotate makefile.vc @ 293:315812516608
Changes to the key press handling, if the character is zero check the
virtual key code. The virtual key code parameter will always be valid.
Also print the character in hex so it can be seen in the test program.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 25 Mar 2003 23:44:57 +0000 |
parents | e9270ff04ced |
children | 0df4ad2ac083 |
rev | line source |
---|---|
3 | 1 # |
45
90aa71b3298a
Fixed makefile for Windows, and updated to latest source.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2 FXLIBDIR=.\lib |
90aa71b3298a
Fixed makefile for Windows, and updated to latest source.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3 FXDLLDIR=.\dll |
3 | 4 |
5 CC = cl | |
45
90aa71b3298a
Fixed makefile for Windows, and updated to latest source.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
6 CFLAGS = -c -G5 -GD -Zp1 -DWIN32 -D__WIN32__ -DMSVC -DBUILD_DLL -I.\platform -I. |
3 | 7 CFLAGS_DEBUG = -Zi |
8 CFLAGS_COMPILE = -MTd | |
9 LIBS = wsock32.lib kernel32.lib user32.lib comctl32.lib gdi32.lib advapi32.lib shell32.lib comdlg32.lib | |
10 RES = | |
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
|
11 LINKFLAGS = -machine:i386 -debug:full |
3 | 12 DLLLINKFLAGS = -dll |
13 LINK = link | |
14 DEFFILE = dww.def | |
15 DEFFILE2 = dwcompatw.def | |
16 | |
17 OBJS = dw.obj | |
18 | |
19 OBJS2 = compat.obj dirent.obj | |
20 | |
21 all: dw dwcompat | |
22 | |
23 clean: | |
24 -erase *.dll | |
25 -erase *.exe | |
26 -erase *.opt | |
27 -erase *.lib | |
28 -erase *.obj | |
29 -erase *.map | |
30 -erase *.pdb | |
31 -erase *.ilk | |
32 -erase *.exp | |
33 -erase *~ | |
34 | |
35 dw: dw.dll | |
36 | |
37 dw.dll: $(OBJS) $(DEFFILE) | |
38 $(LINK) @<< | |
39 -out:$(@) -def:$(DEFFILE) | |
40 $(LINKFLAGS) $(DLLLINKFLAGS) | |
41 $(OBJS) $(RES) | |
42 $(LIBS) | |
43 << | |
44 lib /def:$(DEFFILE) | |
45 copy dw.lib $(FXLIBDIR)\dw.lib | |
46 copy dw.dll $(FXDLLDIR)\dw.dll | |
47 | |
48 dwcompat: dwcompat.dll | |
49 | |
50 dwcompat.dll: $(OBJS2) $(DEFFILE2) | |
51 $(LINK) @<< | |
52 -out:$(@) -def:$(DEFFILE2) | |
53 $(LINKFLAGS) $(DLLLINKFLAGS) | |
54 $(OBJS2) $(RES) | |
55 $(LIBS) | |
56 << | |
57 lib /def:$(DEFFILE2) | |
58 copy dwcompat.lib $(FXLIBDIR)\dwcompat.lib | |
59 copy dwcompat.dll $(FXDLLDIR)\dwcompat.dll | |
60 | |
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
|
61 dw.obj: win\dw.c |
3 | 62 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(CFLAGS_COMPILE) win\dw.c |
63 | |
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
|
64 dirent.obj: win\dirent.c |
3 | 65 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(CFLAGS_COMPILE) win\dirent.c |
66 | |
67 .c.obj: | |
68 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(CFLAGS_COMPILE) $*.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
|
69 |
286
e9270ff04ced
Simple add dwtest as a target, dependent on dwtest.exe.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
191
diff
changeset
|
70 dwtest: dwtest.exe |
e9270ff04ced
Simple add dwtest as a target, dependent on dwtest.exe.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
191
diff
changeset
|
71 |
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
|
72 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
|
73 $(LINK) $(LINKFLAGS) /out:dwtest.exe dwtest.obj winmain.obj /subsystem:windows $(FXLIBDIR)\dwcompat.lib $(FXLIBDIR)\dw.lib $(LIBS) |