Makefile 1.84 KB
#----------------------------------------------------------------------#
#	Copyright (C) 1998, Nintendo.
#	
#	File		Makefile
#	Coded    by	Yoshitaka Yasumoto.	Mar 11, 1998.
#	
#	$Id: Makefile,v 1.1.1.1 2002/05/02 03:29:11 blythe Exp $
#----------------------------------------------------------------------#

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

VERSION=	2.07
SUBVER =	G

ARCHIVE =	F3DPEX2-$(VERSION)$(SUBVER)

DEFINES =	-DDEBUG
UCPKG =		F3DEX2
SUBDIRS =	F3DPEX2 F3DPEX2.NoN F3DPEX2.Rej F3DPLX2.Rej L3DPEX2

COMMONPREF =	$(UCPKG)

default:
	@for i in $(SUBDIRS) ; do \
		( cd $$i ; \
		echo ======== $$i.fifo ======== ; \
		$(MAKE) -f ../../Makefile UCODE=$$i \
			OUTTYPE=fifo SUBVER=$(SUBVER) gsp$$i.fifo.o; \
		echo ======== $$i.xbus ======== ; \
		$(MAKE) -f ../../Makefile UCODE=$$i \
			OUTTYPE=xbus SUBVER=$(SUBVER) gsp$$i.xbus.o );\
	done
	@echo \
	----------------------------------------------------------------------
	@strings -30 */gsp*.o
	@echo \
	----------------------------------------------------------------------

clean clobber:
	@for i in $(SUBDIRS) ; do \
		echo ======== $$i ======== ; \
		( cd $$i ; \
		$(MAKE) -f    ../../Makefile UCODE=$$i $(COMMONPREF)$@ );\
	done
	@rm -f *~

install exports: default
	$(INSTALL) -m 444 -F /usr/include/PR ucode_p.h
	for i in $(SUBDIRS) ; do \
		( cd $$i ; $(INSTALL) -m 555 -F /usr/lib/PR \
				gsp$$i.fifo.o gsp$$i.xbus.o ); \
	done

release:	default
	if test -d .rel/$(ARCHIVE); then rm -rf .rel/$(ARCHIVE); fi
	mkdir -p .rel/$(ARCHIVE)/safe
	for i in $(SUBDIRS); do \
		cp $$i/gsp*.o      .rel/$(ARCHIVE); \
	done
	cp README.jp ucode_p.h .rel/$(ARCHIVE)
	(cd .rel;\
	 tar cvf $(ARCHIVE).tar $(ARCHIVE);\
	 uuencode $(ARCHIVE).tar $(ARCHIVE).tar > /tmp/$(ARCHIVE).tar.uu)
	rm -rf .rel/$(ARCHIVE)

#======== End of Makefile ========#