shithub: 9ficl

ref: 7c76dac1b268038f567939a70a18228e790a5cbc
dir: /mkfile.lib/

View raw version
</amd64/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