head	1.2;
access;
symbols
	start:1.1.1.1 nintendo:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2006.05.15.05.37.23;	author teruki;	state Exp;
branches;
next	1.1;

1.1
date	2006.05.15.04.35.38;	author teruki;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2006.05.15.04.35.38;	author teruki;	state Exp;
branches;
next	;


desc
@@


1.2
log
@R}hǉ
@
text
@###############################################################################
# Makefile for GX demos
#
# Copyright 1998 - 2004 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.
#
#
###############################################################################

##################################
# QUICK START INSTRUCTIONS
# Type "make" at /dolphin/build/tests/gx to build DEBUG versions of all tests.
# Type "make NDEBUG=TRUE" to build OPTIMIZED versions of all tests
# Type "make lit-basicD.bin" to build DEBUG version of just lit-basic
# Type "make NDEBUG=TRUE lit-basic.bin" to build OPTIMIZED version of 
# just lit-basic
#
# To add another test
# 1. add the .c files to CSRCS to make sure they are built
# 2. add the binary name (no suffix) to BINNAMES
# 3. add a dependency rule for this executable at the bottom of this file
##################################


# All modules have "setup" and "build" as targets.  System libraries 
# and demo programs also have an "install" target that copies the compiled
# binaries to the binary tree (/dolphin/$(ARCH_TARGET)).
# tests are NOT installed into the binary release directory.
all:    setup build install

# module name should be set to the name of this subdirectory
# DEMO = TRUE indicates that this module resides under the "demos" subtree.
# The list of selectable paths can be found in modulerules.
PROJ_ROOT     = ..
MODULENAME  = test5
#DEMO        = TRUE

ifeq ($(PLATFORM), SPRUCE_MARLIN)
ifndef __SINGLEFRAME
# automatically enable single frame mode if compiling for EPPC
__SINGLEFRAME = 0
endif
endif

# commondefs must be included near the top so that all common variables
# will be defined before their use.
include $(BUILDTOOLS_ROOT)/commondefs

# pass field flags on to the compiler
ifeq ($(__ODDFIELD), TRUE)
CCFLAGS += -D__ODDFIELD
endif

ifeq ($(__EVENFIELD), TRUE)
CCFLAGS += -D__EVENFIELD
endif

ifdef __HWSIM
CCFLAGS += -D__HWSIM=1
else
CCFLAGS += -D__HWSIM=0
endif

DOLPHINLIBS += $(INSTALL_ROOT)/lib/ip$(LIBSUFFIX) \
               $(INSTALL_ROOT)/lib/eth$(LIBSUFFIX) \
               Simple/osreport.o 

DOLPHINLIBS := $(INSTALL_ROOT)/lib/dvdeth$(LIBSUFFIX) $(DOLPHINLIBS)

# add DVDETH definition
CCFLAGS         += -DDVDETH

# common sources built for both EPPC and MAC
# CSRCS lists all C files that should be built
# The makefile determines which objects are linked into which binaries
# based on the dependencies you fill in at the bottom of this file
CSRCS = Simple/smp-light.c \
        Simple/osreport.c

# common binaries linked for both EPPC and MAC
# BINNAMES lists all binaries that will be linked.  Note that no suffix is
# required, as that will depend on whether this is a DEBUG build or not.
# The final name of the binaries will be $(BINNAME)$(BINSUFFIX)
BINNAMES =  smp-light


# EPPC specific demo source codes
ifdef EPPC
LCF_FILE =  $(INC_ROOT)/dolphin/eppc.$(ARCH_TARGET).lcf
endif

ifdef WALL
CCFLAGS +=  -w all
endif

# modulerules contains the rules that will use the above variables 
# and dependencies below to construct the binaries specified.
include $(BUILDTOOLS_ROOT)/modulerules

# Dependencies for the binaries listed in BINNAMES should come here
# They are your typical makefile rule, with extra variables to ensure
# that the names and paths match up.
# $(FULLBIN_ROOT) is the location of the local bin directory
# $(BINSUFFIX) depends on whether this is a debug build or not
# $(DOLPHINLIBS) includes all the Dolphin libraries.

$(FULLBIN_ROOT)/smp-light$(BINSUFFIX): Simple/smp-light.o \
                    $(DOLPHINLIBS)


srconly:
	$(MAKE) clean
	@@if [ -d bin ] ; then \
		rm -rf bin ; \
	fi
	@@if [ -d depend ] ; then \
		rm -rf depend ; \
	fi
	@@if [ -d lib ] ; then \
		rm -rf lib ; \
	fi
	@@if [ -d obj ] ; then \
		rm -rf obj ; \
	fi


#======== End of makefile ========#
@


1.1
log
@Initial revision
@
text
@d116 16
@


1.1.1.1
log
@initial import
@
text
@@
