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