shithub: 9ficl

Download patch

ref: 7d02e382d314d5bdde7978ccb7a64ea9201d03db
parent: 7c76dac1b268038f567939a70a18228e790a5cbc
author: grobe0ba <grobe0ba@tcp80.org>
date: Tue Aug 2 09:09:00 EDT 2022

minor fixup

--- a/mkfile.bin
+++ b/mkfile.bin
@@ -1,4 +1,4 @@
-</amd64/mkfile
+</$objtype/mkfile
 
 CFLAGS=-I. -D__amd64__ -D__plan9__ -DFICL_PLATFORM_ARCHITECTURE="$objtype" -D_POSIX_SOURCE -D_SUSV2_SOURCE
 CC=pcc
--- a/mkfile.lib
+++ b/mkfile.lib
@@ -1,4 +1,4 @@
-</amd64/mkfile
+</$objtype/mkfile
 
 CFLAGS=-I. -D__amd64__ -D__plan9__ -DFICL_PLATFORM_ARCHITECTURE="$objtype" -D_POSIX_SOURCE -D_SUSV2_SOURCE
 CC=pcc
--- a/softcore/mkfile
+++ b/softcore/mkfile
@@ -1,4 +1,4 @@
-</$objtype/mkfile
+</$cputype/mkfile
 
 SOURCES=\
 	softcore.fr\
@@ -23,13 +23,13 @@
 	$LD -o $target $prereq
 
 makesoftcore.$O: makesoftcore.c
-	$CC -I.. -c -o $target $prereq
+	objtype=$cputype $CC -I.. -c -o $target $prereq
 
 lzcompress.$O: ../lzcompress.c
-	$CC -I.. -c -o $target $prereq
+	objtype=$cputype $CC -I.. -c -o $target $prereq
 
 bit.$O: ../bit.c
-	$CC -I.. -c -o $target $prereq
+	objtype=$cputype $CC -I.. -c -o $target $prereq
 
 clean:
 	rm -f *.$O makesoftcore softcore.c