home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / s / stex2-18.zip / SeeTeX / Xtex / Imakefile < prev    next >
Makefile  |  1992-06-26  |  5KB  |  163 lines

  1. #include "../Imake.Config"
  2.  
  3. all::
  4.  
  5. #   CDEBUGFLAGS = -g 
  6.  
  7. /***************************************************************************/
  8. /*    You shouldn't have to change anything below this line           */
  9. /***************************************************************************/
  10.  
  11.           FILES = $(SRCS) $(SRCS2) $(HDRS) \
  12.           DviPageNEWS.c \
  13.           DviPageNEWS.h \
  14.           DviPageDPS.c \
  15.           DviPageDPS.h \
  16.           xtex.man Xtex.AD \
  17.           TeXtoXfont.SCRIPT TeXtoXfont.remote.SCRIPT \
  18.           xtex.sty \
  19.           Imakefile Makefile ChangeLog \
  20.           README README.OPENWIN PS-FONT-MAP X11-Font-information
  21.     
  22.         VERSION = 2.18.5#
  23.     RCS_VERSION = 2p185#
  24.  
  25. #if defined(RsArchitecture) && OSMajorVersion == 3 && OSMinorVersion >1
  26.         EXTRA_DEFINES = -D_BSD -DVSPRINTF
  27. #endif
  28.  
  29. #ifdef DISPLAY_POSTSCRIPT
  30.         XTEX_IFDEF_DPS = -DDPS
  31.            DPS_DEFINES = -DHAVE_DPS
  32. /* If >=R5  assume that the user has compiled the contrib/lib/DPS stuff */
  33. #  if ProjectX >= 5
  34.                DPS_LIB = -ldps
  35.           DPS_INCLUDES = -I$(INCROOT)/X11
  36. #  else
  37.                DPS_LIB = -ldpstk -ldps
  38. #  endif
  39.              DPS_SRCS = DviPageDPS.c
  40.              DPS_HDRS = DviPageDPS.h
  41.              DPS_OBJS = DviPageDPS.o
  42. #endif
  43.  
  44. #  ifdef NEWS
  45.       XTEX_IFDEF_NEWS = -DNEWS
  46.          NEWS_DEFINES = -DHAVE_NEWS
  47.              NEWS_LIB = -L$(OPENWINHOME)/lib -u _xv_psview_pkg -lxvps \
  48.                         -lxview -lcps -lolgx
  49.         NEWS_INCLUDES = -I$(OPENWINHOME)/include
  50.             NEWS_SRCS = DviPageNEWS.c
  51.             NEWS_HDRS = DviPageNEWS.h
  52.             NEWS_OBJS = DviPageNEWS.o
  53. #endif
  54.  
  55. #  ifdef DISPLAY_GHOSTSCRIPT
  56.     XTEX_IFDEF_GHOST  = -DGHOST
  57.         GHOST_DEFINES = -DHAVE_GHOSTSCRIPT
  58.             GHOST_LIB = 
  59.        GHOST_INCLUDES = 
  60.            GHOST_SRCS = DviPageGS-0.c DviPageGS-1.c DviPageGS-2.c
  61.            GHOST_HDRS = DviPageGS-0.h DviPageGS-1.h DviPageGS-2.h
  62.            GHOST_OBJS = DviPageGS-0.o DviPageGS-1.o DviPageGS-2.o
  63. #endif
  64.  
  65. XTEX_IFDEF_PS_OPTIONS = $(XTEX_IFDEF_DPS) $(XTEX_IFDEF_NEWS) $(XTEX_IFDEF_GHOST)
  66.    POSTSCRIPT_DEFINES = $(DPS_DEFINES) $(NEWS_DEFINES) $(GHOST_DEFINES)
  67.        POSTSCRIPT_LIB = $(DPS_LIB) $(NEWS_LIB) $(GHOST_LIB)
  68.   POSTSCRIPT_INCLUDES = $(DPS_INCLUDES) $(NEWS_INCLUDES) $(GHOST_INCLUDES)
  69.       POSTSCRIPT_SRCS = $(DPS_SRCS) $(NEWS_SRCS) $(GHOST_SRCS)
  70.       POSTSCRIPT_HDRS = $(DPS_HDRS) $(NEWS_HDRS) $(GHOST_HDRS)
  71.       POSTSCRIPT_OBJS = $(DPS_OBJS) $(NEWS_OBJS) $(GHOST_OBJS)
  72.  
  73. #ifdef SELFILE
  74.       SELFILE_DEFINES = -DSELFILE
  75.               SF_SRCS = Dir.c Draw.c Path.c SelFile.c 
  76.               SF_HDRS = SFinternal.h
  77.               SF_OBJS = Dir.o Draw.o Path.o SelFile.o
  78. #else
  79.       SELFILE_DEFINES = 
  80.               SF_SRCS =
  81.               SF_HDRS =
  82.               SF_OBJS =
  83. #endif
  84.  
  85.         DEFINES = $(XVERSION_DEFINES) $(POSTSCRIPT_DEFINES) \
  86.           $(SELFILE_DEFINES) \
  87.           -DPOPUP_WINDOW_TYPE=$(POPUP_WINDOW_TYPE) \
  88.           -DXTEX_VERSION=\"$(VERSION)\"
  89.  
  90.        INCLUDES    = -I$(LIBTEXROOT) -I$(INCROOT) $(POSTSCRIPT_INCLUDES)
  91. LOCAL_LIBRARIES = $(LIBTEX) $(POSTSCRIPT_LIB)
  92.         DEPLIBS = $(DEPLIBTEX) XawClientDepLibs
  93. /*
  94.  * XawClientLibs must be here for Ultrix
  95.  */
  96.   SYS_LIBRARIES =  XawClientLibs -lm
  97.  
  98.            SRCS = xtex.c widgets.c \
  99.                   file.c dialog.c dvi-simple.c \
  100.                   page.c x11fonts.c mark.c fontpath.c \
  101.                   DviPage.c DviPage2.c Valuator.c \
  102.           EzMenu.c EzME.c ${POSTSCRIPT_SRCS} ${SF_SRCS}
  103.  
  104.            HDRS = DviPage.h dvi-simple.h mio.h xtex.h x11fonts.h \
  105.           DviPageP.h mark.h page.h widgets.h Valuator.h ValuatorP.h \
  106.           EzMenu.h EzMenuP.h EzME.h EzMEP.h \
  107.                   ${POSTSCRIPT_HDRS} ${SF_HDRS}
  108.  
  109.            OBJS = xtex.o widgets.o \
  110.                   file.o dialog.o dvi-simple.o \
  111.                   page.o x11fonts.o mark.o fontpath.o \
  112.                   DviPage.o DviPage2.o Valuator.o \
  113.           EzMenu.o EzME.o ${POSTSCRIPT_OBJS} ${SF_OBJS}
  114.  
  115. ComplexProgramTarget(xtex)
  116. InstallScript(TeXtoXfont, $(BINDIR))
  117. InstallAppDefaults(Xtex)
  118. InstallNonExec(xtex.sty,$(TEX_INPUTS))
  119.  
  120. Xtex.ad: Xtex.AD Makefile
  121.     sed < Xtex.AD \
  122.         -e "s|XTEX_TFM_PATH|$(XTEX_TFM_PATH)|" \
  123.         -e "s|XTEX_FONT_PATH|$(XTEX_FONT_PATH)|" \
  124.         -e "s|XTEX_MAKE_FONT|$(XTEX_MAKE_FONT)|" \
  125.         -e "s|RESOURCES_VERSION|$(VERSION)|" \
  126.         -e "s|GHOST_SEARCH_PATH|$(GHOST_SEARCH_PATH)|" | \
  127.     /lib/cpp -Usun $(XTEX_IFDEF_OPTIONS) $(XTEX_IFDEF_PS_OPTIONS) \
  128.         $(SELFILE_DEFINES) > Xtex.ad
  129. clean::
  130.     rm -f Xtex.ad
  131.  
  132. TeXtoXfont.script: TeXtoXfont.SCRIPT Makefile
  133.     sed < TeXtoXfont.SCRIPT > TeXtoXfont.script \
  134.         -e "s|X_FONT_SUFFIX|$(X_FONT_SUFFIX)|" \
  135.         -e 's|X_FONT_COMPILER|$(X_FONT_COMPILER)|' \
  136.         -e "s|X_FONT_MAKE_DIR|$(X_FONT_MAKE_DIR)|" \
  137.         -e "s|X_FONT_COMPRESS|$(X_FONT_COMPRESS)|" \
  138.         -e "s|X_FONT_PREPEND|$(X_FONT_PREPEND)|" \
  139.         -e "s|X_FONT_RESET|$(X_FONT_RESET)|"
  140. clean::
  141.     rm -f TeXtoXfont.script
  142.  
  143. ci:
  144.     echo "xtex version $(VERSION)" > /tmp/xtex.version
  145.     ci -l -f -t/tmp/xtex.version -m"xtex $(VERSION)" -n"xtex$(RCS_VERSION)" $(FILES)
  146.  
  147. new-ad:: Xtex.ad
  148.     $(INSTALL) -c $(INSTAPPFLAGS) Xtex.ad $(XAPPLOADDIR)/Xtex
  149.  
  150. tar:
  151.     cd ../..;\
  152.     for file in $(FILES); \
  153.     do \
  154.       tar rf $(TARFILE) $(PRODUCT)/Xtex/$$file; \
  155.     done
  156.  
  157. xtex-$(VERSION).tar.Z:
  158.     tar crf xtex-$(VERSION).tar $(FILES)
  159.     compress xtex-$(VERSION).tar
  160.  
  161. ftp: xtex-$(VERSION).tar.Z
  162.     mv xtex-$(VERSION).tar.Z /srl/ftp/pub/SeeTeX
  163.