Makefile 1.14 KB
#
# Makefile for Zelda 64
#

PRDEPTH = ../../../
include $(PRDEPTH)/PRdefs

SUBDIRS = F3DZEX F3DZEX.NoN F3DZLP.Rej F3DZLX F3DZLX.NoN F3DZLX.Rej L3DZEX

COMMONPREF = Zelda

default: $(_FORCE)
	$(SUBDIRS_MAKERULE)

install:

exports: $(_FORCE)
	$(SUBDIRS_MAKERULE)

PDIR = package
PACKNAME = F3DZEX-1.21.B

package: default
	if test -r $(PDIR)/$(PACKNAME); then rm -rf $(PDIR)/$(PACKNAME); fi
	mkdir -p $(PDIR)/$(PACKNAME)/os_patches
	cp [FL]*/gsp[FL]3DZ*.fifo.o $(PDIR)/$(PACKNAME)
	cp doc.jp/README $(PDIR)/$(PACKNAME)
	cp -r include-2.0e $(PDIR)/$(PACKNAME)/header-2.0e
	cp -r include-2.0f $(PDIR)/$(PACKNAME)/header-2.0f
	cp -r include-2.0g $(PDIR)/$(PACKNAME)/header-2.0g
	cp -r include-2.0h $(PDIR)/$(PACKNAME)/header-2.0h
	(cd $(ROOT)/PR/libultra/io; make sptask.o)
	cp  $(ROOT)/PR/libultra/io/sptask.o $(PDIR)/$(PACKNAME)/os_patches
	rm  $(ROOT)/PR/libultra/io/sptask.o
	cp  Makefile.os_patches $(PDIR)/$(PACKNAME)/os_patches/Makefile
	(cd $(PDIR); \
	tar cvf $(PACKNAME).tar $(PACKNAME); \
	gzip $(PACKNAME).tar; \
	uuencode $(PACKNAME).tar.gz $(PACKNAME).tar.gz > $(PACKNAME).tar.gz.uu)

$(COMMONTARGS): $(_FORCE)
	$(SUBDIRS_MAKERULE)

include $(COMMONRULES)