# Makefile for the Metafont window support library.
# Written by Jakob Stoklund Olesen

CC = cc
LINK = drlink -o $@
LIBFILE = MakeALF -o $@
CPPFLAGS = -DRISCOS -DHAVE_CONFIG_H -I,^,C:
CCFLAGS = -fah -wad ${CPPFLAGS} -depend !Depend -throwback

LIBS = C:o.stubs -lib kpathsea:o.kpathsea OSLib:o.OSLib

# VPATH=@ riscos

.SUFFIXES: .c .o

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

OBJ = o.trap

# Primary target:
all: o.window

o.window: $(OBJ)
	$(LIBFILE) $(OBJ)

# Dynamic dependencies:
o.trap:	c.trap
o.trap:	^.h.mfd
o.trap:	^.h.texmfmp
o.trap:	^.h.cpascal
o.trap:	^.h.config
o.trap:	kpathsea:h.config
o.trap:	^.h.c-auto
o.trap:	kpathsea:h.c-std
o.trap:	kpathsea:h.c-unistd
o.trap:	kpathsea:h.systypes
o.trap:	kpathsea:h.c-std
o.trap:	kpathsea:h.c-memstr
o.trap:	kpathsea:h.c-errno
o.trap:	kpathsea:h.c-minmax
o.trap:	kpathsea:h.c-limits
o.trap:	kpathsea:h.c-proto
o.trap:	kpathsea:h.debug
o.trap:	kpathsea:h.c-proto
o.trap:	kpathsea:h.c-std
o.trap:	kpathsea:h.types
o.trap:	kpathsea:h.lib
o.trap:	kpathsea:h.types
o.trap:	kpathsea:h.types
o.trap:	kpathsea:h.progname
o.trap:	kpathsea:h.c-proto
o.trap:	kpathsea:h.types
o.trap:	kpathsea:h.c-fopen
o.trap:	kpathsea:h.getopt
o.trap:	kpathsea:h.progname
o.trap:	kpathsea:h.proginit
o.trap:	kpathsea:h.c-proto
o.trap:	kpathsea:h.types
o.trap:	kpathsea:h.tex-file
o.trap:	kpathsea:h.c-proto
o.trap:	kpathsea:h.types
o.trap:	^.h.help
o.trap:	kpathsea:h.c-pathch
o.trap:	kpathsea:h.c-ctype
o.trap:	kpathsea:h.tex-make
o.trap:	kpathsea:h.c-proto
o.trap:	kpathsea:h.tex-file
o.trap:	kpathsea:h.types
o.trap:	^.h.texmfmem
o.trap:	^.h.mfcoerce
