############################################################################### # Makefile for CatLog # # Copyright (C) Nintendo. All rights reserved. # # These coded instructions, statements, and computer programs contain # proprietary information of Nintendo of America Inc. and/or Nintendo # Company Ltd., and are protected by Federal copyright law. They may # not be disclosed to third parties or copied or duplicated in any form, # in whole or in part, without the prior written consent of Nintendo. # ############################################################################### # This makefile must set the relative depth to the build directory # using only "..", without a trailing slash MODULE_DEPTH := ../.. include $(MODULE_DEPTH)/build/make/commondefs.mk CLR_VERSION := 3.5 ifeq ($(PROCESSOR_ARCHITECTURE),x86) FRAMEWORK := Framework else FRAMEWORK := Framework64 endif MSBUILD := $(shell cygpath --windir)/Microsoft.NET/$(FRAMEWORK)/v$(CLR_VERSION)/msbuild.exe /nologo /verbosity:minimal CONFIGURATION := Release PLATFORM := x86 BIN_DIR := ./bin/$(CONFIGURATION) OBJ_DIR := ./obj/$(CONFIGURATION) # Default target default: install ############################################################################### # install ############################################################################### .PHONY: install print_module_install INSTALL_DIR := $(TOOL_DIR) INSTALL_FILE := CatLog.exe INSTALLS := $(addprefix $(INSTALL_DIR)/,$(INSTALL_FILE)) $(INSTALL_DIR)/$(INSTALL_FILE): $(BIN_DIR)/$(INSTALL_FILE) $(MACRO_INSTALL_FILE) $< $@ print_module_install: $(call MOD_RULES_PHASE, "Installing $(MODULE_PATH_FROM_SRC)") install: print_module_install $(INSTALLS) ############################################################################### # build ############################################################################### .PHONY: build rebuild MSBUILD_OPTIONS := /tv:$(CLR_VERSION) /p:Configuration=$(CONFIGURATION) /p:Platform=$(PLATFORM) rebuild: clean build build: $(BIN_DIR)/$(INSTALL_FILE) SOURCES := $(wildcard Properties/*.cs) MSPROJFILE := CatLog.csproj $(BIN_DIR)/$(INSTALL_FILE): $(SOURCES) $(MSPROJFILE) $(MSBUILD) $(MSBUILD_OPTIONS) /t:Build ############################################################################### # clean / clobber ############################################################################### .PHONY: clean clobber clean: $(MSBUILD) $(MSBUILD_OPTIONS) /t:Clean clobber: clean $(call MOD_RULES_PHASE, "Clobbering $(MODULE_PATH_FROM_SRC)") rm -fr bin obj rm -f $(INSTALLS) #======== End of makefile ========#