1 # Makefile to build lxdialog package
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 CFLAGS
:= $(shell sh check-lxdialog.sh
-ccflags
)
9 LIBS
:= $(shell sh check-lxdialog.sh
-ldflags gcc
)
11 # workaround for OpenBSD, which does not use symlinks to libncurses.so
12 OS
:= $(shell uname
-s
)
13 ifeq ($(strip $(OS
)),OpenBSD
)
16 ifeq ($(strip $(OS
)),CYGWIN_NT-5.1
)
19 always
:= $(hostprogs-y
) dochecklxdialog
22 $(CC
) -c
$(CFLAGS
) -o
$@
$<
24 lxdialog
: checklist.o menubox.o textbox.o yesno.o inputbox.o util.o lxdialog.o msgbox.o
25 $(CC
) -o
$@
$^
$(LIBS
)