OBJS = dblib.o pf.o scsi_low.o scsi_hi.o brk.o file.o ulimit.o
SRCS = dblib.s pf.c scsi_low.c scsi_hi.c brk.c file.c ulimit.c

AR = ar32k -a
AS = as32k
CC = cc32k
RM = rm -f
RANLIB = ranlib32k
INSTALL = cp
CFLAGS = -O -pipe

DEST = /usr/local/lib/32k

libso.a: $(OBJS)
	$(RM) libso.a
	$(AR) libso.a $(OBJS)
	$(RANLIB) libso.a

install: libso.a
	$(INSTALL) libso.a $(DEST)/libso.a
	$(INSTALL) stdio.h $(DEST)/gcc-include
	$(INSTALL) so.h    $(DEST)/gcc-include

clean:
	$(RM) *.o *~ #* libso.a
# DO NOT DELETE THIS LINE -- make depend depends on it.

brk.o: so.h ../libc/errno.h
file.o: stdio.h so.h
pf.o: so.h ../libc/ctypes.h
scsi.o: so.h
stdio.o: so.h
ulimit.o: so.h
