2006-04-20 22:17:34 +02:00
|
|
|
# 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)
|
2006-12-10 21:58:51 +01:00
|
|
|
|
|
|
|
# workaround for OpenBSD, which does not use symlinks to libncurses.so
|
|
|
|
OS := $(shell uname -s)
|
|
|
|
ifeq ($(strip $(OS)),OpenBSD)
|
|
|
|
LIBS := -lncurses
|
2009-08-25 13:56:27 +02:00
|
|
|
endif
|
2009-08-25 11:16:03 +02:00
|
|
|
ifeq ($(shell uname -o),Cygwin)
|
2009-04-10 12:08:47 +02:00
|
|
|
LIBS := -lncurses
|
|
|
|
endif
|
2006-04-20 22:17:34 +02:00
|
|
|
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
|