1#! make -f 2#--------------------------------------------------------------------------- 3# Project: RevoEX - tools - chjpedit 4# File: Makefile 5# 6# Copyright 2007 Nintendo. All rights reserved. 7# 8# These coded instructions, statements, and computer programs contain 9# proprietary information of Nintendo of America Inc. and/or Nintendo 10# Company Ltd., and are protected by Federal copyright law. They may 11# not be disclosed to third parties or copied or duplicated in any form, 12# in whole or in part, without the prior written consent of Nintendo. 13# 14# $Log: Makefile,v $ 15# Revision 1.1 2007/07/30 00:48:20 nishimoto_takashi 16# Created 17# 18# 19# $NoKeywords: $ 20#--------------------------------------------------------------------------- 21 22 23#--------------------------------------------------------------------------- 24# Settings 25 26PLATFORM = X86 27X86 = TRUE 28 29include $(REVOLUTION_EXT_ROOT)/build/buildtools/commondefs 30 31 32#--------------------------------------------------------------------------- 33# Projects 34 35TARGETS = makeChjp.exe 36SOURCES = main.c 37OBJECTS = $(SOURCES:.c=.o) 38 39#--------------------------------------------------------------------------- 40# Rules 41 42.PHONY : do-build setup build install clean clobber 43 44all: setup build install 45 46do-build: build 47 48setup: 49 50build: $(TARGETS) 51 52install: build 53 cp -uR $(TARGETS) $(REX_INSTALL_BINDIR)/ 54 55clean: 56 rm -f $(TARGETS) $(OBJECTS) 57 58clobber: clean 59 rm -f $(REX_INSTALL_BINDIR)/$(TARGETS) 60 61 62$(TARGETS): $(OBJECTS) 63 gcc -mno-cygwin $+ -o $@ 64 65%.o: %.c 66 gcc -mno-cygwin -Wall -c -I. $+ -o $@ 67 68