Skip to contentSkip to conversation

tools top level makefile cleanup

PATCH Jimi Xenidis 1 participant 1 message Mar 24, 2005 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"JY" == Jerone Young <[email protected]> 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