finally move buildroot-ng to trunk
[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 always          := $(hostprogs-y) dochecklxdialog
12
13 %.o: %.c
14         $(CC) -c $(CFLAGS) -o $@ $<
15
16 lxdialog: checklist.o menubox.o textbox.o yesno.o inputbox.o util.o lxdialog.o msgbox.o
17         $(CC) -o $@ $^ $(LIBS)
18
19 clean:
20         rm -f *.o lxdialog