home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2302 / Makefile < prev    next >
Encoding:
Makefile  |  1990-12-28  |  11.0 KB  |  362 lines

  1. # Makefile generated by imake - do not edit!
  2. # $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
  3. #
  4. # The cpp used on this machine replaces all newlines and multiple tabs and
  5. # spaces in a macro expansion with a single space.  Imake tries to compensate
  6. # for this, but is not always successful.
  7. #
  8.  
  9. ###########################################################################
  10. # Makefile generated from "Imake.tmpl" and </tmp/IIf.a09041>
  11. # $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
  12. #
  13. # Platform-specific parameters may be set in the appropriate .cf
  14. # configuration files.  Site-wide parameters may be set in the file
  15. # site.def.  Full rebuilds are recommended if any parameters are changed.
  16. #
  17. # If your C preprocessor doesn't define any unique symbols, you'll need
  18. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  19. # "make Makefile", "make Makefiles", or "make World").
  20. #
  21. # If you absolutely can't get imake to work, you'll need to set the
  22. # variables at the top of each Makefile as well as the dependencies at the
  23. # bottom (makedepend will do this automatically).
  24. #
  25.  
  26. ###########################################################################
  27. # platform-specific configuration parameters - edit sun.cf to change
  28.  
  29. # platform:  $XConsortium: sun.cf,v 1.38 89/12/23 16:10:10 jim Exp $
  30. # operating system:  SunOS 4.0.3
  31.  
  32. ###########################################################################
  33. # site-specific configuration parameters - edit site.def to change
  34.  
  35. # site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $
  36.  
  37.             SHELL = /bin/sh
  38.  
  39.               TOP = .
  40.       CURRENT_DIR = .
  41.  
  42.                AR = ar cq
  43.   BOOTSTRAPCFLAGS =
  44.                CC = cc
  45.  
  46.          COMPRESS = compress
  47.               CPP = /lib/cpp $(STD_CPP_DEFINES)
  48.     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  49.           INSTALL = install
  50.                LD = ld
  51.              LINT = lint
  52.       LINTLIBFLAG = -C
  53.          LINTOPTS = -axz
  54.                LN = ln -s
  55.              MAKE = make
  56.                MV = mv
  57.                CP = cp
  58.            RANLIB = ranlib
  59.   RANLIBINSTFLAGS =
  60.                RM = rm -f
  61.      STD_INCLUDES =
  62.   STD_CPP_DEFINES =
  63.       STD_DEFINES =
  64.  EXTRA_LOAD_FLAGS =
  65.   EXTRA_LIBRARIES =
  66.              TAGS = ctags
  67.  
  68.     SHAREDCODEDEF = -DSHAREDCODE
  69.          SHLIBDEF = -DSUNSHLIB
  70.  
  71.     PROTO_DEFINES =
  72.  
  73.      INSTPGMFLAGS =
  74.  
  75.      INSTBINFLAGS = -m 0755
  76.      INSTUIDFLAGS = -m 4755
  77.      INSTLIBFLAGS = -m 0664
  78.      INSTINCFLAGS = -m 0444
  79.      INSTMANFLAGS = -m 0444
  80.      INSTDATFLAGS = -m 0444
  81.     INSTKMEMFLAGS = -m 4755
  82.  
  83.           DESTDIR =
  84.  
  85.      TOP_INCLUDES = -I$(INCROOT)
  86.  
  87.       CDEBUGFLAGS = -O
  88.         CCOPTIONS =
  89.       COMPATFLAGS =
  90.  
  91.       ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
  92.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
  93.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  94.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  95.            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  96.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
  97.    LDCOMBINEFLAGS = -X -r
  98.  
  99.         MACROFILE = sun.cf
  100.            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  101.  
  102.     IMAKE_DEFINES =
  103.  
  104.          IRULESRC = $(CONFIGDIR)
  105.         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  106.  
  107.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  108.             $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  109.             $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  110.  
  111. ###########################################################################
  112. # X Window System Build Parameters
  113. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  114.  
  115. ###########################################################################
  116. # X Window System make variables; this need to be coordinated with rules
  117. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  118.  
  119.           PATHSEP = /
  120.         USRLIBDIR = $(DESTDIR)/usr/lib
  121.            BINDIR = $(DESTDIR)/usr/bin/X11
  122.           INCROOT = $(DESTDIR)/usr/include
  123.      BUILDINCROOT = $(TOP)
  124.       BUILDINCDIR = $(BUILDINCROOT)/X11
  125.       BUILDINCTOP = ..
  126.            INCDIR = $(INCROOT)/X11
  127.            ADMDIR = $(DESTDIR)/usr/adm
  128.            LIBDIR = $(USRLIBDIR)/X11
  129.         CONFIGDIR = $(LIBDIR)/config
  130.        LINTLIBDIR = $(USRLIBDIR)/lint
  131.  
  132.           FONTDIR = $(LIBDIR)/fonts
  133.          XINITDIR = $(LIBDIR)/xinit
  134.            XDMDIR = $(LIBDIR)/xdm
  135.            AWMDIR = $(LIBDIR)/awm
  136.            TWMDIR = $(LIBDIR)/twm
  137.            GWMDIR = $(LIBDIR)/gwm
  138.           MANPATH = $(DESTDIR)/usr/man
  139.        LIBMANPATH = $(DESTDIR)/usr/man/p_man
  140.        CATMANPATH = $(DESTDIR)/usr/catman/u_man
  141.     LIBCATMANPATH = $(DESTDIR)/usr/catman/p_man
  142.     MANSOURCEPATH = $(MANPATH)/man
  143.   LIBMANSOURCEPATH= $(LIBMANPATH)/man
  144.   CATMANSOURCEPATH= $(CATMANPATH)/man
  145.   LIBCATMANSOURCEPATH=$(LIBCATMANPATH)/man
  146.            MANDIR = $(MANSOURCEPATH)n
  147.         LIBMANDIR = $(LIBMANSOURCEPATH)3
  148.         CATMANDIR = $(CATMANSOURCEPATH)n
  149.      LIBCATMANDIR = $(LIBCATMANSOURCEPATH)3
  150.       XAPPLOADDIR = $(LIBDIR)/app-defaults
  151.  
  152.         SOXLIBREV = 4.2
  153.           SOXTREV = 4.0
  154.          SOXAWREV = 4.0
  155.         SOOLDXREV = 4.0
  156.          SOXMUREV = 4.0
  157.         SOXEXTREV = 4.0
  158.  
  159.        FONTCFLAGS = -t
  160.  
  161.      INSTAPPFLAGS = $(INSTDATFLAGS)
  162.  
  163.             IMAKE = imake
  164.            DEPEND = makedepend
  165.               RGB = rgb
  166.             FONTC = bdftosnf
  167.         MKFONTDIR = mkfontdir
  168.         MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier.sh
  169.  
  170.         CONFIGSRC = $(TOP)/config
  171.         CLIENTSRC = $(TOP)/clients
  172.           DEMOSRC = $(TOP)/demos
  173.            LIBSRC = $(TOP)/lib
  174.           FONTSRC = $(TOP)/fonts
  175.        INCLUDESRC = $(TOP)/X11
  176.         SERVERSRC = $(TOP)/server
  177.           UTILSRC = $(TOP)/util
  178.         SCRIPTSRC = $(UTILSRC)/scripts
  179.        EXAMPLESRC = $(TOP)/examples
  180.        CONTRIBSRC = $(TOP)/../contrib
  181.            DOCSRC = $(TOP)/doc
  182.            RGBSRC = $(TOP)/rgb
  183.         DEPENDSRC = $(UTILSRC)/makedepend
  184.          IMAKESRC = $(CONFIGSRC)
  185.          XAUTHSRC = $(LIBSRC)/Xau
  186.           XLIBSRC = $(LIBSRC)/X
  187.            XMUSRC = $(LIBSRC)/Xmu
  188.        TOOLKITSRC = $(LIBSRC)/Xt
  189.        AWIDGETSRC = $(LIBSRC)/Xaw
  190.        OLDXLIBSRC = $(LIBSRC)/oldX
  191.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  192.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  193.      MKFONTDIRSRC = $(FONTSRC)/mkfontdir
  194.      EXTENSIONSRC = $(TOP)/extensions
  195.  
  196.   DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
  197.      EXTENSIONLIB =  -lXext
  198.  
  199.           DEPXLIB = $(DEPEXTENSIONLIB)
  200.              XLIB = $(EXTENSIONLIB) -lX11
  201.  
  202.       DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
  203.          XAUTHLIB =  -lXau
  204.  
  205.         DEPXMULIB =
  206.            XMULIB = -lXmu
  207.  
  208.        DEPOLDXLIB =
  209.           OLDXLIB = -loldX
  210.  
  211.       DEPXTOOLLIB =
  212.          XTOOLLIB = -lXt
  213.  
  214.         DEPXAWLIB =
  215.            XAWLIB = -lXaw
  216.  
  217.  LINTEXTENSIONLIB = $(USRLIBDIR)/llib-lXext.ln
  218.          LINTXLIB = $(USRLIBDIR)/llib-lX11.ln
  219.           LINTXMU = $(USRLIBDIR)/llib-lXmu.ln
  220.         LINTXTOOL = $(USRLIBDIR)/llib-lXt.ln
  221.           LINTXAW = $(USRLIBDIR)/llib-lXaw.ln
  222.  
  223.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  224.  
  225.          DEPLIBS1 = $(DEPLIBS)
  226.          DEPLIBS2 = $(DEPLIBS)
  227.          DEPLIBS3 = $(DEPLIBS)
  228.  
  229. ###########################################################################
  230. # Imake rules for building libraries, programs, scripts, and data files
  231. # rules:  $XConsortium: Imake.rules,v 1.67 89/12/18 17:14:15 jim Exp $
  232.  
  233. ###########################################################################
  234. # start of Imakefile
  235.  
  236. #
  237. # Author: Jason Baietto, jason@ssd.csd.harris.com
  238. # xdiary Copyright 1990 Harris Corporation
  239. #
  240. # Permission to use, copy, modify, and distribute, this software and its
  241. # documentation for any purpose is hereby granted without fee, provided that
  242. # the above copyright notice appear in all copies and that both that
  243. # copyright notice and this permission notice appear in supporting
  244. # documentation, and that the name of the copyright holder be used in
  245. # advertising or publicity pertaining to distribution of the software with
  246. # specific, written prior permission, and that no fee is charged for further
  247. # distribution of this software, or any modifications thereof.  The copyright
  248. # holder makes no representations about the suitability of this software for
  249. # any purpose.  It is provided "as is" without express or implied warranty.
  250. #
  251. # THE COPYRIGHT HOLDER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  252. # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, AND IN 0
  253. # EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  254. # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM ITS USE,
  255. # LOSS OF DATA, PROFITS, QPA OR GPA, WHETHER IN AN ACTION OF CONTRACT,
  256. # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
  257. # THE USE OR PERFORMANCE OF THIS SOFTWARE.
  258. #
  259.  
  260. #
  261. # Imakefile for xdiary
  262. # Use xmkmf at your site to generate a site specific Makefile
  263. #
  264.  
  265.         DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB) $(DEPXEXTLIB)
  266. LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) $(XEXTLIB)
  267.            SRCS = Calendar.c \
  268.                   StrInRect.c \
  269.                   StrTable.c \
  270.                   Gravity.c \
  271.                   Date.c \
  272.                   DayName.c \
  273.                   template.c \
  274.                   diary.c \
  275.                   main.c
  276.  
  277.            OBJS = Calendar.o \
  278.                   StrInRect.o \
  279.                   StrTable.o \
  280.                   Gravity.o \
  281.                   Date.o \
  282.                   DayName.o \
  283.                   diary.o \
  284.                   template.o \
  285.                   main.o
  286.  
  287.  PROGRAM = xdiary
  288.  
  289. all:: xdiary
  290.  
  291. xdiary: $(OBJS) $(DEPLIBS)
  292.     $(RM) $@
  293.     $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  294.  
  295. saber_xdiary:
  296.     #load $(ALLDEFINES) $(SRCS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  297.  
  298. osaber_xdiary:
  299.     #load $(ALLDEFINES) $(OBJS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  300.  
  301. install:: xdiary
  302.     $(INSTALL) -c $(INSTPGMFLAGS)   xdiary $(BINDIR)
  303.  
  304. install.man:: xdiary.man
  305.     $(INSTALL) -c $(INSTMANFLAGS) xdiary.man $(MANDIR)/xdiary.n
  306.  
  307. depend::
  308.     $(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  309.  
  310. lint:
  311.     $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  312. lint1:
  313.     $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  314.  
  315. clean::
  316.     $(RM) $(PROGRAM)
  317.  
  318. install:: Xdiary.ad
  319.     $(INSTALL) -c $(INSTAPPFLAGS) Xdiary.ad $(XAPPLOADDIR)/Xdiary
  320.  
  321. ###########################################################################
  322. # common rules for all Makefiles - do not edit
  323.  
  324. emptyrule::
  325.  
  326. clean::
  327.     $(RM_CMD) \#*
  328.  
  329. Makefile::
  330.     -@if [ -f Makefile ]; then \
  331.     echo "    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
  332.     $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  333.     else exit 0; fi
  334.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  335.  
  336. tags::
  337.     $(TAGS) -w *.[ch]
  338.     $(TAGS) -xw *.[ch] > TAGS
  339.  
  340. saber:
  341.     #load $(ALLDEFINES) $(SRCS)
  342.  
  343. osaber:
  344.     #load $(ALLDEFINES) $(OBJS)
  345.  
  346. ###########################################################################
  347. # empty rules for directories that do not have SUBDIRS - do not edit
  348.  
  349. install::
  350.     @echo "install in $(CURRENT_DIR) done"
  351.  
  352. install.man::
  353.     @echo "install.man in $(CURRENT_DIR) done"
  354.  
  355. Makefiles::
  356.  
  357. includes::
  358.  
  359. ###########################################################################
  360. # dependencies generated by makedepend
  361.  
  362.