shithub: 9ficl

ref: 7d02e382d314d5bdde7978ccb7a64ea9201d03db
dir: /mkfile.lib/

View raw version
</$objtype/mkfile

CFLAGS=-I. -D__amd64__ -D__plan9__ -DFICL_PLATFORM_ARCHITECTURE="$objtype" -D_POSIX_SOURCE -D_SUSV2_SOURCE
CC=pcc

LIB=libficl.a

OFILES=\
	dictionary.$O\
	system.$O\
	fileaccess.$O\
	float.$O\
	double.$O\
	prefix.$O\
	search.$O\
	softcore.$O\
	stack.$O\
	tools.$O\
	vm.$O\
	primitives.$O\
	bit.$O\
	lzuncompress.$O\
	utility.$O\
	hash.$O\
	callback.$O\
	word.$O\
	extras.$O\
	unix.$O

HFILES=\
	ficlplatform/unix.h

CLEANFILES=libficl.a

</sys/src/cmd/mklib

%.$O: %.c
	pcc $CFLAGS -c -o $target $stem.c

softcore.$O:
	cd softcore && mk && cd ..
	$CC $CFLAGS -c -o softcore.$O softcore/softcore.c

unix.$O:
	$CC $CFLAGS -Ificlplatform -c -o unix.$O ficlplatform/unix.c