add file device build dep to mkfile; fix file_delete prototype

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-11-07 00:12:11 +01:00
parent ede10292d6
commit 0465b68ab5
No known key found for this signature in database
GPG Key ID: FC8DDA5A6A7456C4
2 changed files with 5 additions and 4 deletions

7
mkfile
View File

@ -7,6 +7,7 @@ CFLAGS=$CFLAGS -D__plan9__ -I/sys/include/npe -I/sys/include/npe/SDL2
HFILES=\
/sys/include/npe/stdio.h\
src/devices/apu.h\
src/devices/file.h\
src/devices/ppu.h\
src/uxn.h\
@ -28,19 +29,19 @@ bin:
%.rom:Q: %.tal bin/uxnasm
bin/uxnasm $stem.tal $target >/dev/null
bin/uxncli: uxncli.$O uxn.$O
bin/uxncli: file.$O uxncli.$O uxn.$O
$LD $LDFLAGS -o $target $prereq
bin/uxnasm: uxnasm.$O
$LD $LDFLAGS -o $target $prereq
bin/uxnemu: uxnemu.$O apu.$O ppu.$O uxn.$O
bin/uxnemu: uxnemu.$O apu.$O file.$O ppu.$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
(apu|ppu)\.$O:R: src/devices/\1.c
(apu|file|ppu)\.$O:R: src/devices/\1.c
$CC $CFLAGS -Isrc -o $target src/devices/$stem1.c
nuke:V: clean

View File

@ -14,4 +14,4 @@ void file_prepare(void *filename);
Uint16 file_read(void *dest, Uint16 len);
Uint16 file_write(void *src, Uint16 len, Uint8 flags);
Uint16 file_stat(void *dest, Uint16 len);
Uint16 file_delete();
Uint16 file_delete(void);