shithub: lu9-p9

ref: 21cbbb0f5ac29f141d12f85da6ecabcd9af1ab85
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/