patch for makefile.wcl386 for DOS/Causeway target (OpenWatcom)
Brought to you by:
kerravon86,
tcamp
makefile.wcl386 (OpenWatcom) really needs to be rewritten. Although I'm not an expert, in the interim I did provide a simple patch to get 3.20 sources to build for DOS/Causeway (386). I know FreeDOS may not be a supported platform here, but some people there were recently asking for a newer package, so there is some active interest.
--- makefile.wcl 2017-06-08 11:20:14 -0500
+++ makefile 2017-07-10 15:45:30 -0500
@@ -19,2 +19,2 @@
-.BEFORE
- set INCLUDE=$(%WATCOM)\h;$(%WATCOM)\h\nt
+#.BEFORE
+# set INCLUDE=$(%WATCOM)\h;$(%WATCOM)\h\nt
@@ -24,2 +24,2 @@
-CC= wcl386
-LINK= wlink
+CC= *wcc386
+LINK= *wcl386
@@ -37 +37 @@
-CFLAGS= -bc -c -ox -q -wx -za -DHAVE_MSDOS -D__WATCOM__
+CFLAGS= -ox -q -wx -za -DHAVE_MSDOS -D__WATCOM__
@@ -39 +39 @@
-LFLAGS= OPTION QUIET
+LFLAGS= -q -l=causeway
@@ -50 +50 @@
-all: $(PROJ).exe
+all: $(PROJ).exe pack
@@ -53 +53,4 @@
- $(LINK) $(LFLAGS) FILE $(OFILES: =,) NAME $@
+ $(LINK) $(LFLAGS) -fe=$@ $<
+
+pack: .SYMBOLIC
+ -upx -qq --best --lzma $(PROJ).exe
@@ -56 +59 @@
- del $(OFILES) *.err $(PROJ).exe
+ rm $(OFILES) *.err $(PROJ).exe
Your patch to "makefile.wcl386" has been applied for the next release of Bywater BASIC.
I support FreeDOS.