home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume4 / xmtool / part02 / Makefile < prev    next >
Encoding:
Makefile  |  1989-06-29  |  6.4 KB  |  209 lines

  1. # operating system:   SunOS 3.5
  2.  
  3. BOOTSTRAPCFLAGS =
  4.              AS = as
  5.              CC = cc
  6.             CPP = /lib/cpp
  7.              LD = ld
  8.            LINT = lint
  9.         INSTALL = install
  10.            TAGS = ctags
  11.              RM = rm -f
  12.              MV = mv
  13.              LN = ln -s
  14.          RANLIB = ranlib
  15. RANLIBINSTFLAGS = -t
  16.              AR = ar clq
  17.              LS = ls
  18.        LINTOPTS = -axz
  19.     LINTLIBFLAG = -C
  20.            MAKE = make
  21. STD_CPP_DEFINES =
  22.     STD_DEFINES = 
  23.  
  24. ###########################################################################
  25. # site-specific configuration parameters - edit site.def to change
  26. ###########################################################################
  27. # definitions common to all Makefiles - do not edit
  28.  
  29.           SHELL =  /bin/sh
  30.  
  31.         DESTDIR =
  32.       USRLIBDIR = $(DESTDIR)/usr/lib
  33.          BINDIR = $(DESTDIR)/usr/bin/X11
  34.          INCDIR = $(DESTDIR)/usr/include/X11
  35.          ADMDIR = $(DESTDIR)/usr/adm
  36.          LIBDIR = $(USRLIBDIR)/X11
  37.      LINTLIBDIR = $(USRLIBDIR)/lint
  38.         FONTDIR = $(LIBDIR)/fonts
  39.        XINITDIR = $(LIBDIR)/xinit
  40.          XDMDIR = $(LIBDIR)/xdm
  41.          UWMDIR = $(LIBDIR)/uwm
  42.          AWMDIR = $(LIBDIR)/awm
  43.          TWMDIR = $(LIBDIR)/twm
  44.         MANPATH = $(DESTDIR)/usr/man
  45.   MANSOURCEPATH = $(MANPATH)/man
  46.          MANDIR = $(MANSOURCEPATH)n
  47.       LIBMANDIR = $(MANSOURCEPATH)3
  48.     XAPPLOADDIR = $(LIBDIR)/app-defaults
  49.  
  50.    INSTBINFLAGS = -m 0755
  51.    INSTUIDFLAGS = -m 4755
  52.    INSTLIBFLAGS = -m 0664
  53.    INSTINCFLAGS = -m 0444
  54.    INSTMANFLAGS = -m 0444
  55.    INSTAPPFLAGS = -m 0444
  56.   INSTKMEMFLAGS = -m 4755
  57.         FCFLAGS = -t
  58.            DEFS = -DNOSCCS
  59.     CDEBUGFLAGS = -O $(DEFS)
  60.  
  61.         PATHSEP = /
  62.          DEPEND = $(DEPENDSRC)/makedepend
  63.           IMAKE = $(IMAKESRC)/imake
  64.             RGB = $(RGBSRC)/rgb
  65.              FC = $(BDFTOSNFSRC)/bdftosnf
  66.       MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
  67.       MKDIRHIER = $(SCRIPTSSRC)/mkdirhier.sh
  68.  
  69.          CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(STD_DEFINES) $(DEFINES)
  70.       LINTFLAGS = $(LINTOPTS) $(INCLUDES) $(STD_DEFINES) $(DEFINES) -DLINT
  71.         LDFLAGS = $(CDEBUGFLAGS) $(SYS_LIBRARIES) $(SYSAUX_LIBRARIES)
  72.             TOP = /usr/src/X11/X11R3
  73.       CLIENTSRC = $(TOP)/clients
  74.         DEMOSRC = $(TOP)/demos
  75.          LIBSRC = $(TOP)/lib
  76.         FONTSRC = $(TOP)/fonts
  77.      INCLUDESRC = $(TOP)/X11
  78.       SERVERSRC = $(TOP)/server
  79.         UTILSRC = $(TOP)/util
  80.      SCRIPTSSRC = $(UTILSRC)/scripts
  81.      EXAMPLESRC = $(TOP)/examples
  82.      CONTRIBSRC = $(TOP)/contrib
  83.          DOCSRC = $(TOP)/doc
  84.          RGBSRC = $(TOP)/rgb
  85.       DEPENDSRC = $(UTILSRC)/makedepend
  86.        IMAKESRC = $(UTILSRC)/imake
  87.        IRULESRC = $(UTILSRC)/imake.includes
  88.         XLIBSRC = $(LIBSRC)
  89.          XMUSRC = $(LIBSRC)
  90.      TOOLKITSRC = $(LIBSRC)
  91.      AWIDGETSRC = $(LIBSRC)
  92.      OLDXLIBSRC = $(LIBSRC)/oldX
  93.     BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  94.    MKFONTDIRSRC = $(FONTSRC)/mkfontdir
  95.    EXTENSIONSRC = $(TOP)/extensions
  96.    EXTENSIONLIB = $(EXTENSIONSRC)/lib/libXext.a
  97.            XLIB = $(XLIBSRC)/libX11.a
  98.          XMULIB = $(XMUSRC)/libXmu.a
  99.         OLDXLIB = $(OLDXLIBSRC)/liboldX.a
  100.        XTOOLLIB = $(TOOLKITSRC)/libXt.a
  101.          XAWLIB = $(AWIDGETSRC)/libXaw.a
  102.        LINTXLIB = $(XLIBSRC)/llib-lX11.ln
  103.         LINTXMU = $(XMUSRC)/llib-lXmu.ln
  104.       LINTXTOOL = $(TOOLKITSRC)/llib-lXt.ln
  105.         LINTXAW = $(AWIDGETSRC)/llib-lXaw.ln
  106.        INCLUDES = -I$(TOP)
  107.       MACROFILE = Sun.macros
  108.    ICONFIGFILES = $(IRULESRC)/Imake.tmpl \
  109.             $(IRULESRC)/$(MACROFILE) $(IRULESRC)/site.def
  110.   IMAKE_DEFINES =
  111.       IMAKE_CMD = $(NEWTOP)$(IMAKE) -TImake.tmpl -I$(NEWTOP)$(IRULESRC) \
  112.             -s Makefile $(IMAKE_DEFINES)
  113.          RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a \
  114.             .emacs_* tags TAGS make.log MakeOut
  115.  
  116. ###########################################################################
  117. # rules: 
  118. ###########################################################################
  119.  
  120.        INCLUDES = -I$(TOP)
  121.            SRCS = xmtool.c
  122. LOCAL_LIBRARIES = -lXaw -lXmu -lXt -lX
  123.  
  124. all: xmtool
  125.  
  126. xmtool: xmtool.o
  127.     $(CC) -o $@ xmtool.o $(LOCAL_LIBRARIES) $(LDFLAGS) -lm $(SYSLAST_LIBRARIES)
  128.  
  129. relink::
  130.     $(RM) xmtool
  131.     $(MAKE) $(MFLAGS) xmtool
  132.  
  133. clean::
  134.     $(RM) xmtool
  135.  
  136. depend:: $(DEPEND)
  137.  
  138. depend::
  139.     $(DEPEND) -s "# DO NOT DELETE" -- $(CFLAGS) -- $(SRCS)
  140.  
  141. $(DEPEND):
  142.     @echo "making $@"; \
  143.     cd $(DEPENDSRC); $(MAKE)
  144.  
  145. ###########################################################################
  146. # Imake.tmpl common rules for all Makefiles - do not edit
  147.  
  148. emptyrule::
  149.  
  150. clean::
  151.     $(RM_CMD) \#*
  152.  
  153. Makefile:: $(IMAKE)
  154.  
  155. Makefile:: Imakefile \
  156.     $(IRULESRC)/Imake.tmpl \
  157.     $(IRULESRC)/Imake.rules \
  158.     $(IRULESRC)/site.def \
  159.     $(IRULESRC)/$(MACROFILE)
  160.     -@if [ -f Makefile ]; then \
  161.     echo "$(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
  162.     $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  163.     else exit 0; fi
  164.     $(IMAKE_CMD) -DTOPDIR=$(TOP)
  165.  
  166. $(IMAKE):
  167.     @echo "making $@"; \
  168.     cd $(IMAKESRC); $(MAKE) BOOTSTRAPCFLAGS=$(BOOTSTRAPCFLAGS)
  169.  
  170. tags::
  171.     $(TAGS) -w *.[ch]
  172.     $(TAGS) -xw *.[ch] > TAGS
  173.  
  174. ###########################################################################
  175. # empty rules for directories that do not have SUBDIRS - do not edit
  176.  
  177. install::
  178.     @echo "install done"
  179.  
  180. install.man::
  181.     @echo "install.man done"
  182.  
  183. Makefiles::
  184.  
  185. ###########################################################################
  186. # dependencies generated by makedepend
  187.  
  188. # DO NOT DELETE
  189.  
  190. xmtool.o: /usr/include/stdio.h /usr/include/X11/Xatom.h
  191. xmtool.o: /usr/include/X11/Intrinsic.h /usr/include/X11/Xlib.h
  192. xmtool.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
  193. xmtool.o: /usr/include/X11/X.h /usr/include/X11/Xutil.h
  194. xmtool.o: /usr/include/X11/Xresource.h /usr/include/X11/Xos.h
  195. xmtool.o: /usr/include/strings.h /usr/include/sys/file.h
  196. xmtool.o: /usr/include/sys/fcntl.h /usr/include/sys/time.h
  197. xmtool.o: /usr/include/sys/time.h /usr/include/X11/Core.h
  198. xmtool.o: /usr/include/X11/Composite.h /usr/include/X11/Constraint.h
  199. xmtool.o: /usr/include/X11/StringDefs.h /usr/include/X11/Box.h
  200. xmtool.o: /usr/include/X11/Clock.h /usr/include/X11/Xmu.h
  201. xmtool.o: /usr/include/X11/Command.h /usr/include/X11/Label.h
  202. xmtool.o: /usr/include/X11/Simple.h /usr/include/X11/copyright.h
  203. xmtool.o: /usr/include/X11/Dialog.h /usr/include/X11/Form.h
  204. xmtool.o: /usr/include/X11/Constraint.h /usr/include/X11/Load.h
  205. xmtool.o: /usr/include/X11/Scroll.h /usr/include/X11/AsciiText.h
  206. xmtool.o: /usr/include/X11/Text.h /usr/include/X11/VPaned.h
  207. xmtool.o: /usr/include/X11/Viewport.h /usr/include/X11/Cardinals.h
  208. xmtool.o: /usr/include/errno.h /usr/include/sys/errno.h /usr/include/signal.h
  209.