1#! make -f 2#============================================================================ 3# Project: RevolutionSDK Extentions - demos - share 4# File: commondefs.demoshare 5# 6# Copyright 2006 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# commondefs must be included near the top so that all common variables 15# will be defined before their use. 16 17REX_DEMOSHARE_DIR = $(REX_DIR)/build/demos/share 18REX_DEMOSHARE_SRCDIR = $(REX_DEMOSHARE_DIR)/src 19REX_DEMOSHARE_OBJDIR = $(REX_DEMOSHARE_DIR)/$(BINOBJ_ROOT) 20 21REX_DEMOSHARE_NET_CONFIG := $(shell \ 22 if [ -r $(REX_DEMOSHARE_SRCDIR)/_config.c ];then\ 23 echo _config.c; \ 24 else \ 25 echo config.c; \ 26 fi) 27 28REX_DEMOSHARE_CSRCS += demokpad.c graphic.c 29 30REX_DEMOSHARE_NET_CSRCS += $(REX_DEMOSHARE_NET_CONFIG) \ 31 $(REX_DEMOSHARE_CSRCS) \ 32 netconfig.c heap.c 33 34-include $(REX_DEMOSHARE_DIR)/netfunc/netfunc.commondefs 35 36REX_DEMOSHARE_NET_OBJS += $(REX_DEMOSHARE_NET_CSRCS:.c=.o) 37 38ifeq (socket,$(REX_LIBNAME_SOCKET)) 39REX_DEMOSHARE_OLDSOCKET = TRUE 40CCFLAGS += -DREX_DEMOSHARE_OLDSOCKET 41BINSUFFIX := $(BINSUFFIX:.elf=.socket.elf) 42endif 43 44OBJECTS += $(REX_DEMOSHARE_OBJS) 45LINCLUDES += -I$(REX_DEMOSHARE_DIR)/include 46 47#======== End of commondefs ========# 48