mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-18 03:42:28 +02:00
ebedc461f4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15183 3c298f89-4303-0410-b956-a3cf2f4a3e73
29 lines
722 B
Makefile
29 lines
722 B
Makefile
# 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
|
|
ifeq ($(strip $(OS)),CYGWIN_NT-5.1)
|
|
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
|