shithub: lu9-p9

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