From: Thomas Naughton Date: Thu, 18 Oct 2012 15:47:25 +0000 (-0500) Subject: Cleanup of curses dependency in v3_cons/cons_sc build X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=858a5572e6d968963992f676eb76b6d691864479;p=palacios.releases.git Cleanup of curses dependency in v3_cons/cons_sc build --- diff --git a/linux_usr/Makefile b/linux_usr/Makefile index 9870207..a53892d 100644 --- a/linux_usr/Makefile +++ b/linux_usr/Makefile @@ -100,14 +100,17 @@ libv3_ctrl.a : v3_ctrl.c v3_ctrl.h # ifeq ($(STATIC),1) CURSES_CFLAGS = -DNCURSES_STATIC - CURSES_LIBS = -ltermcap + CURSES_LIBS = -lcurses +else + CURSES_CFLAGS = + CURSES_LIBS = -lcurses endif v3_cons: v3_cons.c - $(CC) $(CFLAGS) $(CURSES_CFLAGS) $< -lcurses $(CURSES_LIBS) -o $@ + $(CC) $(CFLAGS) $(CURSES_CFLAGS) $< $(CURSES_LIBS) -o $@ v3_cons_sc: v3_cons_sc.c - $(CC) $(CFLAGS) $(CURSES_CFLAGS) $< -lcurses $(CURSES_LIBS) -o $@ + $(CC) $(CFLAGS) $(CURSES_CFLAGS) $< $(CURSES_LIBS) -o $@ v3_create: v3_create.c ezxml.c libv3_ctrl.a $(CC) $(CFLAGS) $^ -lv3_ctrl -L. -o $@