Mercurial > dwindows
comparison makefile.wpm @ 1404:56f311dc23f6
Changes to get the library building with Watcom on OS/2.
These changes mean that VisualAge 3.0 will no longer build the library.
Please use version 3.6 or higher.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 29 Nov 2011 15:25:41 +0000 |
parents | 75bf3051235f |
children | 1d07d7ff07b9 |
comparison
equal
deleted
inserted
replaced
1403:20c6d0c50c94 | 1404:56f311dc23f6 |
---|---|
3 # Auto-dependency information | 3 # Auto-dependency information |
4 # | 4 # |
5 #=================================================================== | 5 #=================================================================== |
6 OS22_H = $(%WATCOM)\h\os2 | 6 OS22_H = $(%WATCOM)\h\os2 |
7 CFLAGS = -i=os2 -i=$(OS22_H) -bt=OS2 -zq -d2 -bd | 7 CFLAGS = -i=os2 -i=$(OS22_H) -bt=OS2 -zq -d2 -bd |
8 TKPATH=C:\Toolkit | |
9 TLKTLIB = $(TKPATH)\LIB | |
8 | 10 |
9 .SUFFIXES: | 11 .SUFFIXES: |
10 .SUFFIXES: .obj .c | 12 .SUFFIXES: .obj .c |
11 .c.obj: .AUTODEPEND | 13 .c.obj: .AUTODEPEND |
12 wcc386 $(CFLAGS) $*.c | 14 wcc386 $(CFLAGS) $*.c |
13 | 15 |
14 all: dw.dll dwcompat.dll | 16 all: dw.dll dwcompat.dll dwtest.exe |
15 | 17 |
16 dwcompat.dll: compat.obj | 18 dwcompat.dll: dirent.obj compat.obj |
17 wlink name dwcompat.dll system os2v2_pm d a library so32dll,tcp32dll option symf f $[@ | 19 wlink @os2\dwcompat.lnk name dwcompat.dll system os2v2_dll d a library $(TLKTLIB)\so32dll,$(TLKTLIB)\tcp32dll option implib=dwcompat option symf f $[@ f compat |
20 copy dwcompat.lib lib | |
21 | |
22 dirent.obj: | |
23 wcc386 $(CFLAGS) os2\dirent.c | |
18 | 24 |
19 dw.dll: dw.obj | 25 dw.dll: dw.obj |
20 wlink name dw.dll system os2v2_pm d a option symf f $[@ | 26 wlink @os2\dw.lnk name dw.dll system os2v2_dll d a option implib=dw option symf f $[@ |
27 copy dw.lib lib | |
21 | 28 |
22 dw.obj: os2\dw.c | 29 dw.obj: os2\dw.c |
23 wcc386 $(CFLAGS) os2\dw.c | 30 wcc386 $(CFLAGS) os2\dw.c |
24 | 31 |
32 dwtest.exe: dwtest.obj | |
33 wlink name dwtest.exe system os2v2_pm d a library lib\dw.lib option symf f $[@ | |
34 | |
35 dwtest.obj: | |
36 wcc386 /DOS2 -i=os2 -i=$(OS22_H) -bt=OS2 -zq -d2 dwtest.c | |
37 | |
38 clean: | |
39 @if exist *.obj del *.obj | |
40 @if exist *.sym del *.sym | |
41 @if exist *.lib del *.lib | |
42 @if exist *.dll del *.dll | |
43 @if exist *.exe del *.exe | |
44 @if exist lib\*.lib del lib\*.lib | |
45 |