summaryrefslogtreecommitdiffstats
path: root/scripts/config/lxdialog/Makefile
blob: aed08e0170e987e00ce73c655fa92a0634a28f9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Makefile to build lxdialog package
#

all: lxdialog

# 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)
CFLAGS := $(shell sh check-lxdialog.sh -ccflags)
LIBS := $(shell sh check-lxdialog.sh -ldflags gcc)

# workaround for OpenBSD, which does not use symlinks to libncurses.so
OS := $(shell uname -s)
ifeq ($(strip $(OS)),OpenBSD)
LIBS := -lncurses
endif


always		:= $(hostprogs-y) dochecklxdialog

%.o: %.c
	$(CC) -c $(CFLAGS) -o $@ $<

lxdialog: checklist.o menubox.o textbox.o yesno.o inputbox.o util.o lxdialog.o msgbox.o
	$(CC) -o $@ $^ $(LIBS)

clean:
	rm -f *.o lxdialog