Imported Upstream version 6.0
[platform/upstream/dos2unix.git] / wccwin32.mak
1 !include version.mk\r
2 \r
3 CC      = wcc386\r
4 SRCDIR = .\r
5 DEFINES = -DVER_REVISION="$(DOS2UNIX_VERSION)" -DVER_DATE="$(DOS2UNIX_DATE)" -DD2U_UNICODE\r
6 CFLAGS  = $(DEFINES) -i=$(SRCDIR) -w4 -e25 -zq -od -d2 -5r -bt=nt -mf\r
7 WATCOMSRC = $(%WATCOM)\src\startup\r
8 \r
9 TARGET = nt\r
10 \r
11 all: dos2unix.exe unix2dos.exe mac2unix.exe unix2mac.exe\r
12 \r
13 cflags32.cfg:\r
14         @%create cflags32.cfg\r
15         @%append cflags32.cfg $(CFLAGS)\r
16 \r
17 dos2unix.exe: dos2unix.obj querycp.obj common.obj wildargv.obj\r
18         @%create dos2unix.lnk\r
19         @%append dos2unix.lnk FIL dos2unix.obj,querycp.obj,common.obj,wildargv.obj\r
20         @%append dos2unix.lnk library mpr.lib\r
21         wlink name dos2unix d all SYS $(TARGET) op inc op m op st=64k op maxe=25 op q op symf @dos2unix.lnk\r
22         del dos2unix.lnk\r
23 \r
24 unix2dos.exe: unix2dos.obj querycp.obj common.obj wildargv.obj\r
25         @%create unix2dos.lnk\r
26         @%append unix2dos.lnk FIL unix2dos.obj,querycp.obj,common.obj,wildargv.obj\r
27         @%append unix2dos.lnk library mpr.lib\r
28         wlink name unix2dos d all SYS $(TARGET) op inc op m op st=64k op maxe=25 op q op symf @unix2dos.lnk\r
29         del unix2dos.lnk\r
30 \r
31 \r
32 dos2unix.obj :  $(SRCDIR)\dos2unix.c $(SRCDIR)\querycp.h $(SRCDIR)\common.h cflags32.cfg\r
33         $(CC) @cflags32.cfg $(SRCDIR)\dos2unix.c\r
34 \r
35 unix2dos.obj :  $(SRCDIR)\unix2dos.c $(SRCDIR)\querycp.h $(SRCDIR)\common.h cflags32.cfg\r
36         $(CC) @cflags32.cfg $(SRCDIR)\unix2dos.c\r
37 \r
38 querycp.obj :  $(SRCDIR)\querycp.c $(SRCDIR)\querycp.h cflags32.cfg\r
39         $(CC) @cflags32.cfg $(SRCDIR)\querycp.c\r
40 \r
41 common.obj :  $(SRCDIR)\common.c $(SRCDIR)\common.h cflags32.cfg\r
42         $(CC) @cflags32.cfg $(SRCDIR)\common.c\r
43 \r
44 wildargv.obj : $(WATCOMSRC)\wildargv.c\r
45         $(CC) @cflags32.cfg $(WATCOMSRC)\wildargv.c\r
46 \r
47 mac2unix.exe : dos2unix.exe\r
48         copy /v dos2unix.exe mac2unix.exe\r
49 \r
50 unix2mac.exe : unix2dos.exe\r
51         copy /v unix2dos.exe unix2mac.exe\r
52 \r
53 strip\r
54         wstrip dos2unix.exe\r
55         wstrip unix2dos.exe\r
56         wstrip mac2unix.exe\r
57         wstrip unix2mac.exe\r
58 \r
59 clean\r
60         -del *.obj\r
61         -del *.exe\r
62         -del *.SYM\r
63         -del *.map\r
64         -del *.ilk \r
65         -del cflags32.cfg\r