ref: 94a77ee166df501a80ee355118407a20016b8e93
parent: ccb630b75dcf4925ac866c3fdc5f0fea77705515
author: Jacob Moody <moody@posixcafe.org>
date: Sun Feb 12 01:30:56 EST 2023
correct mkfiles for multiarch
--- a/Engine/src/mkfile
+++ b/Engine/src/mkfile
@@ -1,8 +1,8 @@
</$objtype/mkfile
CFLAGS=-Fpw -I/sys/include/npe -I/sys/include/npe/SDL2 -D__plan9__ -D__${objtype}__
-LIB=libbuild.a
-CLEANFILES=libbuild.a
+LIB=libbuild.$O.a
+CLEANFILES=libbuild.$O.a
OFILES=\
cache.$O \
--- a/Game/src/audiolib/mkfile
+++ b/Game/src/audiolib/mkfile
@@ -1,8 +1,8 @@
</$objtype/mkfile
CFLAGS=-Fpw -I ../../../Engine/src -I/sys/include/npe -I/sys/include/npe/SDL2 -D__plan9__ -D__${objtype}__
-LIB=libaudio.a
-CLEANFILES=libaudio.a
+LIB=libaudio.$O.a
+CLEANFILES=libaudio.$O.a
OFILES=\
dpmi.$O \
--- a/Game/src/midi/mkfile
+++ b/Game/src/midi/mkfile
@@ -1,8 +1,8 @@
</$objtype/mkfile
CFLAGS=-Fpw -I ../../../Engine/src -I/sys/include/npe -I/sys/include/npe/SDL2 -D__plan9__ -D__${objtype}__
-LIB=libmidi.a
-CLEANFILES=libmidi.a
+LIB=libmidi.$O.a
+CLEANFILES=libmidi.$O.a
OFILES=\
sdl_midi.$O
--- a/Game/src/mkfile
+++ b/Game/src/mkfile
@@ -1,7 +1,8 @@
</$objtype/mkfile
CFLAGS=-Fpw -I/sys/include/npe -I/sys/include/npe/SDL2 -I ../../Engine/src -D__plan9__ -D__${objtype}__
-TARG=games/duke3d
+BIN=/$objtype/bin/games
+TARG=duke3d
DIRS=\
../../Engine/src \
@@ -9,9 +10,9 @@
midi \
LIB=\
- ../../Engine/src/libbuild.a \
- audiolib/libaudio.a \
- midi/libmidi.a \
+ ../../Engine/src/libbuild.$O.a \
+ audiolib/libaudio.$O.a \
+ midi/libmidi.$O.a \
OFILES=\
actors.$O \
@@ -63,13 +64,13 @@
</sys/src/cmd/mkone
-../../Engine/src/libbuild.a:
+../../Engine/src/libbuild.$O.a:
@{cd ../../Engine/src/ && mk }
-audiolib/libaudio.a:
+audiolib/libaudio.$O.a:
@{cd audiolib && mk }
-midi/libmidi.a:
+midi/libmidi.$O.a:
@{cd midi && mk }
clean:V: