home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / m / motifpg2.zip / ch04 / Makefile < prev    next >
Makefile  |  1992-07-03  |  13KB  |  467 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. # (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  11. # ALL RIGHTS RESERVED
  12. #
  13. #
  14. # Motif Release 1.2
  15. #
  16. #   $RCSfile: Imake.tmpl,v $ $Revision: 1.4.2.5 $ $Date: 1992/04/03 19:45:35 $
  17.  
  18. # -------------------------------------------------------------------------
  19. # Makefile generated from "Imake.tmpl" and </tmp/IIf.a06866>
  20. # $XConsortium: Imake.tmpl,v 1.139 91/09/16 08:52:48 rws Exp $
  21. #
  22. # Platform-specific parameters may be set in the appropriate <vendor>.cf
  23. # configuration files.  Site-specific parameters should be set in the file
  24. # site.def.  Full rebuilds are recommended if any parameters are changed.
  25. #
  26. # If your C preprocessor does not define any unique symbols, you will need
  27. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  28. # "make World" the first time).
  29. #
  30.  
  31. # -------------------------------------------------------------------------
  32. # site-specific configuration parameters that need to come before
  33. # the platform-specific parameters - edit site.def to change
  34.  
  35. # site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
  36.  
  37. # -------------------------------------------------------------------------
  38. # platform-specific configuration parameters - edit sun.cf to change
  39.  
  40. #
  41. # (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  42. # ALL RIGHTS RESERVED
  43. #
  44. #
  45. # Motif Release 1.2
  46. #
  47. #   $RCSfile: sun.cf,v $ $Revision: 1.5.2.3 $ $Date: 1992/04/16 20:38:01 $
  48. # platform:  $XConsortium: sun.cf,v 1.72.1.1 92/03/18 13:13:37 rws Exp $
  49.  
  50. # operating system:  SunOS 4.1.2
  51.  
  52. # $XConsortium: sunLib.rules,v 1.7 91/12/20 11:19:47 rws Exp $
  53.  
  54. # -------------------------------------------------------------------------
  55. # site-specific configuration parameters that go after
  56. # the platform-specific parameters - edit site.def to change
  57.  
  58. # site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
  59.  
  60.             SHELL = /bin/sh
  61.  
  62.               TOP = .
  63.       CURRENT_DIR = .
  64.  
  65.                AR = ar clq
  66.   BOOTSTRAPCFLAGS =
  67.                CC = cc
  68.                AS = as
  69.  
  70.          COMPRESS = compress
  71.               CPP = /lib/cpp $(STD_CPP_DEFINES)
  72.     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  73.           INSTALL = install
  74.                LD = ld
  75.              LINT = lint
  76.       LINTLIBFLAG = -C
  77.          LINTOPTS = -axz
  78.                LN = ln -s
  79.              MAKE = make
  80.                MV = mv
  81.                CP = cp
  82.  
  83.            RANLIB = ranlib
  84.   RANLIBINSTFLAGS =
  85.  
  86.                RM = rm -f
  87.             TROFF = psroff
  88.          MSMACROS = -ms
  89.               TBL = tbl
  90.               EQN = eqn
  91.      STD_INCLUDES =
  92.   STD_CPP_DEFINES =
  93.       STD_DEFINES =
  94.  EXTRA_LOAD_FLAGS =
  95.   EXTRA_LIBRARIES =
  96.              TAGS = ctags
  97.  
  98.     PROTO_DEFINES =
  99.  
  100.      INSTPGMFLAGS =
  101.  
  102.      INSTBINFLAGS = -m 0755
  103.      INSTUIDFLAGS = -m 4755
  104.      INSTLIBFLAGS = -m 0644
  105.      INSTINCFLAGS = -m 0444
  106.      INSTMANFLAGS = -m 0444
  107.      INSTDATFLAGS = -m 0444
  108.     INSTKMEMFLAGS = -g kmem -m 2755
  109.  
  110.       CDEBUGFLAGS = -O
  111.         CCOPTIONS = -pipe
  112.  
  113.       ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
  114.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
  115.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  116.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  117.  
  118.            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  119.  
  120.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS)
  121.  
  122.    LDCOMBINEFLAGS = -X -r
  123.       DEPENDFLAGS =
  124.  
  125.         MACROFILE = sun.cf
  126.            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  127.  
  128.     IMAKE_DEFINES =
  129.  
  130.          IRULESRC = $(CONFIGDIR)
  131.         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  132.  
  133.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  134.             $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  135.             $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  136.  
  137. # -------------------------------------------------------------------------
  138. # X Window System Build Parameters
  139. # $XConsortium: Project.tmpl,v 1.138 91/09/10 09:02:12 rws Exp $
  140.  
  141. # -------------------------------------------------------------------------
  142. # X Window System make variables; this need to be coordinated with rules
  143.  
  144.           PATHSEP = /
  145.         USRLIBDIR = /usr/lib
  146.            BINDIR = /usr/bin/X11
  147.           INCROOT = /usr/include
  148.      BUILDINCROOT = $(TOP)
  149.       BUILDINCDIR = $(BUILDINCROOT)/X11
  150.       BUILDINCTOP = ..
  151.            INCDIR = $(INCROOT)/X11
  152.            ADMDIR = /usr/adm
  153.            LIBDIR = $(USRLIBDIR)/X11
  154.         CONFIGDIR = $(LIBDIR)/config
  155.        LINTLIBDIR = $(USRLIBDIR)/lint
  156.  
  157.           FONTDIR = $(LIBDIR)/fonts
  158.          XINITDIR = $(LIBDIR)/xinit
  159.            XDMDIR = $(LIBDIR)/xdm
  160.            TWMDIR = $(LIBDIR)/twm
  161.           MANPATH = /usr/man
  162.     MANSOURCEPATH = $(MANPATH)/man
  163.         MANSUFFIX = n
  164.      LIBMANSUFFIX = 3
  165.            MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
  166.         LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
  167.            NLSDIR = $(LIBDIR)/nls
  168.         PEXAPIDIR = $(LIBDIR)/PEX
  169.       XAPPLOADDIR = $(LIBDIR)/app-defaults
  170.        FONTCFLAGS = -t
  171.  
  172.      INSTAPPFLAGS = $(INSTDATFLAGS)
  173.  
  174.             IMAKE = imake
  175.            DEPEND = makedepend
  176.               RGB = rgb
  177.  
  178.             FONTC = bdftopcf
  179.  
  180.         MKFONTDIR = mkfontdir
  181.         MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier
  182.  
  183.         CONFIGSRC = $(TOP)/config
  184.        DOCUTILSRC = $(TOP)/doc/util
  185.         CLIENTSRC = $(TOP)/clients
  186.           DEMOSRC = $(TOP)/demos
  187.            LIBSRC = $(TOP)/lib
  188.           FONTSRC = $(TOP)/fonts
  189.        INCLUDESRC = $(TOP)/X11
  190.         SERVERSRC = $(TOP)/server
  191.           UTILSRC = $(TOP)/util
  192.         SCRIPTSRC = $(UTILSRC)/scripts
  193.        EXAMPLESRC = $(TOP)/examples
  194.        CONTRIBSRC = $(TOP)/../contrib
  195.            DOCSRC = $(TOP)/doc
  196.            RGBSRC = $(TOP)/rgb
  197.         DEPENDSRC = $(UTILSRC)/makedepend
  198.          IMAKESRC = $(CONFIGSRC)
  199.          XAUTHSRC = $(LIBSRC)/Xau
  200.           XLIBSRC = $(LIBSRC)/X
  201.            XMUSRC = $(LIBSRC)/Xmu
  202.        TOOLKITSRC = $(LIBSRC)/Xt
  203.        AWIDGETSRC = $(LIBSRC)/Xaw
  204.        OLDXLIBSRC = $(LIBSRC)/oldX
  205.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  206.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  207.       BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
  208.       BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
  209.      MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
  210.          FSLIBSRC = $(FONTSRC)/lib/fs
  211.     FONTSERVERSRC = $(FONTSRC)/server
  212.      EXTENSIONSRC = $(TOP)/extensions
  213.          XILIBSRC = $(EXTENSIONSRC)/lib/xinput
  214.       PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
  215.  
  216. # $XConsortium: sunLib.tmpl,v 1.14 91/12/20 11:19:05 rws Exp $
  217.  
  218. SHLIBLDFLAGS = -assert pure-text
  219. PICFLAGS = -pic
  220.  
  221.   DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
  222.      EXTENSIONLIB =  -lXext
  223.  
  224.           DEPXLIB = $(DEPEXTENSIONLIB) $(USRLIBDIR)/libX11.a
  225.              XLIB = $(EXTENSIONLIB)  -lX11
  226.  
  227.       DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
  228.          XAUTHLIB =  -lXau
  229.       DEPXDMCPLIB = $(USRLIBDIR)/libXdmcp.a
  230.          XDMCPLIB =  -lXdmcp
  231.  
  232.         DEPXMULIB = $(USRLIBDIR)/libXmu.a
  233.            XMULIB =  -lXmu
  234.  
  235.        DEPOLDXLIB = $(USRLIBDIR)/liboldX.a
  236.           OLDXLIB =  -loldX
  237.  
  238.       DEPXTOOLLIB = $(USRLIBDIR)/libXt.a
  239.          XTOOLLIB =  -lXt
  240.  
  241.         DEPXAWLIB = $(USRLIBDIR)/libXaw.a
  242.            XAWLIB =  -lXaw
  243.  
  244.         DEPXILIB = $(USRLIBDIR)/libXi.a
  245.            XILIB =  -lXi
  246.  
  247.         DEPPHIGSLIB = $(USRLIBDIR)/libphigs.a
  248.            PHIGSLIB =  -lphigs
  249.  
  250.        DEPXBSDLIB = $(USRLIBDIR)/libXbsd.a
  251.           XBSDLIB =  -lXbsd
  252.  
  253.  LINTEXTENSIONLIB = $(LINTLIBDIR)/llib-lXext.ln
  254.          LINTXLIB = $(LINTLIBDIR)/llib-lX11.ln
  255.           LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln
  256.         LINTXTOOL = $(LINTLIBDIR)/llib-lXt.ln
  257.           LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln
  258.            LINTXI = $(LINTLIBDIR)/llib-lXi.ln
  259.         LINTPHIGS = $(LINTLIBDIR)/llib-lphigs.ln
  260.  
  261.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  262.  
  263.          DEPLIBS1 = $(DEPLIBS)
  264.          DEPLIBS2 = $(DEPLIBS)
  265.          DEPLIBS3 = $(DEPLIBS)
  266.  
  267. #
  268. # (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  269. # ALL RIGHTS RESERVED
  270. #
  271. #
  272. # Motif Release 1.2
  273. #
  274. #   $RCSfile: Motif.tmpl,v $ $Revision: 1.5.2.3 $ $Date: 1992/04/10 21:02:42 $
  275.  
  276.               XTOP = /usr/source/X11R5/mit
  277.               MTOP = $(TOP)
  278.      XBUILDINCROOT = $(XTOP)
  279.       XBUILDINCDIR = $(XBUILDINCROOT)/X11
  280.  
  281.          CLIENTSRC = $(XTOP)/clients
  282.            DEMOSRC = $(XTOP)/demos
  283.             LIBSRC = $(XTOP)/lib
  284.            FONTSRC = $(XTOP)/fonts
  285.         INCLUDESRC = $(XTOP)/X11
  286.          SERVERSRC = $(XTOP)/server
  287.            UTILSRC = $(XTOP)/util
  288.         EXAMPLESRC = $(XTOP)/examples
  289.             DOCSRC = $(XTOP)/doc
  290.             RGBSRC = $(XTOP)/rgb
  291.       EXTENSIONSRC = $(XTOP)/extensions
  292.  
  293.    TOP_INCLUDES = -I$(XTOP) -I$(MTOP)
  294.  
  295.       USRINCDIR = /usr/include
  296.          UIDDIR = $(LIBDIR)/uid
  297.         TESTSRC = $(MTOP)/tests
  298.   GENERALSRCLIB = $(TESTSRC)/General/lib
  299.   GENERALSRCBIN = $(TESTSRC)/General/bin
  300.    MANUALSRCLIB = $(TESTSRC)/Manual/lib
  301.    MANUALSRCBIN = $(TESTSRC)/Manual/bin
  302.      AUTOSRCLIB = $(TESTSRC)/Auto/lib
  303.      AUTOSRCBIN = $(TESTSRC)/Auto/bin
  304.        COMMONPP = $(GENERALSRCBIN)/Commonpp
  305.          GENRUN = $(GENERALSRCBIN)/Genrun
  306.  
  307.      TESTCOMSRC = $(MANUALSRCLIB)/Common
  308.  
  309.     MTOOLKITSRC = $(TOOLKITSRC)
  310.     MINCLUDESRC = $(MTOP)/X11
  311.         MLIBSRC = $(MTOP)/lib
  312.      MCLIENTSRC = $(MTOP)/clients
  313.        MDEMOSRC = $(MTOP)/demos
  314.      MWIDGETSRC = $(MLIBSRC)/Xm
  315.    MRESOURCESRC = $(MLIBSRC)/Mrm
  316.          UILSRC = $(MCLIENTSRC)/uil
  317.  
  318.             UIL = $(UILSRC)/uil
  319.          DEPUIL = $(UILSRC)/uil
  320.  
  321.        DEPXMLIB = $(MWIDGETSRC)/libXm.a
  322.           XMLIB =  $(DEPXMLIB)
  323.  
  324.    XMEXTRA_LIBS =
  325.  
  326. DEPMRESOURCELIB = $(MRESOURCESRC)/libMrm.a
  327.    MRESOURCELIB =  $(DEPMRESOURCELIB)
  328.  
  329.       DEPUILLIB = $(UILSRC)/libUil.a
  330.          UILLIB = $(UILSRC)/libUil.a
  331.  
  332.      TESTCOMLIB = $(TESTCOMSRC)/libCommon.a
  333.  
  334.   LINTMRESOURCE = $(MRESOURCESRC)/libMrm.a
  335. LINTXMWIDGETLIB = $(MWIDGETSRC)/llib-l/Xm.ln
  336.      LINTXMTOOL = $(MTOOLKITSRC)/llib-lXt.ln
  337.      LINTUILLIB = $(UILSRC)/llib-lUil.ln
  338.  
  339.       YACCFLAGS =
  340.  
  341.          RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut  *.Dat
  342.  
  343.     STD_DEFINES =  -DSTRINGS_ALIGNED -DNO_REGEX -DNO_ISDIR -DUSE_RE_COMP -DNO_REGCOMP -DUSE_GETWD -DNO_MEMMOVE -DNO_ALLOCA -DBOGUS_MB_MAX -DNO_CONST
  344.  
  345.         DEPLIBS = $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB)
  346.  
  347.         DEPLIBS1 = $(DEPLIBS)
  348.         DEPLIBS2 = $(DEPLIBS)
  349.         DEPLIBS3 = $(DEPLIBS)
  350.  
  351. # -------------------------------------------------------------------------
  352. # Imake rules for building libraries, programs, scripts, and data files
  353. # rules:  $XConsortium: Imake.rules,v 1.123 91/09/16 20:12:16 rws Exp $
  354.  
  355. #
  356. # (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  357. # ALL RIGHTS RESERVED
  358. #
  359. #
  360. # Motif Release 1.2
  361. #
  362. #   $RCSfile: Motif.rules,v $ $Revision: 1.5.2.2 $ $Date: 1992/04/03 15:41:20 $
  363.  
  364. # -------------------------------------------------------------------------
  365. # start of Imakefile
  366.  
  367. #
  368. # example programs Imakefile
  369. #
  370. #
  371.  
  372. SRCS1=    xbitmap1.c BitmapEdit.c
  373. OBJS1=    xbitmap1.o BitmapEdit.o
  374.  
  375. SRCS2=    xbitmap2.c BitmapEdit.c
  376. OBJS2=    xbitmap2.o BitmapEdit.o
  377.  
  378. SRCS3=    xbitmap3.c BitmapEdit.c
  379. OBJS3=    xbitmap3.o BitmapEdit.o
  380.  
  381. SRCS4=    xbitmap4.c BitmapEdit.c
  382. OBJS4=    xbitmap4.o BitmapEdit.o
  383.  
  384. SRCS5=    xbitmap5.c BitmapEdit.c
  385. OBJS5=    xbitmap5.o BitmapEdit.o
  386.  
  387. PROGRAMS = xbitmap1 xbitmap2 xbitmap3 xbitmap4 xbitmap5
  388. all::  $(PROGRAMS)
  389.  
  390. LOCAL_LIBRARIES = -lXm $(XTOOLLIB) $(XLIB)
  391.  
  392. xbitmap1: $(OBJS1)
  393.     $(RM) $@
  394.     $(CC) -o $@ $(OBJS1) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS)  $(EXTRA_LOAD_FLAGS)
  395.  
  396. clean::
  397.     $(RM) xbitmap1
  398.  
  399. xbitmap2: $(OBJS2)
  400.     $(RM) $@
  401.     $(CC) -o $@ $(OBJS2) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS)  $(EXTRA_LOAD_FLAGS)
  402.  
  403. clean::
  404.     $(RM) xbitmap2
  405.  
  406. xbitmap3: $(OBJS3)
  407.     $(RM) $@
  408.     $(CC) -o $@ $(OBJS3) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS)  $(EXTRA_LOAD_FLAGS)
  409.  
  410. clean::
  411.     $(RM) xbitmap3
  412.  
  413. xbitmap4: $(OBJS4)
  414.     $(RM) $@
  415.     $(CC) -o $@ $(OBJS4) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS)  $(EXTRA_LOAD_FLAGS)
  416.  
  417. clean::
  418.     $(RM) xbitmap4
  419.  
  420. xbitmap5: $(OBJS5)
  421.     $(RM) $@
  422.     $(CC) -o $@ $(OBJS5) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS)  $(EXTRA_LOAD_FLAGS)
  423.  
  424. clean::
  425.     $(RM) xbitmap5
  426.  
  427. # -------------------------------------------------------------------------
  428. # common rules for all Makefiles - do not edit
  429.  
  430. emptyrule::
  431.  
  432. clean::
  433.     $(RM_CMD) "#"*
  434.  
  435. Makefile::
  436.     -@if [ -f Makefile ]; then set -x; \
  437.     $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  438.     else exit 0; fi
  439.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  440.  
  441. tags::
  442.     $(TAGS) -w *.[ch]
  443.     $(TAGS) -xw *.[ch] > TAGS
  444.  
  445. saber:
  446.     # load $(ALLDEFINES) $(SRCS)
  447.  
  448. osaber:
  449.     # load $(ALLDEFINES) $(OBJS)
  450.  
  451. # -------------------------------------------------------------------------
  452. # empty rules for directories that do not have SUBDIRS - do not edit
  453.  
  454. install::
  455.     @echo "install in $(CURRENT_DIR) done"
  456.  
  457. install.man::
  458.     @echo "install.man in $(CURRENT_DIR) done"
  459.  
  460. Makefiles::
  461.  
  462. includes::
  463.  
  464. # -------------------------------------------------------------------------
  465. # dependencies generated by makedepend
  466.  
  467.