home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3512 / Makefile < prev    next >
Encoding:
Makefile  |  1991-06-20  |  9.4 KB  |  321 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.a00291>
  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.1.1
  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.     PROTO_DEFINES =
  69.  
  70.      INSTPGMFLAGS =
  71.  
  72.      INSTBINFLAGS = -m 0755
  73.      INSTUIDFLAGS = -m 4755
  74.      INSTLIBFLAGS = -m 0664
  75.      INSTINCFLAGS = -m 0444
  76.      INSTMANFLAGS = -m 0444
  77.      INSTDATFLAGS = -m 0444
  78.     INSTKMEMFLAGS = -m 4755
  79.  
  80.           DESTDIR =
  81.  
  82.      TOP_INCLUDES = -I$(INCROOT)
  83.  
  84.       CDEBUGFLAGS = -O
  85.         CCOPTIONS =
  86.       COMPATFLAGS =
  87.  
  88.       ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
  89.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
  90.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  91.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  92.            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  93.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
  94.    LDCOMBINEFLAGS = -X -r
  95.  
  96.         MACROFILE = sun.cf
  97.            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  98.  
  99.     IMAKE_DEFINES =
  100.  
  101.          IRULESRC = $(CONFIGDIR)
  102.         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  103.  
  104.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  105.             $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  106.             $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  107.  
  108. ###########################################################################
  109. # X Window System Build Parameters
  110. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  111.  
  112. ###########################################################################
  113. # X Window System make variables; this need to be coordinated with rules
  114. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  115.  
  116.           PATHSEP = /
  117.         USRLIBDIR = /usr/local/lib
  118.            BINDIR = $(DESTDIR)/usr/bin/X11
  119.           INCROOT = $(DESTDIR)/usr/include
  120.      BUILDINCROOT = $(TOP)
  121.       BUILDINCDIR = $(BUILDINCROOT)/X11
  122.       BUILDINCTOP = ..
  123.            INCDIR = $(INCROOT)/X11
  124.            ADMDIR = $(DESTDIR)/usr/adm
  125.            LIBDIR = $(USRLIBDIR)/X11
  126.         CONFIGDIR = $(LIBDIR)/config
  127.        LINTLIBDIR = $(USRLIBDIR)/lint
  128.  
  129.           FONTDIR = $(LIBDIR)/fonts
  130.          XINITDIR = $(LIBDIR)/xinit
  131.            XDMDIR = $(LIBDIR)/xdm
  132.            AWMDIR = $(LIBDIR)/awm
  133.            TWMDIR = $(LIBDIR)/twm
  134.            GWMDIR = $(LIBDIR)/gwm
  135.           MANPATH = $(DESTDIR)/usr/local/man
  136.     MANSOURCEPATH = $(MANPATH)/man
  137.            MANDIR = $(MANSOURCEPATH)n
  138.         LIBMANDIR = $(MANSOURCEPATH)3
  139.       XAPPLOADDIR = $(LIBDIR)/app-defaults
  140.  
  141.        FONTCFLAGS = -t
  142.  
  143.      INSTAPPFLAGS = $(INSTDATFLAGS)
  144.  
  145.             IMAKE = imake
  146.            DEPEND = makedepend
  147.               RGB = rgb
  148.             FONTC = bdftosnf
  149.         MKFONTDIR = mkfontdir
  150.         MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier.sh
  151.  
  152.         CONFIGSRC = $(TOP)/config
  153.         CLIENTSRC = $(TOP)/clients
  154.           DEMOSRC = $(TOP)/demos
  155.            LIBSRC = $(TOP)/lib
  156.           FONTSRC = $(TOP)/fonts
  157.        INCLUDESRC = $(TOP)/X11
  158.         SERVERSRC = $(TOP)/server
  159.           UTILSRC = $(TOP)/util
  160.         SCRIPTSRC = $(UTILSRC)/scripts
  161.        EXAMPLESRC = $(TOP)/examples
  162.        CONTRIBSRC = $(TOP)/../contrib
  163.            DOCSRC = $(TOP)/doc
  164.            RGBSRC = $(TOP)/rgb
  165.         DEPENDSRC = $(UTILSRC)/makedepend
  166.          IMAKESRC = $(CONFIGSRC)
  167.          XAUTHSRC = $(LIBSRC)/Xau
  168.           XLIBSRC = $(LIBSRC)/X
  169.            XMUSRC = $(LIBSRC)/Xmu
  170.        TOOLKITSRC = $(LIBSRC)/Xt
  171.        AWIDGETSRC = $(LIBSRC)/Xaw
  172.        OLDXLIBSRC = $(LIBSRC)/oldX
  173.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  174.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  175.      MKFONTDIRSRC = $(FONTSRC)/mkfontdir
  176.      EXTENSIONSRC = $(TOP)/extensions
  177.  
  178.   DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
  179.      EXTENSIONLIB =  -lXext
  180.  
  181.           DEPXLIB = $(DEPEXTENSIONLIB) $(USRLIBDIR)/libX11.a
  182.              XLIB = $(EXTENSIONLIB)  -lX11
  183.  
  184.       DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
  185.          XAUTHLIB =  -lXau
  186.  
  187.         DEPXMULIB = $(USRLIBDIR)/libXmu.a
  188.            XMULIB =  -lXmu
  189.  
  190.        DEPOLDXLIB = $(USRLIBDIR)/liboldX.a
  191.           OLDXLIB =  -loldX
  192.  
  193.       DEPXTOOLLIB = $(USRLIBDIR)/libXt.a
  194.          XTOOLLIB =  -lXt
  195.  
  196.         DEPXAWLIB = $(USRLIBDIR)/libXaw.a
  197.            XAWLIB =  -lXaw
  198.  
  199.  LINTEXTENSIONLIB = $(USRLIBDIR)/llib-lXext.ln
  200.          LINTXLIB = $(USRLIBDIR)/llib-lX11.ln
  201.           LINTXMU = $(USRLIBDIR)/llib-lXmu.ln
  202.         LINTXTOOL = $(USRLIBDIR)/llib-lXt.ln
  203.           LINTXAW = $(USRLIBDIR)/llib-lXaw.ln
  204.  
  205.         XWLIBSRC = $(CONTRIBSRC)/toolkits/Xw
  206.         DEPXWLIB = $(USRLIBDIR)/libXw.a
  207.         XWLIB =  -lXw
  208.  
  209.           DEPLIBS = $(LOCAL_LIBRARIES)
  210.  
  211.          DEPLIBS1 = $(DEPLIBS)
  212.          DEPLIBS2 = $(DEPLIBS)
  213.          DEPLIBS3 = $(DEPLIBS)
  214.  
  215. ###########################################################################
  216. # Imake rules for building libraries, programs, scripts, and data files
  217. # rules:  $XConsortium: Imake.rules,v 1.67 89/12/18 17:14:15 jim Exp $
  218.  
  219. ###########################################################################
  220. # start of Imakefile
  221.  
  222. #
  223. #  @(#)Imakefile 1.2 90/04/12
  224. #
  225. #  Copyright (c) Rich Burridge - Sun Microsystems Australia.
  226. #                                Al rights reservered.
  227. #
  228. #  Permission is given to distribute these sources, as long as the
  229. #  copyright messages are not removed, and no monies are exchanged.
  230. #
  231. #  No responsibility is taken for any errors inherent either in the comments
  232. #  or the code of this program, but if reported to me then an attempt will
  233. #  be made to fix them.
  234.  
  235. LIBRARY_DEST = /usr/openwin/lib
  236. HEADER_DEST = /usr/openwin/include
  237.  
  238. PROGRAMS = scantool scan
  239. HELPNAME = -DHELPNAME=\"/usr/local/lib/scantool/scantool.help\"
  240.  
  241. DEFINES = $(HELPNAME) $(SELTYPE) $(SIGRET)
  242.  
  243. INCLUDES = -I$(HEADER_DEST) $(DEFINES)
  244. DEPLIBS =
  245. LOCAL_LIBRARIES =  $(LIBRARY_DEST)/libxview.a $(LIBRARY_DEST)/libolgx.a \
  246.            $(LIBRARY_DEST)/libX11.a -lpixrect
  247.  
  248. SRCS = scantool.c graphics.c misc.c xview.c
  249. OBJS = scantool.o graphics.o misc.o xview.o
  250.  
  251. SRCS2 = scan.c scan_compress.c
  252. OBJS2 = scan.o scan_compress.o
  253.  
  254.  PROGRAM = scantool
  255.  
  256. all:: scantool
  257.  
  258. scantool: $(OBJS) $(DEPLIBS)
  259.     $(RM) $@
  260.     $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  261.  
  262. install:: scantool
  263.     $(INSTALL) -c $(INSTPGMFLAGS)   scantool $(BINDIR)
  264.  
  265. install.man:: scantool.man
  266.     $(INSTALL) -c $(INSTMANFLAGS) scantool.man $(MANDIR)/scantool.n
  267.  
  268. depend::
  269.     $(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  270.  
  271. lint:
  272.     $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  273. lint1:
  274.     $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  275.  
  276. clean::
  277.     $(RM) $(PROGRAM)
  278.  
  279. scan:  $(OBJS2)
  280.     $(RM) $@
  281.     $(CC) -o $@  $(OBJS2) $(LDOPTIONS)   $(LDLIBS)   $(EXTRA_LOAD_FLAGS)
  282.  
  283. clean::
  284.     $(RM) scan
  285.  
  286. ###########################################################################
  287. # common rules for all Makefiles - do not edit
  288.  
  289. emptyrule::
  290.  
  291. clean::
  292.     $(RM_CMD) \#*
  293.  
  294. Makefile::
  295.     -@if [ -f Makefile ]; then \
  296.     echo "    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
  297.     $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  298.     else exit 0; fi
  299.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  300.  
  301. tags::
  302.     $(TAGS) -w *.[ch]
  303.     $(TAGS) -xw *.[ch] > TAGS
  304.  
  305. ###########################################################################
  306. # empty rules for directories that do not have SUBDIRS - do not edit
  307.  
  308. install::
  309.     @echo "install in $(CURRENT_DIR) done"
  310.  
  311. install.man::
  312.     @echo "install.man in $(CURRENT_DIR) done"
  313.  
  314. Makefiles::
  315.  
  316. includes::
  317.  
  318. ###########################################################################
  319. # dependencies generated by makedepend
  320.  
  321.