shithub: lu9-lua

ref: 04c3a13e333abf7f4463dad265da65a0bb65b836
dir: /mkfile/

View raw version
</$objtype/mkfile

CFLAGS=-FTV -p -Ishim -DLUA_USE_PLAN9 -DLUA_UCID

LIB=liblua.a.$O

SHIMOBJS=\
	shim.$O\

COREOBJS=\
	lapi.$O\
	lcode.$O\
	lctype.$O\
	ldebug.$O\
	ldo.$O\
	ldump.$O\
	lfunc.$O\
	lgc.$O\
	llex.$O\
	lmem.$O\
	lobject.$O\
	lopcodes.$O\
	lparser.$O\
	lstate.$O\
	lstring.$O\
	ltable.$O\
	ltm.$O\
	lundump.$O\
	lvm.$O\
	lzio.$O\
	lauxlib.$O

LIBOBJS=\
	lbaselib.$O\
	ldblib.$O\
	liolib.$O\
	lmathlib.$O\
#	loslib.$O\
	los9lib.$O\
	ltablib.$O\
	lstrlib.$O\
	lutf8lib.$O\
	loadlib.$O\
	lcorolib.$O\
	linit.$O

ALLOBJS=$SHIMOBJS $COREOBJS $LIBOBJS

all:V: $LIB

clean:V:
	rm -f *.[$OS] *.a.[$OS]

$LIB: $ALLOBJS
	ar cr $target $prereq

%.$O: %.c
	$CC $CFLAGS $stem.c