source: debwrt/trunk/config/mconf/lxdialog/Makefile @ 1

Last change on this file since 1 was 1, checked in by amain, 13 years ago

Initial import of the build environment for DebWrt

File size: 718 bytes
Line 
1# Makefile to build lxdialog package
2#
3
4all: 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)
8CFLAGS := $(shell sh check-lxdialog.sh -ccflags)
9LIBS := $(shell sh check-lxdialog.sh -ldflags gcc)
10
11# workaround for OpenBSD, which does not use symlinks to libncurses.so
12OS := $(shell uname -s)
13ifeq ($(strip $(OS)),OpenBSD)
14LIBS := -lncurses
15endif
16ifeq ($(shell uname -o),Cygwin)
17LIBS := -lncurses
18endif
19always          := $(hostprogs-y) dochecklxdialog
20
21%.o: %.c
22        $(CC) -c $(CFLAGS) -o $@ $<
23
24lxdialog: checklist.o menubox.o textbox.o yesno.o inputbox.o util.o lxdialog.o msgbox.o
25        $(CC) -o $@ $^ $(LIBS)
26
27clean:
28        rm -f *.o lxdialog
Note: See TracBrowser for help on using the repository browser.