home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume21 / notes / part01 / Makefile < prev    next >
Encoding:
Makefile  |  1993-10-20  |  12.6 KB  |  387 lines

  1. # Makefile generated by imake - do not edit!
  2. # $XConsortium: imake.c,v 1.65 91/07/25 17:50:17 rws 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 <Imakefile>
  11. # $XConsortium: Imake.tmpl,v 1.139 91/09/16 08:52:48 rws Exp $
  12. #
  13. # Platform-specific parameters may be set in the appropriate <vendor>.cf
  14. # configuration files.  Site-specific parameters should be set in the file
  15. # site.def.  Full rebuilds are recommended if any parameters are changed.
  16. #
  17. # If your C preprocessor does not define any unique symbols, you will need
  18. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  19. # "make World" the first time).
  20. #
  21.  
  22. # -------------------------------------------------------------------------
  23. # site-specific configuration parameters that need to come before
  24. # the platform-specific parameters - edit site.def to change
  25.  
  26. # site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
  27.  
  28. # -------------------------------------------------------------------------
  29. # platform-specific configuration parameters - edit sun.cf to change
  30.  
  31. # platform:  $XConsortium: sun.cf,v 1.72.1.1 92/03/18 13:13:37 rws Exp $
  32.  
  33. # operating system:         SunOS 3.5
  34.  
  35. # -------------------------------------------------------------------------
  36. # site-specific configuration parameters that go after
  37. # the platform-specific parameters - edit site.def to change
  38.  
  39. # site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
  40.  
  41.             SHELL =  /bin/sh
  42.  
  43.               TOP = .
  44.       CURRENT_DIR = .
  45.  
  46.                AR = ar clq
  47.   BOOTSTRAPCFLAGS =  -DNOSTDHDRS
  48.                CC = cc
  49.                AS = as
  50.  
  51.          COMPRESS = compress
  52.               CPP = /lib/cpp $(STD_CPP_DEFINES)
  53.     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  54.           INSTALL = install
  55.                LD = ld
  56.              LINT = lint
  57.       LINTLIBFLAG = -C
  58.          LINTOPTS = -axz
  59.                LN = ln -s
  60.              MAKE = make
  61.                MV = mv
  62.                CP = cp
  63.  
  64.            RANLIB = ranlib
  65.   RANLIBINSTFLAGS =
  66.  
  67.                RM = rm -f
  68.             TROFF = psroff
  69.          MSMACROS = -ms
  70.               TBL = tbl
  71.               EQN = eqn
  72.      STD_INCLUDES =
  73.   STD_CPP_DEFINES =  -DNOSTDHDRS
  74.       STD_DEFINES =  -DNOSTDHDRS
  75.  EXTRA_LOAD_FLAGS =
  76.   EXTRA_LIBRARIES =
  77.              TAGS = ctags
  78.  
  79.    SIGNAL_DEFINES = -DSIGNALRETURNSINT
  80.  
  81.     PROTO_DEFINES =
  82.  
  83.      INSTPGMFLAGS = -s
  84.  
  85.      INSTBINFLAGS = -m 0755
  86.      INSTUIDFLAGS = -m 4755
  87.      INSTLIBFLAGS = -m 0644
  88.      INSTINCFLAGS = -m 0444
  89.      INSTMANFLAGS = -m 0444
  90.      INSTDATFLAGS = -m 0444
  91.     INSTKMEMFLAGS =  -g kmem -m 2755
  92.  
  93.       CDEBUGFLAGS = -O
  94.         CCOPTIONS = -f68881
  95.  
  96.       ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
  97.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
  98.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  99.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  100.  
  101.            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  102.  
  103.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS)
  104.  
  105.    LDCOMBINEFLAGS = -X -r
  106.       DEPENDFLAGS =
  107.  
  108.         MACROFILE = sun.cf
  109.            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  110.  
  111.     IMAKE_DEFINES =
  112.  
  113.          IRULESRC = $(CONFIGDIR)
  114.         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  115.  
  116.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  117.             $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  118.             $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  119.  
  120. # -------------------------------------------------------------------------
  121. # X Window System Build Parameters
  122. # $XConsortium: Project.tmpl,v 1.138.1.1 92/11/11 09:49:19 rws Exp $
  123.  
  124. # -------------------------------------------------------------------------
  125. # X Window System make variables; this need to be coordinated with rules
  126.  
  127.           PATHSEP = /
  128.         USRLIBDIR = /usr/lib
  129.            BINDIR = /usr/bin/X11
  130.           INCROOT = /usr/include
  131.      BUILDINCROOT = $(TOP)
  132.       BUILDINCDIR = $(BUILDINCROOT)/X11
  133.       BUILDINCTOP = ..
  134.            INCDIR = $(INCROOT)/X11
  135.            ADMDIR = /usr/adm
  136.            LIBDIR = $(USRLIBDIR)/X11
  137.         CONFIGDIR = $(LIBDIR)/config
  138.        LINTLIBDIR = $(USRLIBDIR)/lint
  139.  
  140.           FONTDIR = $(LIBDIR)/fonts
  141.          XINITDIR = $(LIBDIR)/xinit
  142.            XDMDIR = $(LIBDIR)/xdm
  143.            TWMDIR = $(LIBDIR)/twm
  144.           MANPATH = /usr/man
  145.     MANSOURCEPATH = $(MANPATH)/man
  146.         MANSUFFIX = n
  147.      LIBMANSUFFIX = 3
  148.            MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
  149.         LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
  150.            NLSDIR = $(LIBDIR)/nls
  151.         PEXAPIDIR = $(LIBDIR)/PEX
  152.       XAPPLOADDIR = $(LIBDIR)/app-defaults
  153.        FONTCFLAGS = -t
  154.  
  155.      INSTAPPFLAGS = $(INSTDATFLAGS)
  156.  
  157.             IMAKE = imake
  158.            DEPEND = makedepend
  159.               RGB = rgb
  160.  
  161.             FONTC = bdftopcf
  162.  
  163.         MKFONTDIR = mkfontdir
  164.         MKDIRHIER =  /bin/sh $(BINDIR)/mkdirhier
  165.  
  166.         CONFIGSRC = $(TOP)/config
  167.        DOCUTILSRC = $(TOP)/doc/util
  168.         CLIENTSRC = $(TOP)/clients
  169.           DEMOSRC = $(TOP)/demos
  170.            LIBSRC = $(TOP)/lib
  171.           FONTSRC = $(TOP)/fonts
  172.        INCLUDESRC = $(TOP)/X11
  173.         SERVERSRC = $(TOP)/server
  174.           UTILSRC = $(TOP)/util
  175.         SCRIPTSRC = $(UTILSRC)/scripts
  176.        EXAMPLESRC = $(TOP)/examples
  177.        CONTRIBSRC = $(TOP)/../contrib
  178.            DOCSRC = $(TOP)/doc
  179.            RGBSRC = $(TOP)/rgb
  180.         DEPENDSRC = $(UTILSRC)/makedepend
  181.          IMAKESRC = $(CONFIGSRC)
  182.          XAUTHSRC = $(LIBSRC)/Xau
  183.           XLIBSRC = $(LIBSRC)/X
  184.            XMUSRC = $(LIBSRC)/Xmu
  185.        TOOLKITSRC = $(LIBSRC)/Xt
  186.        AWIDGETSRC = $(LIBSRC)/Xaw
  187.        OLDXLIBSRC = $(LIBSRC)/oldX
  188.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  189.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  190.       BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
  191.       BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
  192.      MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
  193.          FSLIBSRC = $(FONTSRC)/lib/fs
  194.     FONTSERVERSRC = $(FONTSRC)/server
  195.      EXTENSIONSRC = $(TOP)/extensions
  196.          XILIBSRC = $(EXTENSIONSRC)/lib/xinput
  197.         PEXLIBSRC = $(EXTENSIONSRC)/lib/PEXlib
  198.       PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
  199.  
  200.   DEPEXTENSIONLIB =  $(USRLIBDIR)/libXext.a
  201.      EXTENSIONLIB =   -lXext
  202.  
  203.           DEPXLIB = $(DEPEXTENSIONLIB)  $(USRLIBDIR)/libX11.a
  204.              XLIB = $(EXTENSIONLIB)   -lX11
  205.  
  206.       DEPXAUTHLIB =  $(USRLIBDIR)/libXau.a
  207.          XAUTHLIB =   -lXau
  208.       DEPXDMCPLIB =  $(USRLIBDIR)/libXdmcp.a
  209.          XDMCPLIB =   -lXdmcp
  210.  
  211.         DEPXMULIB =  $(USRLIBDIR)/libXmu.a
  212.            XMULIB =   -lXmu
  213.  
  214.        DEPOLDXLIB =  $(USRLIBDIR)/liboldX.a
  215.           OLDXLIB =   -loldX
  216.  
  217.       DEPXTOOLLIB =  $(USRLIBDIR)/libXt.a
  218.          XTOOLLIB =   -lXt
  219.  
  220.         DEPXAWLIB =  $(USRLIBDIR)/libXaw.a
  221.            XAWLIB =   -lXaw
  222.  
  223.         DEPXILIB =  $(USRLIBDIR)/libXi.a
  224.            XILIB =   -lXi
  225.  
  226.        DEPPEXLIB =  $(USRLIBDIR)/libPEX5.a
  227.           PEXLIB =   -lPEX5
  228.  
  229.         DEPPHIGSLIB =  $(USRLIBDIR)/libphigs.a
  230.            PHIGSLIB =   -lphigs
  231.  
  232.        DEPXBSDLIB =  $(USRLIBDIR)/libXbsd.a
  233.           XBSDLIB =   -lXbsd
  234.  
  235.  LINTEXTENSIONLIB =  $(LINTLIBDIR)/llib-lXext.ln
  236.          LINTXLIB =  $(LINTLIBDIR)/llib-lX11.ln
  237.           LINTXMU =  $(LINTLIBDIR)/llib-lXmu.ln
  238.         LINTXTOOL =  $(LINTLIBDIR)/llib-lXt.ln
  239.           LINTXAW =  $(LINTLIBDIR)/llib-lXaw.ln
  240.            LINTXI =  $(LINTLIBDIR)/llib-lXi.ln
  241.           LINTPEX =  $(LINTLIBDIR)/llib-lPEX5.ln
  242.         LINTPHIGS =  $(LINTLIBDIR)/llib-lphigs.ln
  243.  
  244.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  245.  
  246.          DEPLIBS1 = $(DEPLIBS)
  247.          DEPLIBS2 = $(DEPLIBS)
  248.          DEPLIBS3 = $(DEPLIBS)
  249.  
  250. # -------------------------------------------------------------------------
  251. # Imake rules for building libraries, programs, scripts, and data files
  252. # rules:  $XConsortium: Imake.rules,v 1.123 91/09/16 20:12:16 rws Exp $
  253.  
  254. # -------------------------------------------------------------------------
  255. # start of Imakefile
  256.  
  257. H_OFS=2
  258. V_OFS=24
  259.  
  260.         DEFINES = -DNEED_STRDUP -DH_OFFSET=$(H_OFS) -DV_OFFSET=$(V_OFS)
  261.  
  262.            SRCS = main.c callbacks.c
  263.            OBJS = main.o callbacks.o
  264. LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  265.         DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  266.  
  267.  PROGRAM = notes
  268.  
  269. all:: notes
  270.  
  271. notes: $(OBJS) $(DEPLIBS)
  272.      $(RM) $@
  273.     $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  274.  
  275. saber_notes:: $(SRCS)
  276.     # load $(ALLDEFINES) $(SRCS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  277.  
  278. osaber_notes:: $(OBJS)
  279.     # load $(ALLDEFINES) $(OBJS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  280.  
  281. install:: notes
  282.      @if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
  283.     else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
  284.     $(INSTALL) -c $(INSTPGMFLAGS)  notes $(DESTDIR)$(BINDIR)
  285.  
  286. install.man:: notes.man
  287.      @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
  288.     else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
  289.     $(INSTALL) -c $(INSTMANFLAGS) notes.man $(DESTDIR)$(MANDIR)/notes.$(MANSUFFIX)
  290.  
  291. depend::
  292.     $(DEPEND) $(DEPENDFLAGS) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  293.  
  294. lint:
  295.     $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  296. lint1:
  297.     $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  298.  
  299. clean::
  300.     $(RM) $(PROGRAM)
  301.  
  302. install:: notes.xbm
  303.     $(INSTALL) -c $(INSTDATFLAGS) notes.xbm $(DESTDIR) $(INCDIR)/bitmaps
  304.  
  305. kit::
  306.     makekit -iMANIFEST -oMANIFEST -h2
  307.  
  308. # -------------------------------------------------------------------------
  309. # common rules for all Makefiles - do not edit
  310.  
  311. emptyrule::
  312.  
  313. clean::
  314.     $(RM_CMD) "#"*
  315.  
  316. Makefile::
  317.     -@if [ -f Makefile ]; then set -x; \
  318.     $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  319.     else exit 0; fi
  320.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  321.  
  322. tags::
  323.     $(TAGS) -w *.[ch]
  324.     $(TAGS) -xw *.[ch] > TAGS
  325.  
  326. saber:
  327.     # load $(ALLDEFINES) $(SRCS)
  328.  
  329. osaber:
  330.     # load $(ALLDEFINES) $(OBJS)
  331.  
  332. # -------------------------------------------------------------------------
  333. # empty rules for directories that do not have SUBDIRS - do not edit
  334.  
  335. install::
  336.     @echo "install in $(CURRENT_DIR) done"
  337.  
  338. install.man::
  339.     @echo "install.man in $(CURRENT_DIR) done"
  340.  
  341. Makefiles::
  342.  
  343. includes::
  344.  
  345. # -------------------------------------------------------------------------
  346. # dependencies generated by makedepend
  347.  
  348. # DO NOT DELETE
  349.  
  350. main.o: /usr/include/stdio.h /usr/include/strings.h /usr/include/malloc.h
  351. main.o: /usr/include/sys/param.h /usr/include/machine/param.h
  352. main.o: /usr/include/sys/signal.h /usr/include/sys/types.h
  353. main.o: /usr/include/sys/sysmacros.h /usr/include/sys/stat.h
  354. main.o: /usr/include/X11/Intrinsic.h /usr/include/X11/Xlib.h
  355. main.o: /usr/include/X11/X.h /usr/include/X11/Xfuncproto.h
  356. main.o: /usr/include/X11/Xosdefs.h /usr/include/X11/Xutil.h
  357. main.o: /usr/include/X11/Xresource.h /usr/include/X11/Core.h
  358. main.o: /usr/include/X11/Composite.h /usr/include/X11/Constraint.h
  359. main.o: /usr/include/X11/Object.h /usr/include/X11/RectObj.h
  360. main.o: /usr/include/X11/StringDefs.h /usr/include/X11/Shell.h
  361. main.o: /usr/include/X11/Xaw/Box.h /usr/include/X11/Xmu/Converters.h
  362. main.o: /usr/include/X11/Xaw/Cardinals.h /usr/include/X11/Xaw/Command.h
  363. main.o: /usr/include/X11/Xaw/Label.h /usr/include/X11/Xaw/Simple.h
  364. main.o: /usr/include/X11/Xaw/Form.h /usr/include/X11/Xaw/List.h notes.h
  365. main.o: patchlevel.h
  366. callbacks.o: /usr/include/stdio.h /usr/include/malloc.h
  367. callbacks.o: /usr/include/X11/IntrinsicP.h /usr/include/X11/Intrinsic.h
  368. callbacks.o: /usr/include/X11/Xlib.h /usr/include/sys/types.h
  369. callbacks.o: /usr/include/sys/sysmacros.h /usr/include/X11/X.h
  370. callbacks.o: /usr/include/X11/Xfuncproto.h /usr/include/X11/Xosdefs.h
  371. callbacks.o: /usr/include/X11/Xutil.h /usr/include/X11/Xresource.h
  372. callbacks.o: /usr/include/strings.h /usr/include/X11/Core.h
  373. callbacks.o: /usr/include/X11/Composite.h /usr/include/X11/Constraint.h
  374. callbacks.o: /usr/include/X11/Object.h /usr/include/X11/RectObj.h
  375. callbacks.o: /usr/include/X11/CoreP.h /usr/include/X11/CompositeP.h
  376. callbacks.o: /usr/include/X11/ConstrainP.h /usr/include/X11/ObjectP.h
  377. callbacks.o: /usr/include/X11/RectObjP.h /usr/include/X11/StringDefs.h
  378. callbacks.o: /usr/include/X11/Shell.h /usr/include/X11/Xaw/Box.h
  379. callbacks.o: /usr/include/X11/Xmu/Converters.h
  380. callbacks.o: /usr/include/X11/Xaw/Cardinals.h /usr/include/X11/Xaw/Command.h
  381. callbacks.o: /usr/include/X11/Xaw/Label.h /usr/include/X11/Xaw/Simple.h
  382. callbacks.o: /usr/include/X11/Xaw/Form.h /usr/include/X11/Xaw/List.h
  383. callbacks.o: /usr/include/X11/Xaw/AsciiText.h /usr/include/X11/Xaw/Text.h
  384. callbacks.o: /usr/include/X11/Xaw/TextSink.h /usr/include/X11/Xaw/TextSrc.h
  385. callbacks.o: /usr/include/X11/Xaw/AsciiSrc.h /usr/include/X11/Xaw/AsciiSink.h
  386. callbacks.o: notes.h patchlevel.h
  387.