summaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-04-12 15:12:00 +0000
committerJeremy Kerr <jk@ozlabs.org>2009-06-30 15:29:27 +0800
commit53aa807ae41e48fd71653c2d00083a44a8bca14c (patch)
tree5f3c484d9a52e6192a1c828d1eb65c19be94c86d /rules.mk
parent3752d1949cd3fb15593b2397d6af14b83a4aa6b4 (diff)
downloadpetitboot-53aa807ae41e48fd71653c2d00083a44a8bca14c.zip
petitboot-53aa807ae41e48fd71653c2d00083a44a8bca14c.tar.gz
Add PS3 ncurses CUI program
Add a PS3 ncurses CUI program, and the configure option --enable-ps3 to control its build. The default is --enable-ps3=yes. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/rules.mk b/rules.mk
index aff8858..e743338 100644
--- a/rules.mk
+++ b/rules.mk
@@ -19,7 +19,7 @@ parser_test = test/parser-test
# install targets and components
daemons = $(pb_discover)
parsers = event kboot yaboot
-uis = $(pb_test)
+uis = $(pb_cui) $(pb_test)
tests = $(parser_test)
utils = $(pb_event)
@@ -68,11 +68,12 @@ client_objs = $(lib_objs) $(ui_common_objs)
all: $(uis) $(daemons) $(utils)
# ncurses cui
-pb_cui_objs = $(client_objs) $(ncurses_objs) ui/ncurses/ps3-cui.o \
- ui/common/ps3.o
-$(pb_cui_objs): $(makefiles)
+pb_cui_objs-$(ENABLE_PS3) += ui/ncurses/ps3-cui.o ui/common/ps3.o
+pb_cui_ldflags-$(ENABLE_PS3) += -lps3-utils
-$(pb_cui): LDFLAGS += -lps3-utils -lmenu -lform -lncurses
+pb_cui_objs = $(client_objs) $(ncurses_objs) $(pb_cui_objs-y)
+$(pb_cui_objs): $(makefiles)
+$(pb_cui): LDFLAGS += $(pb_cui_ldflags-y) -lmenu -lform -lncurses
$(pb_cui): $(pb_cui_objs)
$(LINK.o) -o $@ $^
OpenPOWER on IntegriCloud