#! make -f #---------------------------------------------------------------------------- SRCS = simple.c TARGET_BIN = simple.elf #---------------------------------------------------------------------------- # NW4R commondefs # include $(NW4R_ROOT)/Library/build/buildtools/commondefs #---------------------------------------------------------------------------- # Attach the RevoEX library # SRCTREE_REVOEX_ROOT := $(subst \,/,$(REVOLUTION_EXT_ROOT)) REVO_EX_LIB_DIR := $(SRCTREE_REVOEX_ROOT)/RVL/lib REVO_EX_LIBS := $(notdir $(wildcard $(REVO_EX_LIB_DIR)/*$(SDK_SUFFIX).a)) # If library files were obtained with *.a, *D.a files are also included, so get rid of them ifneq ($(SDK_SUFFIX),D) REVO_EX_LIBS := $(patsubst %D.a,%.a,$(REVO_EX_LIBS)) endif # The RVL-SDK has some of the same include files; handle them as a local library and make them visible before the RVL-SDK # LLIBRARY_DIRS += $(REVO_EX_LIB_DIR) LLIBRARIES += $(REVO_EX_LIBS) LINCLUDES += $(SRCTREE_REVOEX_ROOT)/include #---------------------------------------------------------------------------- # Target of make # do-build: $(TARGETS) $(MAKE) export #---------------------------------------------------------------------------- # Convert ELF file to DOL file and copy to the location for creating WAD file # export: $(MKDIRP) ../bin makedol -f $(BINDIR)/$(TARGET_BIN) -d $(TARGET_BIN:.elf=.dol) $(MV) $(TARGET_BIN:.elf=.dol) ../bin #---------------------------------------------------------------------------- # NW4R modulerules # include $(NW4R_ROOT)/Library/build/buildtools/modulerules #===== End of Makefile =====