# Makefile for bcc library - 80386 assembler routines

AS		=bcc -3 -c
LIBDIR		=/usr/local/lib/i386
LIBOBJS		=$(FOBJS) $(GOBJS) $(IOBJS) $(MOBJS)

# compiler non-support for floating point arithmetic
FOBJS		=dummy.o

# compiler support for gcc
GOBJS		=divsi3.o

# compiler support for integer arithmetic
IOBJS		=idiv.o idivu.o imod.o imodu.o imul.o isl.o isr.o isru.o

# Minix library routines
MOBJS		=brksize.o catchsig.o sendrec.o setjmp.o

# Minix startup routines
SOBJS		=crtso.o head.o

default: $(LIBOBJS) $(SOBJS)

clean:
	rm -f $(LIBOBJS) $(SOBJS)

install: $(LIBOBJS) $(SOBJS)
	ar r $(LIBDIR)/libc.a $(LIBOBJS)
	cp $(SOBJS) $(LIBDIR)
