GNUmakefile 1.13 KB
#!smake
#
# Makefile for reg library subdirectory
#

SUBDIR=reg

COMMONPREF=$(SUBDIR)

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

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

sinclude ../companydefs
sinclude locdefs

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

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

CFILES = _getcount.c _getcompare.c _setcompare.c _setcount.c
ASFILES = getcause.s getcompare.s getconfig.s getcount.s getfpccsr.s getsr.s \
	gettlbasid.s gettlbhi.s gettlblo0.s gettlblo1.s gettlbpagemask.s \
	setcause.s setcompare.s setconfig.s setcount.s setfpccsr.s setsr.s \
	settlbasid.s getwatchlo.s setwatchlo.s

LDIRT = 

include $(LIBDEPTH)/librules

include $(PRDEPTH)/PRrules

install: default

clobber clean: 

_getcount.o: _getcount.c
	$(CCF) -c -o $@ $<
	$(ROOT)/usr/sbin/mips332 $@

_setcount.o: _setcount.c
	$(CCF) -c -o $@ $<
	$(ROOT)/usr/sbin/mips332 $@

_getcompare.o: _getcompare.c
	$(CCF) -c -o $@ $<
	$(ROOT)/usr/sbin/mips332 $@

_setcompare.o: _setcompare.c
	$(CCF) -c -o $@ $<
	$(ROOT)/usr/sbin/mips332 $@