]> 4ch.mooo.com Git - 16.git/commitdiff
fixed the issue with compiling in dos in 1.9 and 2.0. only 1.9 linux fails for some...
authorsparky4 <sparky4@cock.li>
Wed, 8 May 2019 16:33:01 +0000 (11:33 -0500)
committersparky4 <sparky4@cock.li>
Wed, 8 May 2019 16:33:01 +0000 (11:33 -0500)
JOYTEST.E [new file with mode: 0755]
MAPTEST.UPX [new file with mode: 0755]
OPLTEST.E [moved from opltest.exe with 100% similarity]
WBUILD.BAT
bcexmm.exe [deleted file]
makefile
palllist.exe [deleted file]
sdtest.exe [deleted file]
src/util/shbat/WBUILD.BAT

diff --git a/JOYTEST.E b/JOYTEST.E
new file mode 100755 (executable)
index 0000000..cce505e
Binary files /dev/null and b/JOYTEST.E differ
diff --git a/MAPTEST.UPX b/MAPTEST.UPX
new file mode 100755 (executable)
index 0000000..e69de29
similarity index 100%
rename from opltest.exe
rename to OPLTEST.E
index 482094036f9419a4b55dcb00829380a03a1a9e7e..49b1100d833c0236cdb9b624deb2ff58f4741cb0 100755 (executable)
@@ -3,7 +3,6 @@ set pee="-h"
 rem -s"
 wmake -h -s clean
 wmake %pee
-rem TODO ADD ME LATER ++
 wmake %pee comp
 if exist *.err (wmake %pee vomitchan)
 rem if exist *.o (del *.o)
diff --git a/bcexmm.exe b/bcexmm.exe
deleted file mode 100755 (executable)
index ddd979b..0000000
Binary files a/bcexmm.exe and /dev/null differ
index f97dce255774bf9a120a3e31ecafa835e295916e..bbc64e1b20018ddf66fdcb8592e0bbd5f1fda614 100755 (executable)
--- a/makefile
+++ b/makefile
@@ -59,8 +59,8 @@ MOVECOMMAND=move
 DIRSEP=\
 OBJ=obj
 DUMP=type
-DOSLIBMAKE=.\make.bat
-DOSLIBMAKEALL=.\build.bat
+DOSLIBMAKE=make.bat build all
+DOSLIBMAKEALL=buildall.bat build all
 !endif
 
 TARGET_OS = dos
@@ -71,9 +71,9 @@ BUILD_ROOT=$+$(%__CWD__)$-
 DATADIR=data/
 SPRI=$(DATADIR)/spri
 SRC=src
-UTIL=$(SRC)/util
+UTIL=$(SRC)$(DIRSEP)util
 GITCONFIGDIR=$(UTIL)/git
-SCRIPTBATDIR=$(UTIL)/shbat
+SCRIPTBATDIR=$(UTIL)$(DIRSEP)shbat
 SRCLIB=$(SRC)/lib
 JSMNLIB=$(SRCLIB)/jsmn
 NYANLIB=$(SRCLIB)/nyan
@@ -250,11 +250,13 @@ EXEC = &
        16.exe &
        bakapi.exe &
        $(TESTEXEC) &
-       $(UTILEXEC)
+       $(UTILEXEC) &
+       $(DOSLIBTESTEXEC)
 
-#!ifdef __LINUX__
-#EXEC += $(SPRIUTILEXEC)
-#!endif
+!ifdef __LINUX__
+#++?EXEC += $(SPRIUTILEXEC)
+#EXEC += $(DOSLIBTESTEXEC)
+!endif
 
 ALLEXEC = &
        $(EXEC) &
@@ -493,6 +495,7 @@ clean: .symbolic
        @if not exist $(DOSLIBDIR)/buildall.sh wmake -s -h initlibs
        @wmake -s -h initscript
        @for %f in ($(ALLEXEC)) do @if exist %f $(REMOVECOMMAND) %f
+       @wmake -s -h exe2e
 !ifdef __LINUX__
        @if exist *.LIB $(REMOVECOMMAND) *.LIB
        @. src/util/bcexmm.sh
@@ -552,31 +555,42 @@ initconfig: .symbolic
 
 backupscript: .symbolic
        @$(COPYCOMMAND) WBUILD.BAT WBUILD.B
-       @$(COPYCOMMAND) wbuild.sh wbuild.s
        @if exist *.bat $(MOVECOMMAND) *.bat $(SCRIPTBATDIR)/
-       @if exist *.sh $(MOVECOMMAND) *.sh $(SCRIPTBATDIR)/
        @$(MOVECOMMAND) WBUILD.B WBUILD.BAT
-       @$(MOVECOMMAND) wbuild.s wbuild.sh
+
 !ifdef __LINUX__
+       @$(COPYCOMMAND) wbuild.sh wbuild.s
+       @if exist *.sh $(MOVECOMMAND) *.sh $(SCRIPTBATDIR)/
+       @$(MOVECOMMAND) wbuild.s wbuild.sh
+
        @if exist *.BAT $(MOVECOMMAND) *.BAT $(SCRIPTBATDIR)/
-       @if not exist ud.sh $(COPYCOMMAND) $(SCRIPTBATDIR)/ud.sh ./
+       @if not exist ud.sh $(COPYCOMMAND) $(SCRIPTBATDIR)/ud.sh .
 !endif
-       @if not exist wbuild.sh $(COPYCOMMAND) $(SCRIPTBATDIR)/wbuild.sh ./
-       @if not exist WBUILD.BAT $(COPYCOMMAND) $(SCRIPTBATDIR)/WBUILD.BAT ./
+       @if not exist wbuild.sh $(COPYCOMMAND) $(SCRIPTBATDIR)/wbuild.sh .
+       @if not exist WBUILD.BAT $(COPYCOMMAND) $(SCRIPTBATDIR)/WBUILD.BAT .
 
 initscript: .symbolic
-       @$(COPYCOMMAND) $(SCRIPTBATDIR)/*.bat ./
-       @$(COPYCOMMAND) $(SCRIPTBATDIR)/*.sh ./
+       @$(COPYCOMMAND) $(SCRIPTBATDIR)$(DIRSEP)*.bat .
 !ifdef __LINUX__
-       @$(COPYCOMMAND) $(SCRIPTBATDIR)/*.BAT ./
+       @$(COPYCOMMAND) $(SCRIPTBATDIR)$(DIRSEP)*.sh .
+       @$(COPYCOMMAND) $(SCRIPTBATDIR)/*.BAT .
 !endif
 
 
 comp: .symbolic
-       @*upx -9 $(EXEC)
+       @*upx -9 *.exe#$(EXEC)
+       @wmake -s -h e2exe
 
 comq: .symbolic
-       @*upx -9 $(UPXQ) $(EXEC)
+       @*upx -9 $(UPXQ) *.exe#$(EXEC)
+       @wmake -s -h e2exe
+
+exe2e: .symbolic
+       @if exist *.exe $(MOVECOMMAND) *.exe *.e
+       #@for %f in ($(ALLEXEC)) do @if exist %f $(REMOVECOMMAND) %f
+
+e2exe: .symbolic
+       @if exist *.e $(MOVECOMMAND) *.e *.exe
 
 www: .symbolic
        @if exist 16.exe @wmake -s -h wwwdo
diff --git a/palllist.exe b/palllist.exe
deleted file mode 100755 (executable)
index 8db76c5..0000000
Binary files a/palllist.exe and /dev/null differ
diff --git a/sdtest.exe b/sdtest.exe
deleted file mode 100755 (executable)
index 79c5b97..0000000
Binary files a/sdtest.exe and /dev/null differ
index 482094036f9419a4b55dcb00829380a03a1a9e7e..49b1100d833c0236cdb9b624deb2ff58f4741cb0 100755 (executable)
@@ -3,7 +3,6 @@ set pee="-h"
 rem -s"
 wmake -h -s clean
 wmake %pee
-rem TODO ADD ME LATER ++
 wmake %pee comp
 if exist *.err (wmake %pee vomitchan)
 rem if exist *.o (del *.o)