home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / TIERRA40.ZIP / ALMOND / OVERVIEW / MAKEFILE < prev    next >
Text File  |  1992-07-06  |  10KB  |  319 lines

  1. #############################################################################
  2. # TO Make ov with out a working imake, look for these lines below,
  3. # and change the paths to be correct,
  4. # at this point ov only works fine on suns ... more as we have time
  5. # cocteau@tierra.slhs.udel.edu
  6. #
  7. #      CCOPTIONS = -I../alcomm/inc -I../tierra
  8. #      LDOPTIONS = -L/usr/X/lib -L../alcomm
  9. #
  10. # for SGI - change -lresolv to -lsun
  11. #############################################################################
  12.  
  13. # Makefile generated by imake - do not edit!
  14. # $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
  15. #
  16. # The cpp used on this machine replaces all newlines and multiple tabs and
  17. # spaces in a macro expansion with a single space.  Imake tries to compensate
  18. # for this, but is not always successful.
  19. #
  20.  
  21. ###########################################################################
  22. # Makefile generated from "Imake.tmpl" and <Imakefile>
  23. # $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
  24. #
  25. # Platform-specific parameters may be set in the appropriate .cf
  26. # configuration files.  Site-wide parameters may be set in the file
  27. # site.def.  Full rebuilds are recommended if any parameters are changed.
  28. #
  29. # If your C preprocessor doesn't define any unique symbols, you'll need
  30. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  31. # "make Makefile", "make Makefiles", or "make World").
  32. #
  33. # If you absolutely can't get imake to work, you'll need to set the
  34. # variables at the top of each Makefile as well as the dependencies at the
  35. # bottom (makedepend will do this automatically).
  36. #
  37.  
  38. ###########################################################################
  39. # platform-specific configuration parameters - edit sun.cf to change
  40.  
  41. # platform:  $XConsortium: sun.cf,v 1.38 89/12/23 16:10:10 jim Exp $
  42. # operating system:  SunOS 4.0.3
  43.  
  44. ###########################################################################
  45. # site-specific configuration parameters - edit site.def to change
  46.  
  47. # site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $
  48.  
  49. SYSLIBS = -u __XtInherit -lXt -lX11
  50.  
  51.             SHELL = /bin/sh
  52.  
  53.               TOP = .
  54.       CURRENT_DIR = .
  55.  
  56.                AR = ar cq
  57.   BOOTSTRAPCFLAGS =
  58.                CC = cc
  59.  
  60.          COMPRESS = compress
  61.               CPP = /usr/gnu/lib/gcc-cpp $(STD_CPP_DEFINES)
  62.     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  63.           INSTALL = install
  64.                LD = ld
  65.              LINT = lint
  66.       LINTLIBFLAG = -C
  67.          LINTOPTS = -axz
  68.                LN = ln -s
  69.              MAKE = make
  70.                MV = mv
  71.                CP = cp
  72.            RANLIB = ranlib
  73.   RANLIBINSTFLAGS =
  74.                RM = rm -f
  75.      STD_INCLUDES =
  76.   STD_CPP_DEFINES =
  77.       STD_DEFINES =
  78.  EXTRA_LOAD_FLAGS =
  79.   EXTRA_LIBRARIES =
  80.              TAGS = ctags
  81.  
  82.     SHAREDCODEDEF = -DSHAREDCODE
  83.          SHLIBDEF = -DSUNSHLIB
  84.  
  85.     PROTO_DEFINES =
  86.  
  87.      INSTPGMFLAGS =
  88.  
  89.      INSTSCRFLAGS =
  90.      INSTBINFLAGS = -m 0755
  91.      INSTUIDFLAGS = -m 4755
  92.      INSTLIBFLAGS = -m 0664
  93.      INSTINCFLAGS = -m 0444
  94.      INSTMANFLAGS = -m 0444
  95.      INSTDATFLAGS = -m 0444
  96.     INSTKMEMFLAGS = -m 4755
  97.  
  98.           DESTDIR =
  99.  
  100.      TOP_INCLUDES = -I$(INCROOT)
  101.  
  102.       CDEBUGFLAGS = -O2
  103.         CCOPTIONS = -pipe -D_NO_PROTO -DNO_REGEX -DSTRINGS_ALIGNED -DNO_ISDIR -DUSE_RE_COMP -DUSE_GETWD
  104.       COMPATFLAGS =
  105.  
  106.       ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
  107.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
  108.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  109.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  110.  
  111.            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  112.  
  113.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) -L$(USRLIBDIR)
  114.  
  115.    LDCOMBINEFLAGS = -X -r
  116.  
  117.         MACROFILE = sun.cf
  118.            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  119.  
  120.     IMAKE_DEFINES =
  121.  
  122.          IRULESRC = $(CONFIGDIR)
  123.         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  124.  
  125.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  126.             $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  127.             $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  128.  
  129. ###########################################################################
  130. # X Window System Build Parameters
  131. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  132.  
  133. ###########################################################################
  134. # X Window System make variables; this need to be coordinated with rules
  135. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  136.  
  137.           PATHSEP = /
  138.         USRLIBDIR = /usr/X/lib
  139.            BINDIR = /usr/X/bin
  140.           INCROOT = /usr/X/include
  141.      BUILDINCROOT = $(TOP)
  142.       BUILDINCDIR = $(BUILDINCROOT)/X11
  143.       BUILDINCTOP = ..
  144.            INCDIR = $(INCROOT)/X11
  145.            ADMDIR = /usr/X/lib/X11/adm
  146.            LIBDIR = $(USRLIBDIR)/X11
  147.         CONFIGDIR = $(LIBDIR)/config
  148.        LINTLIBDIR = $(USRLIBDIR)/lint
  149.  
  150.           FONTDIR = $(LIBDIR)/fonts
  151.          XINITDIR = $(LIBDIR)/xinit
  152.            XDMDIR = $(LIBDIR)/xdm
  153.            AWMDIR = $(LIBDIR)/awm
  154.            TWMDIR = $(LIBDIR)/twm
  155.            GWMDIR = $(LIBDIR)/gwm
  156.           MANPATH = /usr/X/man
  157.     MANSOURCEPATH = $(MANPATH)/man
  158.            MANDIR = $(MANSOURCEPATH)1
  159.         LIBMANDIR = $(MANSOURCEPATH)3
  160.       XAPPLOADDIR = $(LIBDIR)/app-defaults
  161.  
  162.         SOXLIBREV = 4.2
  163.           SOXTREV = 4.0
  164.          SOXAWREV = 4.0
  165.         SOOLDXREV = 4.0
  166.          SOXMUREV = 4.0
  167.         SOXEXTREV = 4.0
  168.  
  169.        FONTCFLAGS = -t
  170.  
  171.      INSTAPPFLAGS = $(INSTDATFLAGS)
  172.  
  173.             IMAKE = imake
  174.            DEPEND = makedepend
  175.               RGB = rgb
  176.             FONTC = bdftosnf
  177.         MKFONTDIR = mkfontdir
  178.         MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier.sh
  179.  
  180.         CONFIGSRC = $(TOP)/config
  181.         CLIENTSRC = $(TOP)/clients
  182.           DEMOSRC = $(TOP)/demos
  183.            LIBSRC = $(TOP)/lib
  184.           FONTSRC = $(TOP)/fonts
  185.        INCLUDESRC = $(TOP)/X11
  186.         SERVERSRC = $(TOP)/server
  187.           UTILSRC = $(TOP)/util
  188.         SCRIPTSRC = $(UTILSRC)/scripts
  189.        EXAMPLESRC = $(TOP)/examples
  190.        CONTRIBSRC = $(TOP)/contrib
  191.            DOCSRC = $(TOP)/doc
  192.            RGBSRC = $(TOP)/rgb
  193.         DEPENDSRC = $(UTILSRC)/makedepend
  194.          IMAKESRC = $(CONFIGSRC)
  195.          XAUTHSRC = $(LIBSRC)/Xau
  196.           XLIBSRC = $(LIBSRC)/X
  197.            XMUSRC = $(LIBSRC)/Xmu
  198.        TOOLKITSRC = $(LIBSRC)/Xt
  199.        AWIDGETSRC = $(LIBSRC)/Xaw
  200.        OLDXLIBSRC = $(LIBSRC)/oldX
  201.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  202.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  203.      MKFONTDIRSRC = $(FONTSRC)/mkfontdir
  204.      EXTENSIONSRC = $(TOP)/extensions
  205.  
  206.   DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
  207.      EXTENSIONLIB =  -lXext
  208.  
  209.           DEPXLIB = $(DEPEXTENSIONLIB)
  210.              XLIB = $(EXTENSIONLIB) -lX11
  211.  
  212.       DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
  213.          XAUTHLIB =  -lXau
  214.  
  215.         DEPXMULIB =
  216.            XMULIB = -lXmu
  217.  
  218.        DEPOLDXLIB =
  219.           OLDXLIB = -loldX
  220.  
  221.       DEPXTOOLLIB =
  222.          XTOOLLIB = -lXt
  223.  
  224.         DEPXAWLIB =
  225.            XAWLIB = -lXaw
  226.  
  227.  LINTEXTENSIONLIB = $(USRLIBDIR)/llib-lXext.ln
  228.          LINTXLIB = $(USRLIBDIR)/llib-lX11.ln
  229.           LINTXMU = $(USRLIBDIR)/llib-lXmu.ln
  230.         LINTXTOOL = $(USRLIBDIR)/llib-lXt.ln
  231.           LINTXAW = $(USRLIBDIR)/llib-lXaw.ln
  232.  
  233.         XWLIBSRC = $(CONTRIBSRC)/toolkits/Xw
  234.         DEPXWLIB = $(USRLIBDIR)/libXw.a
  235.         XWLIB =  -lXw
  236.  
  237.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  238.  
  239.          DEPLIBS1 = $(DEPLIBS)
  240.          DEPLIBS2 = $(DEPLIBS)
  241.          DEPLIBS3 = $(DEPLIBS)
  242.  
  243. ###########################################################################
  244. # Imake rules for building libraries, programs, scripts, and data files
  245. # rules:  $XConsortium: Imake.rules,v 1.70 90/05/04 16:57:30 keith Exp $
  246.  
  247. ###########################################################################
  248. # TO MAKE ov: if you don't have imake, on a sun4 X11R4, change theses paths
  249. # start of Imakefile
  250.  
  251.  
  252.              CC = cc
  253.  
  254.     CDEBUGFLAGS = -g
  255.       CCOPTIONS = -I../alcomm/inc -I../tierra
  256.       LDOPTIONS = -L/usr/X/lib -L${HOME}/lib/${ARCH}
  257.       USRLIBDIR = /usr/lib
  258.  
  259. OVSRCS = overview.c ovxiface.c ov_gfx.c ovstats.c ovmemmap.c ovexpose.c
  260. OVOBJS = overview.o ovxiface.o ov_gfx.o ovstats.o ovmemmap.o ovexpose.o
  261.  
  262. LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  263.         DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  264.  
  265. all:: ov
  266.  
  267. ov: $(OVOBJS) $(DEPLIBS)
  268.     $(RM) $@
  269.     $(CC) -o $@ $(OVOBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) -lm -lalcom -lresolv $(EXTRA_LOAD_FLAGS)
  270.  
  271. clean::
  272.     $(RM) ov
  273.  
  274. depend::
  275.     $(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  276.  
  277. ###########################################################################
  278. # common rules for all Makefiles - do not edit
  279.  
  280. emptyrule::
  281.  
  282. clean::
  283.     $(RM_CMD) \#*
  284.  
  285. Makefile::
  286.     -@if [ -f Makefile ]; then \
  287.     echo "    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
  288.     $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  289.     else exit 0; fi
  290.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  291.  
  292. tags::
  293.     $(TAGS) -w *.[ch]
  294.     $(TAGS) -xw *.[ch] > TAGS
  295.  
  296. saber:
  297.     #load $(ALLDEFINES) $(SRCS)
  298.  
  299. osaber:
  300.     #load $(ALLDEFINES) $(OBJS)
  301.  
  302. ###########################################################################
  303. # empty rules for directories that do not have SUBDIRS - do not edit
  304.  
  305. install::
  306.     @echo "install in $(CURRENT_DIR) done"
  307.  
  308. install.man::
  309.     @echo "install.man in $(CURRENT_DIR) done"
  310.  
  311. Makefiles::
  312.  
  313. includes::
  314.  
  315. ###########################################################################
  316. # dependencies generated by makedepend
  317.  
  318.