summaryrefslogtreecommitdiff
path: root/wccdos16.mak
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-06 22:52:30 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-06 22:52:30 -0800
commitabbdb46243b3340f9a73adff8a0941931eab0daa (patch)
tree6cdd357003d675da2dee748f8028148ce52c5a7a /wccdos16.mak
downloaddos2unix-abbdb46243b3340f9a73adff8a0941931eab0daa.tar.gz
dos2unix-abbdb46243b3340f9a73adff8a0941931eab0daa.tar.bz2
dos2unix-abbdb46243b3340f9a73adff8a0941931eab0daa.zip
Imported Upstream version 6.0upstream/6.0
Diffstat (limited to 'wccdos16.mak')
-rw-r--r--wccdos16.mak63
1 files changed, 63 insertions, 0 deletions
diff --git a/wccdos16.mak b/wccdos16.mak
new file mode 100644
index 0000000..8f64e36
--- /dev/null
+++ b/wccdos16.mak
@@ -0,0 +1,63 @@
+!include version.mk
+
+CC = wcc
+SRCDIR = .
+DEFINES = -DMSDOS -DVER_REVISION="$(DOS2UNIX_VERSION)" -DVER_DATE="$(DOS2UNIX_DATE)"
+CFLAGS = $(DEFINES) -i=$(SRCDIR) -w4 -e25 -zq -od -d2 -bt=dos -ml
+WATCOMSRC = $(%WATCOM)\src\startup
+
+TARGET = dos
+
+all: dos2unix.exe unix2dos.exe mac2unix.exe unix2mac.exe
+
+cflags.cfg:
+ @%create cflags.cfg
+ @%append cflags.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
+ wlink name dos2unix d all SYS $(TARGET) op m op st=32k 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
+ wlink name unix2dos d all SYS $(TARGET) op m op st=32k op maxe=25 op q op symf @unix2dos.lnk
+ del unix2dos.lnk
+
+
+dos2unix.obj : $(SRCDIR)\dos2unix.c $(SRCDIR)\querycp.h $(SRCDIR)\common.h cflags.cfg
+ $(CC) @cflags.cfg $(SRCDIR)\dos2unix.c
+
+unix2dos.obj : $(SRCDIR)\unix2dos.c $(SRCDIR)\querycp.h $(SRCDIR)\common.h cflags.cfg
+ $(CC) @cflags.cfg $(SRCDIR)\unix2dos.c
+
+querycp.obj : $(SRCDIR)\querycp.c $(SRCDIR)\querycp.h cflags.cfg
+ $(CC) @cflags.cfg $(SRCDIR)\querycp.c
+
+common.obj : $(SRCDIR)\common.c $(SRCDIR)\common.h cflags.cfg
+ $(CC) @cflags.cfg $(SRCDIR)\common.c
+
+wildargv.obj : $(WATCOMSRC)\wildargv.c
+ $(CC) @cflags.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 cflags.cfg