coreboot-kgpe-d16/payloads/libpayload/util/kconfig/lxdialog/Makefile
Jordan Crouse f3029a8fc9 libpayload: External code
This is external and properly licensed code that I pulled into the tree.
          
Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3171 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2008-03-19 23:59:13 +00:00

32 lines
874 B
Makefile

# Makefile to build lxdialog package
#
CONFIG_SHELL := sh
check-lxdialog := ./check-lxdialog.sh
HOSTCC ?= gcc
# Use recursively expanded variables so we do not call gcc unless
# we really need to do so. (Do not call gcc as part of make mrproper)
HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags)
HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
HOST_EXTRACFLAGS += -DLOCALE
PHONY += dochecklxdialog
dochecklxdialog:
$(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_LOADLIBES)
hostprogs-y := lxdialog
always := $(hostprogs-y) dochecklxdialog
lxdialog-objs := checklist.o menubox.o textbox.o yesno.o inputbox.o \
util.o lxdialog.o msgbox.o
lxdialog: dochecklxdialog $(lxdialog-objs)
$(CC) $(HOST_LOADLIBES) -o lxdialog $(lxdialog-objs)
%.o: %.c
$(Q)$(HOSTCC) $(HOST_EXTRACFLAGS) $^ -c -o $@