Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/cmd/postscript/postbgi/mkfile

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


BUILTINS=
</$objtype/mkfile
MAKE=mk

SYSTEM=plan9
VERSION=3.3.1

ROOT=
MAN1DIR=$ROOT/tmp
POSTBIN=$ROOT/rc/bin/postscript/
POSTLIB=$ROOT/sys/lib/postscript/prologues

COMMONDIR=../common

CC=pcc
LD=pcc

CFLAGS=-c -D$SYSTEM -D_POSIX_SOURCE -I$COMMONDIR -B
LDFLAGS=

all :V: $O.out

install :V: $POSTBIN/$objtype/postbgi $POSTLIB/postbgi.ps $MAN1DIR/postbgi.1

installall :V:
	for(objtype in $CPUS) { \
		$MAKE 'MAKE=$MAKE' \
		'SYSTEM=$SYSTEM' 'VERSION=$VERSION' \
		'FONTDIR=$FONTDIR' 'HOSTDIR=$HOSTDIR' 'MAN1DIR=$MAN1DIR' \
		'POSTBIN=$POSTBIN' 'POSTLIB=$POSTLIB' 'TMACDIR=$TMACDIR' \
		'DKHOST=$DKHOST' 'DKSTREAMS=$DKSTREAMS' \
		'ROUNDPAGE=$ROUNDPAGE' \
		'CC=$CC' 'LD=$LD' 'CFLAGS=$CFLAGS' 'LDFLAGS=$LDFLAGS' \
		install \
	}

clean :V:
	rm -f *.$O

clobber :V: clean
	rm -f $O.out

$POSTBIN/$objtype/postbgi : $O.out
	cp $prereq $target

$POSTLIB/postbgi.ps : postbgi.ps
	cp $prereq $target

$MAN1DIR/postbgi.1 : postbgi.1
	cp $prereq $target

$O.out : postbgi.$O $COMMONDIR/glob.$O $COMMONDIR/misc.$O $COMMONDIR/request.$O $COMMONDIR/getopt.$O
	$LD $LDFLAGS $prereq

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

postbgi.$O : $COMMONDIR/comments.h $COMMONDIR/gen.h $COMMONDIR/path.h $COMMONDIR/ext.h postbgi.h

common :V:
	cd $COMMONDIR; $MAKE

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.