home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume3 / xdvi / part02 / Makefile < prev    next >
Encoding:
Makefile  |  1989-03-07  |  6.9 KB  |  239 lines

  1. # Makefile generated by imake - do not edit!
  2. # $XConsortium: imake.c,v 1.37 88/10/08 20:08:30 jim 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. # X Window System Makefile generated from template file Imake.tmpl
  11. # $XConsortium: Imake.tmpl,v 1.91 88/10/23 22:37:10 jim Exp $
  12. #
  13. # Do not change the body of the imake template file.  Server-specific
  14. # parameters may be set in the appropriate .macros file; site-specific
  15. # parameters (but shared by all servers) may be set in site.def.  If you
  16. # make any changes, you'll need to rebuild the makefiles using
  17. # "make World" (at best) or "make Makefile; make Makefiles" (at least) in
  18. # the top level directory.
  19. #
  20. # If your C preprocessor doesn't define any unique symbols, you'll need
  21. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  22. # "make Makefile", "make Makefiles", or "make World").
  23. #
  24. # If you absolutely can't get imake to work, you'll need to set the
  25. # variables at the top of each Makefile as well as the dependencies at the
  26. # bottom (makedepend will do this automatically).
  27. #
  28.  
  29. ###########################################################################
  30. # platform-specific configuration parameters - edit Sun.macros to change
  31.  
  32. # platform:  $XConsortium: Sun.macros,v 1.52 88/10/23 11:00:55 jim Exp $
  33. # operating system:   SunOS 3.4
  34.  
  35. BOOTSTRAPCFLAGS =
  36.              AS = as
  37.              CC = cc
  38.             CPP = /lib/cpp
  39.              LD = ld
  40.            LINT = lint
  41.         INSTALL = install
  42.            TAGS = ctags
  43.              RM = rm -f
  44.              MV = mv
  45.              LN = ln -s
  46.          RANLIB = ranlib
  47. RANLIBINSTFLAGS = -t
  48.              AR = ar clq
  49.              LS = ls
  50.        LINTOPTS = -xz
  51.     LINTLIBFLAG = -C
  52.            MAKE = make
  53. STD_CPP_DEFINES =
  54.     STD_DEFINES =
  55.  
  56. ###########################################################################
  57. # site-specific configuration parameters - edit site.def to change
  58.  
  59. # site:  $XConsortium: site.def,v 1.16 88/10/12 10:30:24 jim Exp $
  60.  
  61. ###########################################################################
  62. # definitions common to all Makefiles - do not edit
  63.  
  64.           SHELL =  /bin/sh
  65.  
  66.         DESTDIR = /global
  67.       USRLIBDIR = $(DESTDIR)/lib
  68.          BINDIR = $(DESTDIR)/bin/X11
  69.          INCDIR = $(DESTDIR)/include
  70.          ADMDIR = $(DESTDIR)/usr/adm
  71.          LIBDIR = $(USRLIBDIR)/X11
  72.      LINTLIBDIR = $(USRLIBDIR)/lint
  73.         FONTDIR = $(LIBDIR)/fonts
  74.        XINITDIR = $(LIBDIR)/xinit
  75.          XDMDIR = $(LIBDIR)/xdm
  76.          UWMDIR = $(LIBDIR)/uwm
  77.          AWMDIR = $(LIBDIR)/awm
  78.          TWMDIR = $(LIBDIR)/twm
  79.           DTDIR = $(LIBDIR)/dt
  80.         MANPATH = /usr/man
  81.   MANSOURCEPATH = $(MANPATH)/man
  82.          MANDIR = $(MANSOURCEPATH)n
  83.       LIBMANDIR = $(MANSOURCEPATH)n3
  84.     XAPPLOADDIR = $(LIBDIR)/app-defaults
  85.  
  86.    INSTBINFLAGS = -m 0755
  87.    INSTUIDFLAGS = -m 4755
  88.    INSTLIBFLAGS = -m 0664
  89.    INSTINCFLAGS = -m 0444
  90.    INSTMANFLAGS = -m 0444
  91.    INSTAPPFLAGS = -m 0444
  92.   INSTKMEMFLAGS = -m 4755
  93.         FCFLAGS = -t
  94.     CDEBUGFLAGS = -O
  95.  
  96.         PATHSEP = /
  97.          DEPEND = $(BINDIR)/makedepend
  98.           IMAKE = $(BINDIR)/imake
  99.             RGB = $(LIBDIR)/rgb
  100.              FC = $(BINDIR)/bdftosnf
  101.       MKFONTDIR = $(BINDIR)/mkfontdir
  102.       MKDIRHIER = $(BINDIR)/mkdirhier.sh
  103.  
  104.          CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(STD_DEFINES) $(DEFINES)
  105.       LINTFLAGS = $(LINTOPTS) $(INCLUDES) $(STD_DEFINES) $(DEFINES) -DLINT
  106.         LDFLAGS = $(CDEBUGFLAGS) -L$(USRLIBDIR) $(SYS_LIBRARIES) $(SYSAUX_LIBRARIES)
  107.  
  108.        IRULESRC = $(LIBDIR)/imake.includes
  109.  
  110.    EXTENSIONLIB = $(USRLIBDIR)/libext.a
  111.            XLIB = $(USRLIBDIR)/libX11.a
  112.          XMULIB = $(USRLIBDIR)/libXmu.a
  113.         OLDXLIB = $(USRLIBDIR)/liboldX.a
  114.        XTOOLLIB = $(USRLIBDIR)/libXt.a
  115.          XAWLIB = $(USRLIBDIR)/libXaw.a
  116.        LINTXLIB = $(USRLIBDIR)/lint/llib-lX11.ln
  117.         LINTXMU = $(USRLIBDIR)/lint/llib-lXmu.ln
  118.       LINTXTOOL = $(USRLIBDIR)/lint/llib-lXt.ln
  119.         LINTXAW = $(USRLIBDIR)/lint/llib-lXaw.ln
  120.        INCLUDES = -I$(INCDIR)
  121.       MACROFILE = Sun.macros
  122.    ICONFIGFILES = $(IRULESRC)/Imake.tmpl \
  123.             $(IRULESRC)/$(MACROFILE) $(IRULESRC)/site.def
  124.   IMAKE_DEFINES =
  125.       IMAKE_CMD = $(NEWTOP)$(IMAKE) -TImake.tmpl -I$(NEWTOP)$(IRULESRC) \
  126.             -s Makefile $(IMAKE_DEFINES)
  127.          RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a \
  128.             .emacs_* tags TAGS make.log MakeOut
  129.  
  130. ###########################################################################
  131. # rules:  $XConsortium: Imake.rules,v 1.71 88/10/23 22:46:34 jim Exp $
  132.  
  133. ###########################################################################
  134. # start of Imakefile
  135.  
  136. FONT_PATH=TEXFONTS
  137. DEFAULT_FONT_PATH=/usr/local/tex/fonts
  138. FONTFORMATS_C=gf.c pk.c pxl.c
  139. FONTFORMATS_O=gf.o pk.o pxl.o
  140.  
  141. DEFINES=-DBMSHORT \
  142.             -DFONT_PATH=\"$(FONT_PATH)\" \
  143.             -DDEFAULT_FONT_PATH=\"$(DEFAULT_FONT_PATH)\"
  144. SYSLAST_LIBRARIES=-lXaw -lXmu -lXt -lX11 -lm
  145. SRCS=xdvi.c dvi_init.c dvi_draw.c $(FONTFORMATS_C) pxl_open.c tpic.c
  146. OBJS=xdvi.o dvi_init.o dvi_draw.o $(FONTFORMATS_O) pxl_open.o tpic.o
  147.  
  148.  PROGRAM = xdvi
  149.  
  150. all:: xdvi
  151.  
  152. xdvi: $(OBJS) $(LOCAL_LIBRARIES)
  153.     $(RM) $@
  154.     $(CC) -o $@ $(OBJS) $(LOCAL_LIBRARIES) $(LDFLAGS) $(SYSLAST_LIBRARIES)
  155.  
  156. relink::
  157.     $(RM) $(PROGRAM)
  158.     $(MAKE) $(MFLAGS) $(PROGRAM)
  159.  
  160. install:: xdvi
  161.     $(INSTALL) -c $(INSTALLFLAGS) xdvi $(BINDIR)
  162.  
  163. install.man:: xdvi.man
  164.     $(INSTALL) -c $(INSTMANFLAGS) xdvi.man $(MANDIR)/xdvi.n
  165.  
  166. depend:: $(DEPEND)
  167.  
  168. depend::
  169.     $(DEPEND) -s "# DO NOT DELETE" -- $(CFLAGS) -- $(SRCS)
  170.  
  171. $(DEPEND):
  172.     @echo "making $@"; \
  173.     cd $(DEPENDSRC); $(MAKE)
  174.  
  175. clean::
  176.     $(RM) $(PROGRAM)
  177.  
  178. table.h: mktable
  179.     mktable > table.h
  180.  
  181. mktable: mktable.c
  182.     $(CC) $(CFLAGS) -o mktable mktable.c
  183.  
  184. xdvi.man:
  185.     sed -e "s;%%FONT_PATH%%;$(FONT_PATH);g" \
  186.         -e "s;%%DEFAULT_FONT_PATH%%;$(DEFAULT_FONT_PATH);g" \
  187.         < xdvi.man.sed \
  188.         > xdvi.man
  189.  
  190. clean::
  191.     $(RM) mktable table.h xdvi.man
  192.  
  193. lint::
  194.     lint $(INCLUDES) $(DEFINES) $(SRCS)
  195.  
  196. ###########################################################################
  197. # Imake.tmpl common rules for all Makefiles - do not edit
  198.  
  199. emptyrule::
  200.  
  201. clean::
  202.     $(RM_CMD) \#*
  203.  
  204. Makefile:: $(IMAKE)
  205.  
  206. Makefile:: Imakefile \
  207.     $(IRULESRC)/Imake.tmpl \
  208.     $(IRULESRC)/Imake.rules \
  209.     $(IRULESRC)/site.def \
  210.     $(IRULESRC)/$(MACROFILE)
  211.     -@if [ -f Makefile ]; then \
  212.     echo "$(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
  213.     $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  214.     else exit 0; fi
  215.     $(IMAKE_CMD) -DTOPDIR=$(TOP)
  216.  
  217. $(IMAKE):
  218.     @echo "making $@"; \
  219.     cd $(IMAKESRC); $(MAKE) BOOTSTRAPCFLAGS=$(BOOTSTRAPCFLAGS)
  220.  
  221. tags::
  222.     $(TAGS) -w *.[ch]
  223.     $(TAGS) -xw *.[ch] > TAGS
  224.  
  225. ###########################################################################
  226. # empty rules for directories that do not have SUBDIRS - do not edit
  227.  
  228. install::
  229.     @echo "install done"
  230.  
  231. install.man::
  232.     @echo "install.man done"
  233.  
  234. Makefiles::
  235.  
  236. ###########################################################################
  237. # dependencies generated by makedepend
  238.  
  239.