Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/root/sys/src/cmd/magick/mkfile

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


APE=/sys/src/ape
<$APE/config

BIN=/$objtype/bin/magick

TARG=\
	animate\
	compare\
	composite\
	conjure\
	convert\
	display\
	identify\
	import\
	mogrify\
	montage\
	stream\

HFILES=\
	plan9cfg.h.h\

LIB=libltdl.a$O libwand.a$O libmagick.a$O

</sys/src/cmd/mkmany

CFLAGS=-c -I. -DT$objtype

libltdl.a$O:
	@{cd ltdl; mk}

libwand.a$O:
	@{cd wand; mk}

libmagick.a$O:
	@{cd magick; mk}

%.$O: utilities/%.c
	$CC $CFLAGS -o $target utilities/$stem.c

testlibs:V: $LIB
	@{cd tests; mk}
	./testlibs.rc

testcmds:V: $PROGS
	./testcmds.rc jpeg

test:V: testcmds
	page -w *.jpeg

clean:
	rm -f *.[$OS] *.a[$OS]  [$OS].* */*.[$OS] */[$OS].* *_fgb.miff *_fgb.jpeg

install:V:
	mkdir -p $BIN
	for (i in $TARG)
		mk $MKFLAGS $i.install
#	mkdir -p /lib/magick
#	mkdir -p /lib/magick/config
#	cp config/*.xml /lib/magick/config
#	mkdir -p /lib/magick/images
#	dircp images /lib/magick/images

dist:
	@{9fs sources
	mk clean
	cd ..
	tar c magick | gzip -9 > /tmp/magick.tgz
	fcp /tmp/magick.tgz /n/sources/contrib/fgb/
	rm /tmp/magick.tgz }

none:V: test

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.