WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] tools top level makefile cleanup

To: Jerone Young <jyoung5@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] tools top level makefile cleanup
From: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Date: Thu, 24 Mar 2005 09:56:16 -0500
Cc: Arun Sharma <arun.sharma@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxx, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 24 Mar 2005 14:57:44 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <488257396@xxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
>>>>> "JY" == Jerone Young <jyoung5@xxxxxxxxxx> 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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel