Makefile 1.22 KB
#!smake
#
# Makefile for error library subdirectory
#

SUBDIR=error

COMMONPREF=$(SUBDIR)

PRDEPTH=$(ROOT)/PR
include $(PRDEPTH)/PRdefs

LIBDEPTH=$(ROOT)/PR/libultra
include $(LIBDEPTH)/libdefs

sinclude ../companydefs
sinclude locdefs

LCOPTS = -non_shared -mips2 -fullwarn -G 0 -wlint,-f -woff 819,826,852,821,827
LCINCS = -I. -I$(LIBDEPTH)/include -I$(PRDEPTH)/include  -I$(PRDEPTH)/libultra/monegi/libc

FLAGS  = $(LCDEFS) $(LCINCS) -non_shared -G 0 -mips3 -32bit -c $(GCFLAGS)
FLAGS2 = $(LCDEFS) $(LCINCS) -G 0 $(GCFLAGS) -woff 819,826,852,821,827

LASOPTS	  = -non_shared -G 0 -mips2
LASINCS	  = -I. -I$(PRDEPTH)/include

CFILES = getcurrfaultthread.c getnextfaultthread.c 
ASFILES =

#if $(LIBNAME) != "ULTRA" && $(LIBNAME) != "ULTRA_ROM"
CFILES += seterrorhandler.c commonerror.c
ASFILES += errorasm.s 
#endif

LDIRT = 

include $(LIBDEPTH)/librules

include $(PRDEPTH)/PRrules

commonerror.o: oserr.h commonerror.c

mkerror.o:		mkerror.c
		$(CC) $(FLAGS2) -o $@  -c $(.IMPSRC)

sub.o:	sub.c
		$(CC) $(FLAGS2) -o $@  -c $(.IMPSRC)

mkerror : mkerror.o sub.o
		$(CC) $(FLAGS2) mkerror.o sub.o -o $@

oserr.h : mkerror $(PRDEPTH)/lib/error/error.fmt
		./mkerror $(PRDEPTH)/lib/error/error.fmt -o oserr.h

install! default

clobber clean: