Makefile 706 字节
Newer Older
1 2
# Makefile to build lxdialog package
#
L
Linus Torvalds 已提交
3

4
check-lxdialog  := $(srctree)/$(src)/check-lxdialog.sh
S
Sam Ravnborg 已提交
5 6 7 8 9

# Use reursively 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))
10 11 12 13 14 15
 
HOST_EXTRACFLAGS += -DLOCALE 

.PHONY: dochecklxdialog
$(obj)/dochecklxdialog:
	$(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_LOADLIBES)
L
Linus Torvalds 已提交
16 17

hostprogs-y	:= lxdialog
18
always		:= $(hostprogs-y) dochecklxdialog
L
Linus Torvalds 已提交
19 20 21

lxdialog-objs := checklist.o menubox.o textbox.o yesno.o inputbox.o \
		 util.o lxdialog.o msgbox.o