home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / x / x11p-13.zip / Makefile < prev    next >
Makefile  |  1991-07-15  |  15KB  |  443 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. ###########################################################################
  5. # Makefile generated from "Imake.tmpl" and </tmp/IIf.a26444>
  6. # $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
  7. #
  8. # Platform-specific parameters may be set in the appropriate .cf
  9. # configuration files.  Site-wide parameters may be set in the file
  10. # site.def.  Full rebuilds are recommended if any parameters are changed.
  11. #
  12. # If your C preprocessor doesn't define any unique symbols, you'll need
  13. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  14. # "make Makefile", "make Makefiles", or "make World").
  15. #
  16. # If you absolutely can't get imake to work, you'll need to set the
  17. # variables at the top of each Makefile as well as the dependencies at the
  18. # bottom (makedepend will do this automatically).
  19. #
  20.  
  21. ###########################################################################
  22. # platform-specific configuration parameters - edit ultrix.cf to change
  23.  
  24. # platform:  $XConsortium: ultrix.cf,v 1.20 89/12/22 15:56:14 rws Exp $
  25. # operating system:             Ultrix-32 4.0
  26.  
  27. ###########################################################################
  28. # site-specific configuration parameters - edit site.def to change
  29.  
  30. # site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $
  31.  
  32. FONTC=    $(FONTSRC)/tools/bdftopcf/bdftopcf
  33.  
  34.             SHELL =     /bin/sh
  35.  
  36.               TOP = ../..
  37.       CURRENT_DIR = .
  38.  
  39.                AR = ar cq
  40.   BOOTSTRAPCFLAGS =
  41.                CC = cc
  42.  
  43.          COMPRESS = compress
  44.               CPP = /lib/cpp $(STD_CPP_DEFINES)
  45.     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  46.           INSTALL = install
  47.                LD = ld
  48.              LINT = lint
  49.       LINTLIBFLAG = -C
  50.          LINTOPTS = -axz
  51.                LN = ln -s
  52.              MAKE = make
  53.                MV = mv
  54.                CP = cp
  55.            RANLIB = ranlib
  56.   RANLIBINSTFLAGS =
  57.                RM = rm -f
  58.      STD_INCLUDES =
  59.   STD_CPP_DEFINES =
  60.       STD_DEFINES = -DUNIX
  61.  EXTRA_LOAD_FLAGS =
  62.   EXTRA_LIBRARIES = -ldnet
  63.              TAGS = ctags
  64.  
  65.     PROTO_DEFINES =
  66.  
  67.      INSTPGMFLAGS =
  68.  
  69.      INSTBINFLAGS = -m 0755
  70.      INSTUIDFLAGS = -m 4755
  71.      INSTLIBFLAGS = -m 0664
  72.      INSTINCFLAGS = -m 0444
  73.      INSTMANFLAGS = -m 0444
  74.      INSTDATFLAGS = -m 0444
  75.     INSTKMEMFLAGS = -m 4755
  76.  
  77.           DESTDIR =
  78.  
  79.      TOP_INCLUDES = -I$(TOP)
  80.  
  81.       CDEBUGFLAGS = -O
  82.         CCOPTIONS = -Wf,-XNh2000 -Olimit 2000
  83.       COMPATFLAGS =
  84.  
  85.       ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
  86.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
  87.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  88.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  89.            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  90.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
  91.    LDCOMBINEFLAGS = -X -r
  92.  
  93.         MACROFILE = ultrix.cf
  94.            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  95.  
  96.     IMAKE_DEFINES =
  97.  
  98.          IRULESRC = $(CONFIGSRC)
  99.         IMAKE_CMD = $(NEWTOP)$(IMAKE) -I$(NEWTOP)$(IRULESRC) $(IMAKE_DEFINES)
  100.  
  101.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  102.             $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  103.             $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  104.  
  105. ###########################################################################
  106. # X Window System Build Parameters
  107. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  108.  
  109. ###########################################################################
  110. # X Window System make variables; this need to be coordinated with rules
  111. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  112.  
  113.           PATHSEP = /
  114.         USRLIBDIR = $(DESTDIR)/usr/lib
  115.            BINDIR = $(TOP)/../bin
  116.           INCROOT = $(DESTDIR)/usr/include
  117.      BUILDINCROOT = $(TOP)
  118.       BUILDINCDIR = $(BUILDINCROOT)/X11
  119.       BUILDINCTOP = ..
  120.            INCDIR = $(INCROOT)/X11
  121.            ADMDIR = $(DESTDIR)/usr/adm
  122.            LIBDIR = $(USRLIBDIR)/X11
  123.         CONFIGDIR = $(LIBDIR)/config
  124.        LINTLIBDIR = $(USRLIBDIR)/lint
  125.  
  126.           FONTDIR = $(LIBDIR)/fonts
  127.          XINITDIR = $(LIBDIR)/xinit
  128.            XDMDIR = $(LIBDIR)/xdm
  129.            AWMDIR = $(LIBDIR)/awm
  130.            TWMDIR = $(LIBDIR)/twm
  131.            GWMDIR = $(LIBDIR)/gwm
  132.           MANPATH = $(DESTDIR)/usr/man
  133.     MANSOURCEPATH = $(MANPATH)/man
  134.            MANDIR = $(MANSOURCEPATH)n
  135.         LIBMANDIR = $(MANSOURCEPATH)3
  136.       XAPPLOADDIR = /wsl/share/lib/X11/r4app-defaults
  137.  
  138.        FONTCFLAGS = -t
  139.  
  140.      INSTAPPFLAGS = $(INSTDATFLAGS)
  141.  
  142.             IMAKE = $(IMAKESRC)/imake
  143.            DEPEND = $(DEPENDSRC)/makedepend
  144.               RGB = $(RGBSRC)/rgb
  145.             FONTC = $(BDFTOSNFSRC)/bdftosnf
  146.         MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
  147.         MKDIRHIER =     /bin/sh $(SCRIPTSRC)/mkdirhier.sh
  148.  
  149.         CONFIGSRC = $(TOP)/config
  150.         CLIENTSRC = $(TOP)/clients
  151.           DEMOSRC = $(TOP)/demos
  152.            LIBSRC = $(TOP)/lib
  153.           FONTSRC = $(TOP)/fonts
  154.        INCLUDESRC = $(TOP)/X11
  155.         SERVERSRC = $(TOP)/server
  156.           UTILSRC = $(TOP)/util
  157.         SCRIPTSRC = $(UTILSRC)/scripts
  158.        EXAMPLESRC = $(TOP)/examples
  159.        CONTRIBSRC = $(TOP)/../contrib
  160.            DOCSRC = $(TOP)/doc
  161.            RGBSRC = $(TOP)/rgb
  162.         DEPENDSRC = $(UTILSRC)/makedepend
  163.          IMAKESRC = $(CONFIGSRC)
  164.          XAUTHSRC = $(LIBSRC)/Xau
  165.           XLIBSRC = $(LIBSRC)/X
  166.            XMUSRC = $(LIBSRC)/Xmu
  167.        TOOLKITSRC = $(LIBSRC)/Xt
  168.        AWIDGETSRC = $(LIBSRC)/Xaw
  169.        OLDXLIBSRC = $(LIBSRC)/oldX
  170.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  171.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  172.      MKFONTDIRSRC = $(FONTSRC)/mkfontdir
  173.      EXTENSIONSRC = $(TOP)/extensions
  174.  
  175.   DEPEXTENSIONLIB =  $(EXTENSIONSRC)/lib/libXext.a
  176.      EXTENSIONLIB =                $(DEPEXTENSIONLIB)
  177.  
  178.           DEPXLIB = $(DEPEXTENSIONLIB)  $(XLIBSRC)/libX11.a
  179.              XLIB = $(EXTENSIONLIB)               $(XLIBSRC)/libX11.a
  180.  
  181.       DEPXAUTHLIB =  $(XAUTHSRC)/libXau.a
  182.          XAUTHLIB =               $(DEPXAUTHLIB)
  183.  
  184.         DEPXMULIB =  $(XMUSRC)/libXmu.a
  185.            XMULIB =               $(DEPXMULIB)
  186.  
  187.        DEPOLDXLIB =  $(OLDXLIBSRC)/liboldX.a
  188.           OLDXLIB =               $(DEPOLDXLIB)
  189.  
  190.       DEPXTOOLLIB =  $(TOOLKITSRC)/libXt.a
  191.          XTOOLLIB =               $(DEPXTOOLLIB)
  192.  
  193.         DEPXAWLIB =  $(AWIDGETSRC)/libXaw.a
  194.            XAWLIB =               $(DEPXAWLIB)
  195.  
  196.  LINTEXTENSIONLIB =  $(EXTENSIONSRC)/lib/llib-lXext.ln
  197.          LINTXLIB =  $(XLIBSRC)/llib-lX11.ln
  198.           LINTXMU =  $(XMUSRC)/llib-lXmu.ln
  199.         LINTXTOOL =  $(TOOLKITSRC)/llib-lXt.ln
  200.           LINTXAW =  $(AWIDGETSRC)/llib-lXaw.ln
  201.  
  202.           DEPLIBS = $(LOCAL_LIBRARIES)
  203.  
  204.          DEPLIBS1 = $(DEPLIBS)
  205.          DEPLIBS2 = $(DEPLIBS)
  206.          DEPLIBS3 = $(DEPLIBS)
  207.  
  208. ###########################################################################
  209. # Imake rules for building libraries, programs, scripts, and data files
  210. # rules:  $XConsortium: Imake.rules,v 1.67 89/12/18 17:14:15 jim Exp $
  211.  
  212. ###########################################################################
  213. # start of Imakefile
  214.  
  215.         PERFLIB = $(LIBDIR)/x11perfcomp
  216.         HELPERS = fillblnk perfboth perfratio
  217.        PROGRAMS = x11perf x11perf_labels x11perfcomp $(HELPERS)
  218.         HEADERS = bitmaps.h x11perf.h
  219.            SRCS = bitmaps.c do_arcs.c do_complex.c do_copyarea.c \
  220.               do_dots.c do_lines.c do_movewin.c do_rects.c \
  221.           do_segs.c do_simple.c do_tests.c do_text.c \
  222.           do_traps.c do_triangles.c do_valgc.c \
  223.           do_windows.c x11perf.c
  224.            OBJS = bitmaps.o do_arcs.o do_complex.o do_copyarea.o \
  225.              do_dots.o do_lines.o do_movewin.o do_rects.o \
  226.           do_segs.o do_simple.o do_tests.o do_text.o \
  227.           do_traps.o do_triangles.o do_valgc.o \
  228.           do_windows.o x11perf.o
  229.  
  230. LOCAL_LIBRARIES =
  231.         DEPLIBS =
  232.   SYS_LIBRARIES = -lXext -lX11 -lm
  233.  
  234. #        DEFINES = -DVERSION1.3 -DMITSHM -DKANJI
  235.         DEFINES = -DVERSION1.3 -DMITSHM
  236.  
  237.         PROGRAM = x11perf
  238.  
  239. all:: x11perf
  240.  
  241. x11perf: $(OBJS) $(DEPLIBS)
  242.      $(RM) $@
  243.     $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  244.  
  245. install:: x11perf
  246.     $(INSTALL) -c $(INSTPGMFLAGS)   x11perf $(BINDIR)
  247.  
  248. install.man:: x11perf.man
  249.     $(INSTALL) -c $(INSTMANFLAGS) x11perf.man $(MANDIR)/x11perf.n
  250.  
  251. depend:: $(DEPEND)
  252.  
  253. $(DEPEND):
  254.     @echo "checking $@ over in $(DEPENDSRC) first..."; \
  255.     cd $(DEPENDSRC); $(MAKE); \
  256.     echo "okay, continuing in $(CURRENT_DIR)"
  257.  
  258. depend::
  259.     $(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  260.  
  261. lint:
  262.     $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  263. lint1:
  264.     $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  265.  
  266. clean::
  267.     $(RM) $(PROGRAM)
  268.  
  269. all:: x11perf_labels x11perfcomp $(HELPERS)
  270.  
  271. install:: $(PERFLIB)
  272.  
  273. x11perfcomp::  x11pcomp.cpp $(ICONFIGFILE)
  274.     $(RM) $@
  275.     $(CPP) -DLIBPATH=$(PERFLIB) <x11pcomp.cpp | \
  276.         sed -e '/^#  *[0-9][0-9]*  *.*$$/d' >$@
  277.     chmod a+x $@
  278.  
  279. fillblnk::  fillblnk.cpp
  280.     $(RM) $@
  281.     $(CPP)   <fillblnk.cpp | \
  282.         sed -e '/^#  *[0-9][0-9]*  *.*$$/d' >$@
  283.     chmod a+x $@
  284.  
  285. perfboth::  perfboth.cpp
  286.     $(RM) $@
  287.     $(CPP)   <perfboth.cpp | \
  288.         sed -e '/^#  *[0-9][0-9]*  *.*$$/d' >$@
  289.     chmod a+x $@
  290.  
  291. perfratio::  perfratio.cpp
  292.     $(RM) $@
  293.     $(CPP)   <perfratio.cpp | \
  294.         sed -e '/^#  *[0-9][0-9]*  *.*$$/d' >$@
  295.     chmod a+x $@
  296.  
  297. install:: x11perfcomp
  298.     $(INSTALL) -c $(INSTPGMFLAGS)   x11perfcomp $(BINDIR)
  299.  
  300. install:: perfboth
  301.     $(INSTALL) -c $(INSTPGMFLAGS)   perfboth $(PERFLIB)
  302.  
  303. install:: perfratio
  304.     $(INSTALL) -c $(INSTPGMFLAGS)   perfratio $(PERFLIB)
  305.  
  306. install:: fillblnk
  307.     $(INSTALL) -c $(INSTPGMFLAGS)   fillblnk $(PERFLIB)
  308.  
  309. install.man:: x11perfcomp.man.man
  310.     $(INSTALL) -c $(INSTMANFLAGS) x11perfcomp.man.man $(MANDIR)/x11perfcomp.man.n
  311.  
  312. x11perf_labels: x11perf
  313.     ./x11perf -labels -all > x11perf_labels
  314.  
  315. # These guys depend upon $DEFINES from Imakefile
  316.  
  317. do_copyarea.o:    Imakefile
  318. do_tests.o:    Imakefile
  319. do_text.o:    Imakefile
  320.  
  321. clean::
  322.     $(RM) $(PROGRAMS)
  323.  
  324. $(PERFLIB):
  325.     $(MKDIRHIER) $(PERFLIB)
  326.  
  327. tarMakefile:
  328.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) -DTAR
  329.  
  330. tar:    $(DEPEND)
  331.     -rm -f x11perf.tar x11perf.tar.Z
  332.     mv Makefile Makefile.bak
  333.     make tarMakefile -f Makefile.bak
  334.     $(DEPEND) -s "# DO NOT DELETE" -- -- $(SRCS)
  335.     tar chf x11perf.tar Imakefile Makefile $(HEADERS) $(SRCS) \
  336.         x11perf_labels *.man *.cpp $(HELPERS) RCS \
  337.         link.com link.options make.com;
  338.     mv Makefile.bak Makefile
  339.     compress x11perf.tar
  340.  
  341. ###########################################################################
  342. # common rules for all Makefiles - do not edit
  343.  
  344. emptyrule::
  345.  
  346. clean::
  347.     $(RM_CMD) \#*
  348.  
  349. Makefile:: $(IMAKE)
  350.  
  351. $(IMAKE):
  352.     @(cd $(IMAKESRC); if [ -f Makefile ]; then \
  353.     echo "checking $@ in $(IMAKESRC) first..."; $(MAKE) all; else \
  354.     echo "bootstrapping $@ from Makefile.ini in $(IMAKESRC) first..."; \
  355.     $(MAKE) -f Makefile.ini BOOTSTRAPCFLAGS=$(BOOTSTRAPCFLAGS); fi; \
  356.     echo "okay, continuing in $(CURRENT_DIR)")
  357.  
  358. Makefile::
  359.     -@if [ -f Makefile ]; then \
  360.         echo "    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
  361.         $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  362.     else exit 0; fi
  363.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  364.  
  365. tags::
  366.     $(TAGS) -w *.[ch]
  367.     $(TAGS) -xw *.[ch] > TAGS
  368.  
  369. ###########################################################################
  370. # empty rules for directories that do not have SUBDIRS - do not edit
  371.  
  372. install::
  373.     @echo "install in $(CURRENT_DIR) done"
  374.  
  375. install.man::
  376.     @echo "install.man in $(CURRENT_DIR) done"
  377.  
  378. Makefiles::
  379.  
  380. includes::
  381.  
  382. ###########################################################################
  383. # dependencies generated by makedepend
  384.  
  385. # DO NOT DELETE
  386.  
  387. bitmaps.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
  388. bitmaps.o: /usr/include/sys/ansi_compat.h /usr/include/X11/X.h
  389. bitmaps.o: /usr/include/X11/Xutil.h bitmaps.h
  390. do_arcs.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
  391. do_arcs.o: /usr/include/sys/ansi_compat.h /usr/include/X11/X.h
  392. do_arcs.o: /usr/include/X11/Xutil.h
  393. do_complex.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
  394. do_complex.o: /usr/include/sys/ansi_compat.h /usr/include/X11/X.h
  395. do_complex.o: /usr/include/X11/Xutil.h
  396. do_copyarea.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
  397. do_copyarea.o: /usr/include/sys/ansi_compat.h /usr/include/X11/X.h
  398. do_copyarea.o: /usr/include/X11/Xutil.h
  399. do_dots.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
  400. do_dots.o: /usr/include/sys/ansi_compat.h /usr/include/X11/X.h
  401. do_dots.o: /usr/include/X11/Xutil.h
  402. do_lines.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
  403. do_lines.o: /usr/include/sys/ansi_compat.h /usr/include/X11/X.h
  404. do_lines.o: /usr/include/X11/Xutil.h
  405. do_movewin.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
  406. do_movewin.o: /usr/include/sys/ansi_compat.h /usr/include/X11/X.h
  407. do_movewin.o: /usr/include/X11/Xutil.h
  408. do_rects.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
  409. do_rects.o: /usr/include/sys/ansi_compat.h /usr/include/X11/X.h
  410. do_rects.o: /usr/include/X11/Xutil.h bitmaps.h
  411. do_segs.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
  412. do_segs.o: /usr/include/sys/ansi_compat.h /usr/include/X11/X.h
  413. do_segs.o: /usr/include/X11/Xutil.h
  414. do_simple.o: /usr/include/X11/Xatom.h x11perf.h /usr/include/X11/Xlib.h
  415. do_simple.o: /usr/include/sys/types.h /usr/include/sys/ansi_compat.h
  416. do_simple.o: /usr/include/X11/X.h /usr/include/X11/Xutil.h
  417. do_tests.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
  418. do_tests.o: /usr/include/sys/ansi_compat.h /usr/include/X11/X.h
  419. do_tests.o: /usr/include/X11/Xutil.h
  420. do_text.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
  421. do_text.o: /usr/include/sys/ansi_compat.h /usr/include/X11/X.h
  422. do_text.o: /usr/include/X11/Xutil.h
  423. do_traps.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
  424. do_traps.o: /usr/include/sys/ansi_compat.h /usr/include/X11/X.h
  425. do_traps.o: /usr/include/X11/Xutil.h bitmaps.h
  426. do_triangles.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
  427. do_triangles.o: /usr/include/sys/ansi_compat.h /usr/include/X11/X.h
  428. do_triangles.o: /usr/include/X11/Xutil.h bitmaps.h /usr/include/stdio.h
  429. do_triangles.o: /usr/include/math.h
  430. do_valgc.o: /usr/include/X11/Xatom.h x11perf.h /usr/include/X11/Xlib.h
  431. do_valgc.o: /usr/include/sys/types.h /usr/include/sys/ansi_compat.h
  432. do_valgc.o: /usr/include/X11/X.h /usr/include/X11/Xutil.h
  433. do_windows.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
  434. do_windows.o: /usr/include/sys/ansi_compat.h /usr/include/X11/X.h
  435. do_windows.o: /usr/include/X11/Xutil.h
  436. x11perf.o: /usr/include/stdio.h /usr/include/sys/ansi_compat.h
  437. x11perf.o: /usr/include/ctype.h /usr/include/signal.h
  438. x11perf.o: /usr/include/X11/Xatom.h /usr/include/X11/Xos.h
  439. x11perf.o: /usr/include/sys/types.h /usr/include/strings.h
  440. x11perf.o: /usr/include/sys/file.h /usr/include/sys/time.h x11perf.h
  441. x11perf.o: /usr/include/X11/Xlib.h /usr/include/X11/X.h
  442. x11perf.o: /usr/include/X11/Xutil.h
  443.