# Makefile for libc/numeric (MC68000) Vkernel version
#	by Andrew I. Shore
.SUFFIXES: .b .c .s

OBJS = abs.b aldiv.b almul.b alrem.b auldiv.b aulmul.b aulrem.b float.b \
	ldiv.b lmul.b lrem.b rand.b uldiv.b ulmul.b ulrem.b
#ifdef X
C68FLAGS = -V -vx -I../include
#else X
C68FLAGS =  -V -I../include
#endif X

all: $(OBJS)
# how to make a .b file from a .c file
.c.b:
	cc68 $(C68FLAGS) -O -c $*.c

# how to make a .b file from a .s file
.s.b:
	cc68 $(C68FLAGS) -c $*.s

clean: 
	rm -f *.b *CKP *BAK

backup:
	cd ..; cpdir numeric ../../Vbackup/libc/numeric

build:
	buildmake.sh

xbuild:
	buildmake.sh -DX=1
