shithub: lu9-p9

ref: d17daacab44a60e9e46ea0562e336ac40338cfe4
dir: /mkfile/

View raw version
</$objtype/mkfile

CFLAGS=-FTVw -p -I../lua/shim -I../lua

LIB=libp9.a.$O
MOD=\
	base\
	note

default:V: all

obj/:
	mkdir -p $target

obj/%.$O: obj/ %/%.c
	$CC $CFLAGS -o $target $stem/$stem.c

obj/base.$O: base/common.c `{ls base/*.c}
obj/note.$O: base/common.c `{ls note/*.c}

$LIB: ${MOD:%=obj/%.$O}
	ar cr $target $prereq

all:V: $LIB

clean:V:
	rm -rf *.a.[$OS] obj/