home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / shell / dialog-0.000 / dialog-0 / dialog-0.6c / Makefile < prev    next >
Encoding:
Makefile  |  1995-09-08  |  1.4 KB  |  72 lines

  1. # configuration part of the Makefile
  2.  
  3. # gpm mouse support
  4. HAVE_GPM_SUPPORT=false
  5. # ncurses or just normal curses?
  6. HAVE_NCURSES=true
  7. # support of a configuration file
  8. HAVE_RC_FILE=false
  9. # can be disabled to make dialog a bit smaller (could be done for more things)
  10. HAVE_GUAGE=false
  11.  
  12. BINDIR = /usr/bin
  13. MANDIR = /usr/man/man1/
  14.  
  15. CC = gcc
  16. CPP = gcc -E
  17. OPTIM = -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe
  18. #OPTIM = -O -Wall -Wstrict-prototypes -g -pipe
  19.  
  20. # end of the configuration part
  21. #----------------------------------------------------------------------------
  22. # do not edit below this line
  23.  
  24. CFLAGS = $(OPTIM) -DLOCALE -DVERSION=\"0.6\"
  25. LDFLAGS = -L .
  26. LDLIBS = -ldialog
  27.  
  28. OBJS = checklist.o inputbox.o menubox.o msgbox.o \
  29.      textbox.o util.o yesno.o
  30.  
  31. ifeq ($(HAVE_GPM_SUPPORT), true)
  32. LDLIBS+=-lgpm
  33. CFLAGS+=-DHAVE_LIBGPM
  34. OBJS+=mouse.o
  35. endif
  36. ifeq ($(HAVE_NCURSES), true)
  37. CFLAGS+=-DHAVE_NCURSES -I/usr/include/ncurses
  38. LDLIBS+=-lncurses
  39. endif
  40. ifeq ($(HAVE_RC_FILE), true)
  41. CFLAGS+=-DHAVE_RC_FILE
  42. OBJS+=rc.o
  43. endif
  44. ifeq ($(HAVE_GUAGE), true)
  45. OBJS+=guage.o
  46. CFLAGS+=-DHAVE_GUAGE
  47. endif
  48.  
  49. SRCS = $(OBJS:.o=.c)
  50.  
  51. all: libdialog.a dialog
  52.  
  53. libdialog.a: $(OBJS)
  54.     ar rcs libdialog.a $(OBJS)
  55.  
  56. dialog: dialog.o
  57.  
  58. clean:
  59.     rm -f core *.o *~ dialog .depend libdialog.a
  60.     touch .depend
  61.  
  62. include .depend
  63.  
  64. install: dialog libdialog.a
  65.     install -s dialog $(BINDIR)
  66.     install -m 644 dialog.1 $(MANDIR)
  67. #    install -m 644 libdialog.a /usr/lib/
  68.  
  69. depend:
  70.     $(CPP) -M $(CFLAGS) $(SRCS) > .depend
  71.  
  72.