brcm47xx: fix build of tg3 for kernel 2.6.34
[openwrt.git] / scripts / config / lxdialog / Makefile
1 # Makefile to build lxdialog package
2 #
3
4 all: lxdialog
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 CFLAGS := $(shell sh check-lxdialog.sh -ccflags)
9 LIBS := $(shell sh check-lxdialog.sh -ldflags gcc)
10
11 # workaround for OpenBSD, which does not use symlinks to libncurses.so
12 OS := $(shell uname -s)
13 ifeq ($(strip $(OS)),OpenBSD)
14 LIBS := -lncurses
15 endif
16 ifeq ($(shell uname -o),Cygwin)
17 LIBS := -lncurses
18 endif
19 always := $(hostprogs-y) dochecklxdialog
20
21 %.o: %.c
22 $(CC) -c $(CFLAGS) -o $@ $<
23
24 lxdialog: checklist.o menubox.o textbox.o yesno.o inputbox.o util.o lxdialog.o msgbox.o
25 $(CC) -o $@ $^ $(LIBS)
26
27 clean:
28 rm -f *.o lxdialog
This page took 0.045755 seconds and 5 git commands to generate.