# Makefile for the Metapost support porgrams
# Written by Jakob Stoklund Olesen

CC	= cc
ASM	= asm
LINK	= Drlink -o $@ -rescan
CPPFLAGS= -DRISCOS -DHAVE_CONFIG_H -IC:
CCFLAGS	= -fa -wad ${CPPFLAGS} -depend !Depend -throwback
ASMFLAGS= -throwback -processor ARM2

LIBS	= C:o.stubs 

.SUFFIXES: .c .a .o

.c.o:;	${CC} -c $< -o $@ ${CCFLAGS}

.a.o:;	${ASM} -output $@ ${ASMFLAGS} $<

# Primary target:

test	= o.test o.fixpt o.mfmpasm

# Programs
test:	${test}
	${LINK} ${test} ${LIBS}

# Dynamic dependencies:
o.mfmpasm:	a.mfmpasm
o.fixpt:	c.fixpt
o.fixpt:	h.fixpt
o.test:	c.test
o.test:	h.fixpt
