GNUmakefile 1.08 KB
#!smake
#
# Makefile for graphics utility library subdirectory
#

SUBDIR=mgu

COMMONPREF=$(SUBDIR)

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

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

sinclude ../companydefs

#LCOPTS = -non_shared -mips2 -fullwarn -G 0
LCOPTS = -non_shared -mips2 -Wall -G 0
LCINCS = -I. -I$(LIBDEPTH)/$(COMPANY)/gu -I$(LIBDEPTH)/include -I$(PRDEPTH)/include
LASOPTS= -non_shared -mips2 -G 0

HFILES =

CFILES	=			\
	mtxcatl.c		\
	mtxxfml.c		\
	mtxxfmf.c		\
	rotate.c

ASFILES	=			\
	mtxident.s		\
	mtxidentf.s		\
	mtxf2l.s		\
	mtxl2f.s		\
	mtxcatf.s		\
	scale.s			\
	scalef.s		\
	normalize.s		\
	translate.s		\
	translatef.s

LDIRT =

sinclude locdefs

include $(LIBDEPTH)/librules

include $(PRDEPTH)/PRrules

install: default
	$(INSTALL) -m 444 -F /usr/src/PR/libsrc/libultra/mgu $(SOURCES)
	$(INSTALL) -m 444 -F /usr/src/PR/libsrc/libultra/mgu \
		-src Makefile.src Makefile

clobber clean: $(_FORCE)
	@for i in $(TARGETS) ; do \
		cd $(LIBDEPTH)/$$i ; \
		$(MAKE) -f $(LIBDEPTH)/$(COMPANY)/$(SUBDIR)/GNUmakefile rmldirt ;\
	done

rmldirt: $(_FORCE)
	rm -rf $(LDIRT)