fix 9front build

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-12-29 18:07:28 +01:00
parent 23a514b3ba
commit cd7cc2ac4f
1 changed files with 4 additions and 2 deletions

6
mkfile
View File

@ -7,7 +7,9 @@ CFLAGS=$CFLAGS -D__plan9__ -I/sys/include/npe -I/sys/include/npe/SDL2
HFILES=\
/sys/include/npe/stdio.h\
src/devices/audio.h\
src/devices/controller.h\
src/devices/file.h\
src/devices/mouse.h\
src/devices/screen.h\
src/uxn.h\
@ -35,13 +37,13 @@ bin/uxncli: file.$O uxncli.$O uxn.$O
bin/uxnasm: uxnasm.$O
$LD $LDFLAGS -o $target $prereq
bin/uxnemu: uxnemu.$O audio.$O file.$O screen.$O uxn.$O
bin/uxnemu: uxnemu.$O audio.$O controller.$O file.$O mouse.$O screen.$O uxn.$O
$LD $LDFLAGS -o $target $prereq
(uxnasm|uxncli|uxnemu|uxn)\.$O:R: src/\1.c
$CC $CFLAGS -Isrc -o $target src/$stem1.c
(audio|file|screen)\.$O:R: src/devices/\1.c
(audio|controller|file|mouse|screen)\.$O:R: src/devices/\1.c
$CC $CFLAGS -Isrc -o $target src/devices/$stem1.c
nuke:V: clean