home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 594a.lha / imake / Makefile.dist < prev    next >
Makefile  |  1990-10-22  |  9KB  |  313 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 <Imakefile>
  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 sony.cf to change
  23.  
  24. # platform:  $XConsortium: sony.cf,v 1.4 89/12/17 17:54:46 rws Exp $
  25. # operating system:             NEWS-OS 3.2
  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.             SHELL =     /bin/sh
  33.  
  34.               TOP = ../.
  35.       CURRENT_DIR = ./config
  36.  
  37.                AR = ar cq
  38.   BOOTSTRAPCFLAGS =
  39.                CC = cc
  40.  
  41.          COMPRESS = compress
  42.               CPP = /lib/cpp $(STD_CPP_DEFINES)
  43.     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  44.           INSTALL = install
  45.                LD = ld
  46.              LINT = lint
  47.       LINTLIBFLAG = -C
  48.          LINTOPTS = -axz
  49.                LN = ln -s
  50.              MAKE = make
  51.                MV = mv
  52.                CP = cp
  53.            RANLIB = ranlib
  54.   RANLIBINSTFLAGS =
  55.                RM = rm -f
  56.      STD_INCLUDES =
  57.   STD_CPP_DEFINES =
  58.       STD_DEFINES =
  59.  EXTRA_LOAD_FLAGS =
  60.   EXTRA_LIBRARIES =
  61.              TAGS = ctags
  62.  
  63.    SIGNAL_DEFINES = -DSIGNALRETURNSINT
  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 =
  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 = sony.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 = $(DESTDIR)/usr/bin/X11
  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 = $(LIBDIR)/app-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. DEPLIBS =
  216. HEADERS = imakemdep.h
  217. CFFILES = $(HEADERS) Imake.rules Imake.tmpl Project.tmpl site.def *.bac *.cf
  218. DEFINES = $(SIGNAL_DEFINES)
  219.  
  220.            OBJS = imake.o
  221.            SRCS = imake.c
  222.  
  223.         PROGRAM = imake
  224.  
  225. all:: imake
  226.  
  227. imake: $(OBJS) $(DEPLIBS)
  228.      $(RM) $@
  229.     $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  230.  
  231. install:: imake
  232.     $(INSTALL) -c $(INSTPGMFLAGS)   imake $(BINDIR)
  233.  
  234. install.man:: imake.man
  235.     $(INSTALL) -c $(INSTMANFLAGS) imake.man $(MANDIR)/imake.n
  236.  
  237. depend:: $(DEPEND)
  238.  
  239. $(DEPEND):
  240.     @echo "checking $@ over in $(DEPENDSRC) first..."; \
  241.     cd $(DEPENDSRC); $(MAKE); \
  242.     echo "okay, continuing in $(CURRENT_DIR)"
  243.  
  244. depend::
  245.     $(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  246.  
  247. lint:
  248.     $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  249. lint1:
  250.     $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  251.  
  252. clean::
  253.     $(RM) $(PROGRAM)
  254.  
  255. includes::
  256.     $(MKDIRHIER) $(BUILDINCDIR)/config
  257.     @(set -x; cd $(BUILDINCDIR)/config; for i in $(HEADERS); do \
  258.         $(RM) $$i; \
  259.         $(LN) $(BUILDINCTOP)/../$(CURRENT_DIR)/$$i .; \
  260.     done)
  261.  
  262. install::
  263.     $(MKDIRHIER) $(CONFIGDIR)
  264.  
  265. install:: $(CFFILES)
  266.     @case '${MFLAGS}' in *[i]*) set +e;; esac; \
  267.     for i in $(CFFILES); do \
  268.         (set -x; $(INSTALL) -c $(INSTDATFLAGS) $$i $(CONFIGDIR)); \
  269.     done
  270.  
  271. depend::
  272.  
  273. clean::
  274.     $(RM) ccimake
  275.  
  276. ###########################################################################
  277. # common rules for all Makefiles - do not edit
  278.  
  279. emptyrule::
  280.  
  281. clean::
  282.     $(RM_CMD) \#*
  283.  
  284. Makefile::  imake
  285.  
  286. Makefile::
  287.     -@if [ -f Makefile ]; then \
  288.         echo "    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
  289.         $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  290.     else exit 0; fi
  291.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  292.  
  293. tags::
  294.     $(TAGS) -w *.[ch]
  295.     $(TAGS) -xw *.[ch] > TAGS
  296.  
  297. ###########################################################################
  298. # empty rules for directories that do not have SUBDIRS - do not edit
  299.  
  300. install::
  301.     @echo "install in $(CURRENT_DIR) done"
  302.  
  303. install.man::
  304.     @echo "install.man in $(CURRENT_DIR) done"
  305.  
  306. Makefiles::
  307.  
  308. includes::
  309.  
  310. ###########################################################################
  311. # dependencies generated by makedepend
  312.  
  313.