# Amiga bitmapped font builder make file (Amiga) - mkbmap V1.0
# This version assumes Lattice make (lmk), C (lc), asm, blink

# Debug symbols

#LCDBG  = -d0 -O           # no debug,            optimise
 LCDBG  = -d2 -O           # full debugging info, optimise
#LCDBG  = -d3              # full debugging info, flush regs

# Default target

all:            mkbmap

# The archive

archive:
	delete mkbmap10.lzh
	lharc -r -S0 a mkbmap10.lzh README mkbmap mkbmap.doc mkbmap.c postlib.h postasm.a makefile isolatin1_encoding.ps ppage_encoding.ps windows_encoding.ps isolatin1oldnum_encoding.ps

# Main program

mkbmap:         mkbmap.o postasm.o
	blink from lib:c.o mkbmap.o postasm.o to mkbmap lib lib:lc.lib smalldata nodebug

# The assembler routines contain FPU instructions

postasm.o:      postasm.a
        asm -u -m2 -iinclude: postasm.a

# The main program

mkbmap.o:       mkbmap.c    postlib.h
        lc $(LCDBG) mkbmap.c
