shithub: lu9-p9

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