fix plan 9 build

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-05-17 21:55:13 +00:00
parent 3baad0adc1
commit 77bc54b0b3
1 changed files with 8 additions and 5 deletions

13
mkfile
View File

@ -7,9 +7,9 @@ CFLAGS=$CFLAGS -I/sys/include/npe
BIN=/$objtype/bin/uxn BIN=/$objtype/bin/uxn
HFILES=\ HFILES=\
/sys/include/npe/stdio.h\ /sys/include/npe/stdio.h\
src/apu.h\ src/devices/apu.h\
src/mpu.h\ src/devices/mpu.h\
src/ppu.h\ src/devices/ppu.h\
src/uxn.h\ src/uxn.h\
CLEANFILES=${TARG:%=bin/%} `{echo $ROM | sed 's,([^ /]+/)+,bin/,g'} CLEANFILES=${TARG:%=bin/%} `{echo $ROM | sed 's,([^ /]+/)+,bin/,g'}
@ -44,5 +44,8 @@ $O.debugger: debugger.$O uxn.$O
$O.emulator: emulator.$O apu.$O mpu.$O ppu.$O uxn.$O $O.emulator: emulator.$O apu.$O mpu.$O ppu.$O uxn.$O
%.$O: src/%.c (assembler|debugger|emulator|uxn)\.$O:R: src/\1.c
$CC $CFLAGS -Isrc -o $target src/$stem.c $CC $CFLAGS -Isrc -o $target src/$stem1.c
(apu|mpu|ppu)\.$O:R: src/devices/\1.c
$CC $CFLAGS -Isrc -o $target src/devices/$stem1.c