dslinux/user/dialog Makefile dlg_config.h

stsp stsp at user.in-berlin.de
Mon Oct 23 23:11:07 CEST 2006


Update of /cvsroot/dslinux/dslinux/user/dialog
In directory antilope:/tmp/cvs-serv21604/user/dialog

Added Files:
	Makefile dlg_config.h 
Log Message:
Make dialog build with DSLinux.

Patch by John S. Skogtvedt. Thanks a lot :)


--- NEW FILE: Makefile ---
# This Makefile and dlg_config.h is basically equivalent to:
# ./configure --disable-included-msgs --disable-rc-file --disable-Xdialog --disable-gauge --disable-tailbox

EXTRAOBJS =  formbox.o # guage.o tailbox.o rc.o # also edit dlg_config.h
OBJECTS = $(EXTRAOBJS) \
	arrows.o \
	buttons.o \
	checklist.o \
	dlg_keys.o \
	inputbox.o \
	inputstr.o \
	menubox.o \
	mouse.o \
	mousewget.o \
	msgbox.o \
	textbox.o \
	ui_getc.o \
	util.o \
	version.o \
	yesno.o

CFLAGS += -I. -I$(ROOTDIR)/lib/libncurses/include
LIBS = -lncurses -lm

LIB = libdialog.a
PROG = dialog

.PHONY: all romfs clean


all: $(LIB) $(PROG)

dialog.o $(OBJECTS): dialog.h dlg_keys.h dlg_config.h VERSION

$(LIB): $(OBJECTS)
	$(AR) -cr $(LIB) $(OBJECTS)
	$(RANLIB) $@

$(PROG): $(LIB) dialog.o
	$(CC) -o $@ dialog.o -L. -ldialog $(LDFLAGS) $(LIBS)

clean:
	rm -f *.o $(LIB) $(PROG) *.gdb *~

romfs:
	$(ROMFSINST) /bin/$(PROG)

--- NEW FILE: dlg_config.h ---
/* dlg_config.h.  Generated automatically by configure.  */
/*
 * The configure script expands this as a set of definitions
 */

#define DIALOG_PATCHDATE 20060221
#define DIALOG_VERSION "1.0"
#define HAVE_ALLOCA 1
#define HAVE_ALLOCA_H 1
#define HAVE_COLOR 1
#define HAVE_DIRENT_H 1
#define HAVE_FEOF_UNLOCKED 1
#define HAVE_FGETS_UNLOCKED 1
#define HAVE_FLUSHINP 1
#define HAVE_FORMBOX 1
#define HAVE_FSEEKO 1
#define HAVE_GETBEGX 1
#define HAVE_GETBEGY 1
#define HAVE_GETBEGYX 1
#define HAVE_GETCURX 1
#define HAVE_GETCURY 1
#define HAVE_GETCWD 1
#define HAVE_GETEGID 1
#define HAVE_GETEUID 1
#define HAVE_GETGID 1
#define HAVE_GETMAXX 1
#define HAVE_GETMAXY 1
#define HAVE_GETMAXYX 1
#define HAVE_GETPAGESIZE 1
#define HAVE_GETPARX 1
#define HAVE_GETPARY 1
#define HAVE_GETPARYX 1
#define HAVE_GETUID 1
#define HAVE_INTTYPES_H 1
#define HAVE_LANGINFO_CODESET 1
#define HAVE_LC_MESSAGES 1
#define HAVE_LIMITS_H 1
#define HAVE_LOCALE_H 1
#define HAVE_MALLOC_H 1
#define HAVE_MEMORY_H 1
#define HAVE_MEMPCPY 1
#define HAVE_MUNMAP 1
#define HAVE_NL_TYPES_H 1
#define HAVE_PUTENV 1
#define HAVE_SEARCH_H 1
#define HAVE_SETENV 1
#define HAVE_SETLOCALE 1
#define HAVE_STDDEF_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STPCPY 1
#define HAVE_STRCASECMP 1
#define HAVE_STRCHR 1
#define HAVE_STRDUP 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_STRTOUL 1
#define HAVE_SYS_PARAM_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_WAIT_H 1
#define HAVE_TERM_H 1
#define HAVE_TSEARCH 1
#define HAVE_TYPE_CHTYPE 1
#define HAVE_UNISTD_H 1
#define HAVE_WAITPID 1
#define MIXEDCASE_FILENAMES 1
#define PACKAGE "dialog"
#define RETSIGTYPE void
#define STDC_HEADERS 1
#define SYSTEM_NAME "elf"
#define TIME_WITH_SYS_TIME 1
#define TYPE_CHTYPE_IS_SCALAR 1




More information about the dslinux-commit mailing list