#! make -f #============================================================================ # Project: RevolutionSDK Extentions - demos - share # File: commondefs.demoshare # # Copyright 2006 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. #============================================================================ # commondefs must be included near the top so that all common variables # will be defined before their use. REX_DEMOSHARE_DIR = $(REX_DIR)/build/demos/share REX_DEMOSHARE_SRCDIR = $(REX_DEMOSHARE_DIR)/src REX_DEMOSHARE_OBJDIR = $(REX_DEMOSHARE_DIR)/$(BINOBJ_ROOT) REX_DEMOSHARE_NET_CONFIG := $(shell \ if [ -r $(REX_DEMOSHARE_SRCDIR)/_config.c ];then\ echo _config.c; \ else \ echo config.c; \ fi) REX_DEMOSHARE_CSRCS += demokpad.c graphic.c REX_DEMOSHARE_NET_CSRCS += $(REX_DEMOSHARE_NET_CONFIG) \ $(REX_DEMOSHARE_CSRCS) \ netconfig.c heap.c -include $(REX_DEMOSHARE_DIR)/netfunc/netfunc.commondefs REX_DEMOSHARE_NET_OBJS += $(REX_DEMOSHARE_NET_CSRCS:.c=.o) ifeq (socket,$(REX_LIBNAME_SOCKET)) REX_DEMOSHARE_OLDSOCKET = TRUE CCFLAGS += -DREX_DEMOSHARE_OLDSOCKET BINSUFFIX := $(BINSUFFIX:.elf=.socket.elf) endif OBJECTS += $(REX_DEMOSHARE_OBJS) LINCLUDES += -I$(REX_DEMOSHARE_DIR)/include #======== End of commondefs ========#