home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / gui / x / xfig.lha / src / x11 / Makefile3 < prev    next >
Encoding:
Text File  |  1993-07-26  |  13.3 KB  |  427 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 </tmp/IIf.a12617>
  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 4.1.2
  34.  
  35. # $XConsortium: sunLib.rules,v 1.7 91/12/20 11:19:47 rws Exp $
  36.  
  37. # -------------------------------------------------------------------------
  38. # site-specific configuration parameters that go after
  39. # the platform-specific parameters - edit site.def to change
  40.  
  41. # site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
  42.  
  43.             SHELL = /bin/sh
  44.  
  45.               TOP = .
  46.       CURRENT_DIR = .
  47.  
  48.                AR = ar clq
  49.   BOOTSTRAPCFLAGS =
  50.                CC = cc
  51.                AS = as
  52.  
  53.          COMPRESS = compress
  54.               CPP = /lib/cpp $(STD_CPP_DEFINES)
  55.     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  56.           INSTALL = install
  57.                LD = ld
  58.              LINT = lint
  59.       LINTLIBFLAG = -C
  60.          LINTOPTS = -axz
  61.                LN = ln -s
  62.              MAKE = make
  63.                MV = mv
  64.                CP = cp
  65.  
  66.            RANLIB = ranlib
  67.   RANLIBINSTFLAGS =
  68.  
  69.                RM = rm -f
  70.             TROFF = psroff
  71.          MSMACROS = -ms
  72.               TBL = tbl
  73.               EQN = eqn
  74.      STD_INCLUDES =
  75.   STD_CPP_DEFINES =
  76.       STD_DEFINES =
  77.  EXTRA_LOAD_FLAGS =
  78.   EXTRA_LIBRARIES =
  79.              TAGS = ctags
  80.  
  81.     SHAREDCODEDEF = -DSHAREDCODE
  82.          SHLIBDEF = -DSUNSHLIB
  83.  
  84.     PROTO_DEFINES =
  85.  
  86.      INSTPGMFLAGS =
  87.  
  88.      INSTBINFLAGS = -m 0755
  89.      INSTUIDFLAGS = -m 4755
  90.      INSTLIBFLAGS = -m 0644
  91.      INSTINCFLAGS = -m 0444
  92.      INSTMANFLAGS = -m 0444
  93.      INSTDATFLAGS = -m 0444
  94.     INSTKMEMFLAGS = -g kmem -m 2755
  95.  
  96.       CDEBUGFLAGS = -O
  97.         CCOPTIONS =
  98.  
  99.       ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
  100.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
  101.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  102.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  103.  
  104.            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  105.  
  106.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS)
  107.  
  108.    LDCOMBINEFLAGS = -X -r
  109.       DEPENDFLAGS =
  110.  
  111.         MACROFILE = sun.cf
  112.            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  113.  
  114.     IMAKE_DEFINES =
  115.  
  116.          IRULESRC = $(CONFIGDIR)
  117.         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  118.  
  119.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  120.             $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  121.             $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  122.  
  123. # -------------------------------------------------------------------------
  124. # X Window System Build Parameters
  125. # $XConsortium: Project.tmpl,v 1.138 91/09/10 09:02:12 rws Exp $
  126.  
  127. # -------------------------------------------------------------------------
  128. # X Window System make variables; this need to be coordinated with rules
  129.  
  130.           PATHSEP = /
  131.         USRLIBDIR = /usr/lib
  132.            BINDIR = /usr/bin/X11
  133.           INCROOT = /usr/include
  134.      BUILDINCROOT = $(TOP)
  135.       BUILDINCDIR = $(BUILDINCROOT)/X11
  136.       BUILDINCTOP = ..
  137.            INCDIR = $(INCROOT)/X11
  138.            ADMDIR = /usr/adm
  139.            LIBDIR = $(USRLIBDIR)/X11
  140.         CONFIGDIR = $(LIBDIR)/config
  141.        LINTLIBDIR = $(USRLIBDIR)/lint
  142.  
  143.           FONTDIR = $(LIBDIR)/fonts
  144.          XINITDIR = $(LIBDIR)/xinit
  145.            XDMDIR = $(LIBDIR)/xdm
  146.            TWMDIR = $(LIBDIR)/twm
  147.           MANPATH = /usr/man
  148.     MANSOURCEPATH = $(MANPATH)/man
  149.         MANSUFFIX = l
  150.      LIBMANSUFFIX = 3
  151.            MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
  152.         LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
  153.            NLSDIR = $(LIBDIR)/nls
  154.         PEXAPIDIR = $(LIBDIR)/PEX
  155.       XAPPLOADDIR = $(LIBDIR)/app-defaults
  156.        FONTCFLAGS = -t
  157.  
  158.      INSTAPPFLAGS = $(INSTDATFLAGS)
  159.  
  160.             IMAKE = imake
  161.            DEPEND = makedepend
  162.               RGB = rgb
  163.  
  164.             FONTC = bdftopcf
  165.  
  166.         MKFONTDIR = mkfontdir
  167.         MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier
  168.  
  169.         CONFIGSRC = $(TOP)/config
  170.        DOCUTILSRC = $(TOP)/doc/util
  171.         CLIENTSRC = $(TOP)/clients
  172.           DEMOSRC = $(TOP)/demos
  173.            LIBSRC = $(TOP)/lib
  174.           FONTSRC = $(TOP)/fonts
  175.        INCLUDESRC = $(TOP)/X11
  176.         SERVERSRC = $(TOP)/server
  177.           UTILSRC = $(TOP)/util
  178.         SCRIPTSRC = $(UTILSRC)/scripts
  179.        EXAMPLESRC = $(TOP)/examples
  180.        CONTRIBSRC = $(TOP)/../contrib
  181.            DOCSRC = $(TOP)/doc
  182.            RGBSRC = $(TOP)/rgb
  183.         DEPENDSRC = $(UTILSRC)/makedepend
  184.          IMAKESRC = $(CONFIGSRC)
  185.          XAUTHSRC = $(LIBSRC)/Xau
  186.           XLIBSRC = $(LIBSRC)/X
  187.            XMUSRC = $(LIBSRC)/Xmu
  188.        TOOLKITSRC = $(LIBSRC)/Xt
  189.        AWIDGETSRC = $(LIBSRC)/Xaw
  190.        OLDXLIBSRC = $(LIBSRC)/oldX
  191.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  192.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  193.       BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
  194.       BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
  195.      MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
  196.          FSLIBSRC = $(FONTSRC)/lib/fs
  197.     FONTSERVERSRC = $(FONTSRC)/server
  198.      EXTENSIONSRC = $(TOP)/extensions
  199.          XILIBSRC = $(EXTENSIONSRC)/lib/xinput
  200.       PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
  201.  
  202. # $XConsortium: sunLib.tmpl,v 1.14.1.1 92/03/17 14:58:46 rws Exp $
  203.  
  204. SHLIBLDFLAGS = -assert pure-text
  205. PICFLAGS = -pic
  206.  
  207.   DEPEXTENSIONLIB =
  208.      EXTENSIONLIB = -lXext
  209.  
  210.           DEPXLIB = $(DEPEXTENSIONLIB)
  211.              XLIB = $(EXTENSIONLIB) -lX11
  212.  
  213.         DEPXMULIB = $(USRLIBDIR)/libXmu.sa.$(SOXMUREV)
  214.        XMULIBONLY = -lXmu
  215.            XMULIB = -lXmu
  216.  
  217.        DEPOLDXLIB =
  218.           OLDXLIB = -loldX
  219.  
  220.       DEPXTOOLLIB = $(USRLIBDIR)/libXt.sa.$(SOXTREV)
  221.          XTOOLLIB = -lXt
  222.  
  223.         DEPXAWLIB = $(USRLIBDIR)/libXaw.sa.$(SOXAWREV)
  224.            XAWLIB = -lXaw
  225.  
  226.         DEPXILIB =
  227.            XILIB = -lXi
  228.  
  229.         SOXLIBREV = 4.10
  230.           SOXTREV = 4.10
  231.          SOXAWREV = 5.0
  232.         SOOLDXREV = 4.10
  233.          SOXMUREV = 4.10
  234.         SOXEXTREV = 4.10
  235.       SOXINPUTREV = 4.10
  236.  
  237.       DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
  238.          XAUTHLIB =  -lXau
  239.       DEPXDMCPLIB = $(USRLIBDIR)/libXdmcp.a
  240.          XDMCPLIB =  -lXdmcp
  241.  
  242.         DEPPHIGSLIB = $(USRLIBDIR)/libphigs.a
  243.            PHIGSLIB =  -lphigs
  244.  
  245.        DEPXBSDLIB = $(USRLIBDIR)/libXbsd.a
  246.           XBSDLIB =  -lXbsd
  247.  
  248.  LINTEXTENSIONLIB = $(LINTLIBDIR)/llib-lXext.ln
  249.          LINTXLIB = $(LINTLIBDIR)/llib-lX11.ln
  250.           LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln
  251.         LINTXTOOL = $(LINTLIBDIR)/llib-lXt.ln
  252.           LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln
  253.            LINTXI = $(LINTLIBDIR)/llib-lXi.ln
  254.         LINTPHIGS = $(LINTLIBDIR)/llib-lphigs.ln
  255.  
  256.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  257.  
  258.          DEPLIBS1 = $(DEPLIBS)
  259.          DEPLIBS2 = $(DEPLIBS)
  260.          DEPLIBS3 = $(DEPLIBS)
  261.  
  262. # -------------------------------------------------------------------------
  263. # Imake rules for building libraries, programs, scripts, and data files
  264. # rules:  $XConsortium: Imake.rules,v 1.123 91/09/16 20:12:16 rws Exp $
  265.  
  266. # -------------------------------------------------------------------------
  267. # start of Imakefile
  268.  
  269. # Uncomment the following if needed for DECstations running older X11R4
  270. #INCROOT=/usr/include/mit
  271.  
  272. SYS_LIBRARIES=         -lm
  273. DEPLIBS =         $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  274. # use the following if NOT using DPS
  275. LOCAL_LIBRARIES =     $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  276. # use the following if using DPS, *** and add -DDPS to the DEFINES line ***
  277. #LOCAL_LIBRARIES =     -ldps $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  278. # use (and change) the following if you want the multi-key data base file
  279. # somewhere other than the standard X11 library directory
  280. #XFIGLIBDIR =        /usr/local/lib/X11/xfig
  281. # use this if you want the multi-key data base file in the standard X11 tree
  282. XFIGLIBDIR =        $(LIBDIR)/xfig
  283. DIR_DEFS=        -DXFIGLIBDIR=\"$(XFIGLIBDIR)\"
  284.  
  285. # remove -DGSBIT from the DEFINES if you DON'T want to have gs (ghostscript)
  286. # generate a preview bitmap.  If you do use ghostscript you will need
  287. # version 2.4 or later.
  288. DEFINES =             $(STRSTRDEFINES) -DGSBIT
  289.  
  290. XFIGSRC =    d_arc.c d_arcbox.c d_box.c d_ellipse.c d_epsobj.c \
  291.         d_intspline.c d_line.c d_regpoly.c d_spline.c d_text.c \
  292.         e_addpt.c e_align.c e_arrow.c e_break.c \
  293.         e_convert.c e_copy.c e_delete.c e_deletept.c \
  294.         e_edit.c e_flip.c e_glue.c e_move.c \
  295.         e_movept.c e_rotate.c e_scale.c e_update.c \
  296.         f_load.c f_read.c f_epsobj.c \
  297.         f_readold.c f_save.c f_util.c f_xbitmap.c \
  298.         main.c mode.c object.c resources.c \
  299.         u_bound.c u_create.c u_drag.c u_draw.c \
  300.         u_elastic.c u_error.c u_fonts.c u_free.c u_geom.c \
  301.         u_list.c u_markers.c u_pan.c u_print.c \
  302.         u_redraw.c u_search.c u_translate.c u_undo.c \
  303.         w_canvas.c w_cmdpanel.c w_cursor.c w_dir.c w_drawprim.c \
  304.         w_export.c w_file.c w_fontbits.c w_fontpanel.c w_grid.c \
  305.         w_icons.c w_indpanel.c w_modepanel.c w_mousefun.c w_msgpanel.c \
  306.         w_print.c w_rottext.c w_rulers.c w_setup.c w_util.c w_zoom.c
  307.  
  308. XFIGOBJ =    d_arc.o d_arcbox.o d_box.o d_ellipse.o d_epsobj.o \
  309.         d_intspline.o d_line.o d_regpoly.o d_spline.o d_text.o \
  310.         e_addpt.o e_align.o e_arrow.o e_break.o \
  311.         e_convert.o e_copy.o e_delete.o e_deletept.o \
  312.         e_edit.o e_flip.o e_glue.o e_move.o \
  313.         e_movept.o e_rotate.o e_scale.o e_update.o \
  314.         f_load.o f_read.o f_epsobj.o \
  315.         f_readold.o f_save.o f_util.o f_xbitmap.o \
  316.         main.o mode.o object.o resources.o \
  317.         u_bound.o u_create.o u_drag.o u_draw.o \
  318.         u_elastic.o u_error.o u_fonts.o u_free.o u_geom.o \
  319.         u_list.o u_markers.o u_pan.o u_print.o \
  320.         u_redraw.o u_search.o u_translate.o u_undo.o \
  321.         w_canvas.o w_cmdpanel.o w_cursor.o w_dir.o w_drawprim.o \
  322.         w_export.o w_file.o w_fontbits.o w_fontpanel.o w_grid.o \
  323.         w_icons.o w_indpanel.o w_modepanel.o w_mousefun.o w_msgpanel.o \
  324.         w_print.o w_rottext.o w_rulers.o w_setup.o w_util.o w_zoom.o
  325.  
  326. SRCS = $(XFIGSRC)
  327. OBJS = $(XFIGOBJ)
  328.  
  329.  PROGRAM = xfig
  330.  
  331. all:: xfig
  332.  
  333. xfig: $(OBJS) $(DEPLIBS)
  334.     $(RM) $@
  335.     $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  336.  
  337. saber_xfig:: $(SRCS)
  338.     # load $(ALLDEFINES) $(SRCS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  339.  
  340. osaber_xfig:: $(OBJS)
  341.     # load $(ALLDEFINES) $(OBJS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  342.  
  343. install:: xfig
  344.     @if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
  345.     else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
  346.     $(INSTALL) -c $(INSTPGMFLAGS)  xfig $(DESTDIR)$(BINDIR)
  347.  
  348. install.man:: Doc/xfig.man
  349.     @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
  350.     else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
  351.     $(INSTALL) -c $(INSTMANFLAGS) Doc/xfig.man $(DESTDIR)$(MANDIR)/xfig.$(MANSUFFIX)
  352.  
  353. depend::
  354.     $(DEPEND) $(DEPENDFLAGS) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  355.  
  356. lint:
  357.     $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  358. lint1:
  359.     $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  360.  
  361. clean::
  362.     $(RM) $(PROGRAM)
  363.  
  364. install::
  365.     @case '${MFLAGS}' in *[i]*) set +e;; esac;
  366.     @for i in $(XFIGLIBDIR); do if [ -d $(DESTDIR)$$i ]; then \
  367.     set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i); fi \
  368.     done
  369.  
  370. install:: CompKeyDB
  371.     $(INSTALL) -c $(INSTDATFLAGS) CompKeyDB $(DESTDIR)$(XFIGLIBDIR)
  372.  
  373. install:: Fig.ad
  374.     @if [ -d $(DESTDIR)$(XAPPLOADDIR) ]; then set +x; \
  375.     else (set -x; $(MKDIRHIER) $(DESTDIR)$(XAPPLOADDIR)); fi
  376.     $(INSTALL) -c $(INSTAPPFLAGS) Fig.ad $(DESTDIR)$(XAPPLOADDIR)/Fig
  377.  
  378. install:: Fig-color.ad
  379.     @if [ -d $(DESTDIR)$(XAPPLOADDIR) ]; then set +x; \
  380.     else (set -x; $(MKDIRHIER) $(DESTDIR)$(XAPPLOADDIR)); fi
  381.     $(INSTALL) -c $(INSTAPPFLAGS) Fig-color.ad $(DESTDIR)$(XAPPLOADDIR)/Fig-color
  382.  
  383. w_canvas.o:  $(ICONFIGFILES)
  384.     $(RM) $@
  385.     $(CC) -c $(CFLAGS)  $(DIR_DEFS) $*.c
  386.  
  387. # -------------------------------------------------------------------------
  388. # common rules for all Makefiles - do not edit
  389.  
  390. emptyrule::
  391.  
  392. clean::
  393.     $(RM_CMD) "#"*
  394.  
  395. Makefile::
  396.     -@if [ -f Makefile ]; then set -x; \
  397.     $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  398.     else exit 0; fi
  399.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  400.  
  401. tags::
  402.     $(TAGS) -w *.[ch]
  403.     $(TAGS) -xw *.[ch] > TAGS
  404.  
  405. saber:
  406.     # load $(ALLDEFINES) $(SRCS)
  407.  
  408. osaber:
  409.     # load $(ALLDEFINES) $(OBJS)
  410.  
  411. # -------------------------------------------------------------------------
  412. # empty rules for directories that do not have SUBDIRS - do not edit
  413.  
  414. install::
  415.     @echo "install in $(CURRENT_DIR) done"
  416.  
  417. install.man::
  418.     @echo "install.man in $(CURRENT_DIR) done"
  419.  
  420. Makefiles::
  421.  
  422. includes::
  423.  
  424. # -------------------------------------------------------------------------
  425. # dependencies generated by makedepend
  426.  
  427.