GNUmakefile 1.03 KB
# --------------------------------------------------------------------
#        Copyright (C) 1997 Nintendo. (Originated by SGI)
#        
#        $RCSfile: GNUmakefile,v $
#        $Revision: 1.1 $
#        $Date: 2003/04/05 16:04:29 $
# --------------------------------------------------------------------
#
# Makefile for app "fault"
#

include $(ROOT)/usr/include/make/PRdefs

APP =		fault

OPTIMIZER =	-g

TARGETS =	rom

CODE_HFILES =	fault.h

CODE_CFILES =	fault.c printfault.c

CODE_OBJECTS=	$(CODE_CFILES:.c=.o)

CODESEGMENT =	code.o

LCINCS =	-I. -I$(ROOT)/usr/include/PR
LCOPTS =	-Wall -mips2 -non_shared -G 0

LASINCS =	$(LCINCS)
LASOPTS =	-non_shared -G 0

LDIRT  =	$(APP)

LDFLAGS =	$(MKDEPOPT) -L$(ROOT)/usr/lib -lultra_d -lgcc

default:	$(TARGETS)

include $(COMMONRULES)

install:	default
		$(INSTALL) -m 444 -F /usr/src/PR/demos/fault \
			$(CODE_HFILES) $(CODE_CFILES) Makefile spec

$(CODESEGMENT):		$(CODE_OBJECTS)
		$(LD) -o $@ -r $(CODE_OBJECTS) $(LDFLAGS)

$(TARGETS) $(APP):	spec code.o $(MAKEROM)
		$(MAKEROM) -r $(TARGETS) spec