Mercurial > dwindows
annotate makefile.vc @ 189:230686a7eba9
Fixed typos.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 05 Jan 2003 06:26:26 +0000 |
parents | 90aa71b3298a |
children | 634625c3239d |
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 = | |
11 LINKFLAGS = -machine:i386 -debug:full -debugtype:cv | |
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 | |
61 dw.obj: | |
62 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(CFLAGS_COMPILE) win\dw.c | |
63 | |
64 dirent.obj: | |
65 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(CFLAGS_COMPILE) win\dirent.c | |
66 | |
67 .c.obj: | |
68 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(CFLAGS_COMPILE) $*.c |