shithub: lu9-p9

ref: ae8a8b505161c5cf0dfd385145562e5fba21c7e3
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/