From: Jimi Xenidis Subject: Re: [PATCH] tools top level makefile cleanup Date: Thu, 24 Mar 2005 09:56:16 -0500 Message-ID: <16962.54544.394033.77589@kitch0.watson.ibm.com> References: <488257396@toto.iv> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit In-Reply-To: <488257396@toto.iv> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Jerone Young Cc: Arun Sharma , xen-devel@xensource.com, xen-devel List-Id: xen-devel@lists.xenproject.org >>>>> "JY" == Jerone Young writes: JY> ifeq ($(XEN_TARGET_ARCH),x86_32) JY> LDLIBS= $(BXLIBS) -L/usr/X11R6/lib -lX11 -lXpm -lstdc++ - JY> L ../../../tools/libxc -L ../../../tools/libxutil -lxc -lxutil -lpthread JY> -lncurses_32) JY> endif JY> ifeq ($(XEN_TARGET_ARCH),x86_64) JY> DLIBS= $(BXLIBS) -L/usr/X11R6/lib64 -lX11 -lXpm -lstdc++ - JY> L ../../../tools/libxc -L ../../../tools/libxutil -lxc -lxutil -lpthread JY> -lncurses JY> endif hmm in the interest of exploiting commonality, perhaps x86_32_LDPATH = -L/usr/X11R6/lib x86_32_CURSES = -lncurses_32 x86_64_LDPATH = -L/usr/X11R6/lib64 x86_64_CURSES = -lncurses LDLIBS= $(BXLIBS) $($(XEN_TARGET_ARCH)_LDPATH) -lX11 -lXpm -lstdc++ -L../../../tools/libxc -L../../../tools/libxutil -lxc -lxutil -lpthread $($(XEN_TARGET_ARCH)_CURSES) The cool part of this is that you could locate the arch specific defines in arch specific Rules.mk (or rather Defines.mk?) -JX ------------------------------------------------------- This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005 Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click