shithub: dumb

Download patch

ref: 97d608f147c66bb92800c33acda97b4b9df6ff67
parent: cbff5cf07f67b6a20c1718b10fece652a62bdaa0
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Thu Mar 4 17:18:01 EST 2021

add mkfiles

--- /dev/null
+++ b/mkfile
@@ -1,0 +1,42 @@
+</$objtype/mkfile
+
+TARG=moddec
+CFLAGS=$CFLAGS -p -Iinclude -Isrc/plan9 -DNDEBUG -DLONG_LONG=vlong -D__plan9__ -D__${objtype}__
+BIN=/$objtype/bin/audio
+
+HFILES=\
+	include/dumb.h\
+	include/internal/barray.h\
+	include/internal/dumb.h\
+	include/internal/dumbfile.h\
+	include/internal/it.h\
+	include/internal/lpc.h\
+	include/internal/resampler.h\
+	include/internal/riff.h\
+	include/internal/stack_alloc.h\
+	include/internal/tarray.h\
+
+OFILES=\
+	examples/moddec.$O\
+
+default:V: all
+
+CLEANFILES=$OFILES libdumb.a$O
+
+</sys/src/cmd/mkone
+
+%.$O: %.c
+	$CC $CFLAGS -o $target $stem.c
+
+$O.out: libdumb.a$O
+
+libdumb.a$O:
+	mk -f mkfile.lib
+
+nuke:V:
+	rm -f *.[$OS] [$OS].out y.tab.? lex.yy.c y.debug y.output *.acid $TARG $CLEANFILES
+	mk -f mkfile.lib nuke
+
+clean:V:
+	rm -f *.[$OS] [$OS].out y.tab.? lex.yy.c y.debug y.output $TARG $CLEANFILES
+	mk -f mkfile.lib clean
--- /dev/null
+++ b/mkfile.lib
@@ -1,0 +1,103 @@
+</$objtype/mkfile
+
+LIB=libdumb.a$O
+CFLAGS=$CFLAGS -p -Iinclude -Isrc/plan9 -DNDEBUG -DLONG_LONG=vlong -D__plan9__ -D__${objtype}__
+
+HEADERS=\
+	src/plan9/plan9.h\
+
+OFILES=\
+	src/core/atexit.$O\
+	src/core/duhlen.$O\
+	src/core/duhtag.$O\
+	src/core/dumbfile.$O\
+	src/core/loadduh.$O\
+	src/core/makeduh.$O\
+	src/core/rawsig.$O\
+	src/core/readduh.$O\
+	src/core/register.$O\
+	src/core/rendduh.$O\
+	src/core/rendsig.$O\
+	src/core/unload.$O\
+	src/helpers/barray.$O\
+	src/helpers/clickrem.$O\
+	src/helpers/lpc.$O\
+	src/helpers/memfile.$O\
+	src/helpers/resample.$O\
+	src/helpers/resampler.$O\
+	src/helpers/riff.$O\
+	src/helpers/sampbuf.$O\
+	src/helpers/silence.$O\
+	src/helpers/stdfile.$O\
+	src/helpers/tarray.$O\
+	src/it/itload.$O\
+	src/it/itload2.$O\
+	src/it/itmisc.$O\
+	src/it/itorder.$O\
+	src/it/itread.$O\
+	src/it/itread2.$O\
+	src/it/itrender.$O\
+	src/it/itunload.$O\
+	src/it/load669.$O\
+	src/it/load6692.$O\
+	src/it/loadamf.$O\
+	src/it/loadamf2.$O\
+	src/it/loadany.$O\
+	src/it/loadany2.$O\
+	src/it/loadasy.$O\
+	src/it/loadasy2.$O\
+	src/it/loadmod.$O\
+	src/it/loadmod2.$O\
+	src/it/loadmtm.$O\
+	src/it/loadmtm2.$O\
+	src/it/loadokt.$O\
+	src/it/loadokt2.$O\
+	src/it/loadoldpsm.$O\
+	src/it/loadoldpsm2.$O\
+	src/it/loadpsm.$O\
+	src/it/loadpsm2.$O\
+	src/it/loadptm.$O\
+	src/it/loadptm2.$O\
+	src/it/loadriff.$O\
+	src/it/loadriff2.$O\
+	src/it/loads3m.$O\
+	src/it/loads3m2.$O\
+	src/it/loadstm.$O\
+	src/it/loadstm2.$O\
+	src/it/loadxm.$O\
+	src/it/loadxm2.$O\
+	src/it/ptmeffect.$O\
+	src/it/read669.$O\
+	src/it/read6692.$O\
+	src/it/readam.$O\
+	src/it/readamf.$O\
+	src/it/readamf2.$O\
+	src/it/readany.$O\
+	src/it/readany2.$O\
+	src/it/readasy.$O\
+	src/it/readdsmf.$O\
+	src/it/readmod.$O\
+	src/it/readmod2.$O\
+	src/it/readmtm.$O\
+	src/it/readokt.$O\
+	src/it/readokt2.$O\
+	src/it/readoldpsm.$O\
+	src/it/readpsm.$O\
+	src/it/readptm.$O\
+	src/it/readriff.$O\
+	src/it/reads3m.$O\
+	src/it/reads3m2.$O\
+	src/it/readstm.$O\
+	src/it/readstm2.$O\
+	src/it/readxm.$O\
+	src/it/readxm2.$O\
+	src/it/xmeffect.$O\
+
+default:V: all
+
+CLEANFILES=$OFILES
+
+</sys/src/cmd/mklib
+
+%.$O: %.c
+	$CC $CFLAGS -o $target $stem.c