home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3063 / Imakefile < prev    next >
Encoding:
Makefile  |  1991-03-15  |  3.7 KB  |  138 lines

  1. #
  2. #    Imakefile for xkal - X appointment calendar
  3. #
  4. #    George Ferguson, ferguson@cs.rochester.edu, 15 Oct 1990.
  5. #    Version 1.1 - 27 Feb 1991.
  6. #
  7. #    $Id: Imakefile,v 2.3 91/03/13 13:30:40 ferguson Exp $
  8. #
  9.  
  10. #
  11. # Here's what to change to customize the installation...
  12. #
  13. # Where do you want this stuff (if the defaults aren't okay)?
  14. #
  15. BINDIR = /u/ferguson/bin
  16. LIBDIR = /u/ferguson/lib
  17. MANDIR = /u/ferguson/man/man1
  18.  
  19. #
  20. # Where is the ezMenu package?
  21. #
  22. EZMENU_DIR =        /u/ferguson/src/x/EzMenu
  23. EZMENU_INCLUDES =    -I$(EZMENU_DIR)
  24. EZMENU_LIBRARIES =    -L$(EZMENU_DIR) -lezMenu$(TARGET_MACH)
  25.  
  26. #
  27. # Where is the app-defaults to C converter?
  28. # Only needed if you change the app-defaults file Xkal.ad and want the changes
  29. # compiled into the program. If you don't have ad2c you should remove the
  30. # extra clean target for Xkal.ad.h below. If you lose Xkal.ad.h and can't
  31. # remake it, create it to be a line containing NULL (i.e. those four
  32. # characters) only.
  33. #
  34. AD2C = ad2c
  35.  
  36. #
  37. # Do you want to use popup alert boxes (can you compile them)? If not,
  38. # comment out these definitions and error messages will go to stderr.
  39. #
  40. ALERTC = alert.c
  41. ALERTO = alert.o
  42. ALERTDEFS = -DUSE_ALERT
  43.  
  44. #
  45. # Is dysize(3) in your standard library? If not, you need these definitions.
  46. # It appears that Ultrix and maybe SGI systems need this for sure.
  47. #
  48. #DYSIZEC = dysize.c
  49. #DYSIZEO = dysize.o
  50.  
  51. #
  52. # Is strcasecmp(3) in your standard library? If not, you need these definitions.
  53. # It appears that at least Sun 386i systems need this for sure.
  54. #
  55. #STRCASECMPC = strcasecmp.c
  56. #STRCASECMPO = strcasecmp.o
  57.  
  58. #
  59. # This is -g for debugging or -O for optimization (or nothing).
  60. #
  61. CDEBUGFLAGS = -g
  62.  
  63. #    #    #    #    #    #    #    #    #    #
  64. # Nothing to change below here
  65. #
  66.  
  67. PROGRAMS    =    xkal xkal2xremind xkal2pcal
  68. DEFINES        =    -DXAPPLOADDIR=\"$(XAPPLOADDIR)\" $(ALERTDEFS)
  69. EXTRA_INCLUDES  =    $(EZMENU_INCLUDES)
  70. LOCAL_LIBRARIES =    $(EZMENU_LIBRARIES) XawClientLibs
  71.  
  72. #
  73. # These definitions are for xkal itself
  74. #
  75. SRCS1 = xkal.c month.c day.c edit.c edit-defaults.c db.c \
  76.     util.c date-strings.c resources.c string-convert.c \
  77.     $(ALERTC) $(DYSIZEC) $(STRCASECMPC)
  78. OBJS1 = xkal.o month.o day.o edit.o edit-defaults.o db.o \
  79.     util.o date-strings.o resources.o string-convert.o \
  80.     $(ALERTO) $(DYSIZEO) $(STRCASECMPO)
  81.  
  82. ComplexProgramTarget_1(xkal,$(LOCAL_LIBRARIES),)
  83. InstallAppDefaults(Xkal)
  84. InstallNonExec(xkal.appoints,$(LIBDIR))
  85.  
  86. #
  87. # These definitions are for xkal2xremind
  88. #
  89. OBJS2 = xkal2xremind.o resources.o db.o util.o date-strings.o $(STRCASECMPO)
  90. SRCS2 = xkal2xremind.c resources.c db.c util.c date-strings.c $(STRCASECMPC)
  91.  
  92. ComplexProgramTarget_2(xkal2xremind,$(XTOOLLIB) $(XLIB),)
  93.  
  94. #
  95. # These definitions are for xkal2pcal
  96. #
  97. OBJS3 = xkal2pcal.o resources.o db.o util.o date-strings.o $(STRCASECMPO)
  98. SRCS3 = xkal2pcal.c resources.c db.c util.c date-strings.c $(STRCASECMPC)
  99.  
  100. ComplexProgramTarget_3(xkal2pcal,$(XTOOLLIB) $(XLIB),)
  101.  
  102. #
  103. # This definition installs xkal-mail and xkal-automail
  104. #
  105. install::
  106.     $(INSTALL) -c $(INSTPGMFLAGS) xkal-mail xkal-automail $(BINDIR)
  107. InstallManPage(xkal-mail,$(MANDIR))
  108. InstallManPage(xkal-automail,$(MANDIR))
  109.  
  110.  
  111. #
  112. #    Generate C code for fallback resources
  113. #
  114. Xkal.ad.h: Xkal.ad
  115.     $(AD2C) Xkal.ad >Xkal.ad.h
  116.  
  117. clean::
  118.     $(RM) Xkal.ad.h
  119.  
  120. #
  121. #    Miscellaneous other rules:
  122. #
  123. ci:
  124.     ci -u *.c *.h Xkal.ad xkal.man xkal.appoints Imakefile
  125.  
  126. tar:
  127.     tar cvf - \
  128.         README Imakefile Makefile Xkal.ad \
  129.         alert.c alert.h app-resources.h date-strings.c date-strings.h \
  130.         day.c day.h db.c db.h dysize.c edit-defaults.c edit-defaults.h \
  131.         edit.c edit.h month.c month.h patchlevel.h \
  132.         resources.c resources.h \
  133.         strcasecmp.c string-convert.c util.c util.h \
  134.         xkal-automail xkal-automail.man xkal-mail xkal-mail.man \
  135.         xkal.appoints xkal.c xkal.h xkal.man \
  136.         xkal2pcal.c xkal2pcal.man xkal2xremind.c xkal2xremind.man | \
  137.         compress >xkal.tar.Z
  138.