Commit | Line | Data |
---|---|---|
ae215b14 SR |
1 | # Makefile to build lxdialog package |
2 | # | |
1da177e4 | 3 | |
60f33b80 | 4 | check-lxdialog := $(srctree)/$(src)/check-lxdialog.sh |
3835f821 SR |
5 | |
6 | # Use reursively expanded variables so we do not call gcc unless | |
7 | # we really need to do so. (Do not call gcc as part of make mrproper) | |
8 | HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) | |
9 | HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) | |
ae215b14 SR |
10 | |
11 | HOST_EXTRACFLAGS += -DLOCALE | |
12 | ||
13 | .PHONY: dochecklxdialog | |
14 | $(obj)/dochecklxdialog: | |
15 | $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_LOADLIBES) | |
1da177e4 LT |
16 | |
17 | hostprogs-y := lxdialog | |
ae215b14 | 18 | always := $(hostprogs-y) dochecklxdialog |
1da177e4 LT |
19 | |
20 | lxdialog-objs := checklist.o menubox.o textbox.o yesno.o inputbox.o \ | |
21 | util.o lxdialog.o msgbox.o |