add file device build dep to mkfile; fix file_delete prototype
This commit is contained in:
parent
ede10292d6
commit
0465b68ab5
7
mkfile
7
mkfile
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue