home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-09-08 | 1.4 KB | 72 lines |
- # configuration part of the Makefile
-
- # gpm mouse support
- HAVE_GPM_SUPPORT=false
- # ncurses or just normal curses?
- HAVE_NCURSES=true
- # support of a configuration file
- HAVE_RC_FILE=false
- # can be disabled to make dialog a bit smaller (could be done for more things)
- HAVE_GUAGE=false
-
- BINDIR = /usr/bin
- MANDIR = /usr/man/man1/
-
- CC = gcc
- CPP = gcc -E
- OPTIM = -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe
- #OPTIM = -O -Wall -Wstrict-prototypes -g -pipe
-
- # end of the configuration part
- #----------------------------------------------------------------------------
- # do not edit below this line
-
- CFLAGS = $(OPTIM) -DLOCALE -DVERSION=\"0.6\"
- LDFLAGS = -L .
- LDLIBS = -ldialog
-
- OBJS = checklist.o inputbox.o menubox.o msgbox.o \
- textbox.o util.o yesno.o
-
- ifeq ($(HAVE_GPM_SUPPORT), true)
- LDLIBS+=-lgpm
- CFLAGS+=-DHAVE_LIBGPM
- OBJS+=mouse.o
- endif
- ifeq ($(HAVE_NCURSES), true)
- CFLAGS+=-DHAVE_NCURSES -I/usr/include/ncurses
- LDLIBS+=-lncurses
- endif
- ifeq ($(HAVE_RC_FILE), true)
- CFLAGS+=-DHAVE_RC_FILE
- OBJS+=rc.o
- endif
- ifeq ($(HAVE_GUAGE), true)
- OBJS+=guage.o
- CFLAGS+=-DHAVE_GUAGE
- endif
-
- SRCS = $(OBJS:.o=.c)
-
- all: libdialog.a dialog
-
- libdialog.a: $(OBJS)
- ar rcs libdialog.a $(OBJS)
-
- dialog: dialog.o
-
- clean:
- rm -f core *.o *~ dialog .depend libdialog.a
- touch .depend
-
- include .depend
-
- install: dialog libdialog.a
- install -s dialog $(BINDIR)
- install -m 644 dialog.1 $(MANDIR)
- # install -m 644 libdialog.a /usr/lib/
-
- depend:
- $(CPP) -M $(CFLAGS) $(SRCS) > .depend
-
-