#
BASE_EXECS = v3_mem \
v3_mem_free \
+ v3_create \
v3_create_bind \
v3_free \
v3_launch \
#
PRECOMPILED_EXECS = x0vncserver
-COPIED_EXECS = v3_x0vncserver
+COPIED_EXECS = v3_x0vncserver v3_x0gui
#
# Libraries that we need to build
#
ifeq ($(STATIC),1)
CURSES_CFLAGS = -DNCURSES_STATIC
+ CURSES_LIBS = -lcurses
+else
+ CURSES_CFLAGS =
+ CURSES_LIBS = -lcurses
endif
v3_cons: v3_cons.c
- $(CC) $(CFLAGS) $(CURSES_CFLAGS) $< -lcurses -o $@
+ $(CC) $(CFLAGS) $(CURSES_CFLAGS) $< $(CURSES_LIBS) -o $@
v3_cons_sc: v3_cons_sc.c
- $(CC) $(CFLAGS) $(CURSES_CFLAGS) $< -lcurses -o $@
+ $(CC) $(CFLAGS) $(CURSES_CFLAGS) $< $(CURSES_LIBS) -o $@
v3_create: v3_create.c ezxml.c libv3_ctrl.a
$(CC) $(CFLAGS) $^ -lv3_ctrl -L. -o $@
#
# VNC support is compiled separately
#
-v3_x0vncserver : x0vncserver
- cp x0vncserver v3_x0vncserver
-
+v3_x0vncserver :
+ @if [ -a x0vncserver ] ; \
+ then \
+ cp x0vncserver v3_x0vncserver ; \
+ else \
+ echo "In order to use v3_vncclient/server you must have" ; \
+ echo "previously built or received palacios/linux_usr/x0vncserver" ; \
+ fi;
+
+#
+# GUI is compiled separately
+#
+v3_x0gui :
+ @if [ -a gui/Palacios ] ; \
+ then \
+ cp gui/Palacios v3_x0gui ; \
+ else \
+ echo "In order to use v3_gui (the graphical interface)" ;\
+ echo "you must first cd to palacios/linux_usr/gui" ;\
+ echo "and compile it according to the README given there";\
+ fi;
#
# Cleanup and dependency builds are automated