"Fossies" - the Fresh Open Source Software Archive

Member "ghostview-1.5/Makefile" (23 Jul 1993, 11972 Bytes) of package /linux/misc/old/ghost/gnu/ghostview/ghostview-1.5.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    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 # -------------------------------------------------------------------------
    5 # Makefile generated from "Imake.tmpl" and </tmp/IIf.026475>
    6 # $XConsortium: Imake.tmpl,v 1.139 91/09/16 08:52:48 rws Exp $
    7 #
    8 # Platform-specific parameters may be set in the appropriate <vendor>.cf
    9 # configuration files.  Site-specific parameters should be set in the file
   10 # site.def.  Full rebuilds are recommended if any parameters are changed.
   11 #
   12 # If your C preprocessor does not define any unique symbols, you will need
   13 # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
   14 # "make World" the first time).
   15 #
   16 
   17 # -------------------------------------------------------------------------
   18 # site-specific configuration parameters that need to come before
   19 # the platform-specific parameters - edit site.def to change
   20 
   21 # site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
   22 
   23 # -------------------------------------------------------------------------
   24 # platform-specific configuration parameters - edit ibm.cf to change
   25 
   26 # platform:  $XConsortium: ibm.cf,v 1.29 91/07/28 22:39:58 rws Exp $
   27 
   28 # operating system:  	AOS 4.3
   29 
   30             PCC = pcc
   31 
   32 # -------------------------------------------------------------------------
   33 # site-specific configuration parameters that go after
   34 # the platform-specific parameters - edit site.def to change
   35 
   36 # site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
   37 
   38             SHELL = /bin/sh
   39 
   40               TOP = .
   41       CURRENT_DIR = .
   42 
   43                AR = ar cq
   44   BOOTSTRAPCFLAGS =
   45                CC = cc
   46                AS = as
   47 
   48          COMPRESS = compress
   49               CPP = /lib/cpp $(STD_CPP_DEFINES)
   50     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
   51           INSTALL = install
   52                LD = ld
   53              LINT = lint
   54       LINTLIBFLAG = -C
   55          LINTOPTS = -ax
   56                LN = ln -s
   57              MAKE = make
   58                MV = mv
   59                CP = cp
   60 
   61            RANLIB = ranlib
   62   RANLIBINSTFLAGS =
   63 
   64                RM = rm -f
   65             TROFF = psroff
   66          MSMACROS = -ms
   67               TBL = tbl
   68               EQN = eqn
   69      STD_INCLUDES =
   70   STD_CPP_DEFINES =
   71       STD_DEFINES =
   72  EXTRA_LOAD_FLAGS =
   73   EXTRA_LIBRARIES =
   74              TAGS = ctags
   75 
   76     PROTO_DEFINES =
   77 
   78      INSTPGMFLAGS = -s
   79 
   80      INSTBINFLAGS = -m 0755
   81      INSTUIDFLAGS = -m 4755
   82      INSTLIBFLAGS = -m 0644
   83      INSTINCFLAGS = -m 0444
   84      INSTMANFLAGS = -m 0444
   85      INSTDATFLAGS = -m 0444
   86     INSTKMEMFLAGS = -m 4755
   87 
   88       PROJECTROOT =
   89 
   90      TOP_INCLUDES = -I$(INCROOT)
   91 
   92       CDEBUGFLAGS = -O
   93         CCOPTIONS =
   94 
   95       ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
   96        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
   97            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
   98         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
   99 
  100            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  101 
  102         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS) -L$(USRLIBDIR)
  103 
  104    LDCOMBINEFLAGS = -X -r
  105       DEPENDFLAGS =
  106 
  107         MACROFILE = ibm.cf
  108            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  109 
  110     IMAKE_DEFINES =
  111 
  112          IRULESRC = $(CONFIGDIR)
  113         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  114 
  115      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  116 			$(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  117 			$(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  118 
  119 # -------------------------------------------------------------------------
  120 # X Window System Build Parameters
  121 # $XConsortium: Project.tmpl,v 1.138 91/09/10 09:02:12 rws Exp $
  122 
  123 # -------------------------------------------------------------------------
  124 # X Window System make variables; this need to be coordinated with rules
  125 
  126           PATHSEP = /
  127         USRLIBDIR = /usr/lib
  128            BINDIR = /usr/bin
  129           INCROOT = /usr/include
  130      BUILDINCROOT = $(TOP)
  131       BUILDINCDIR = $(BUILDINCROOT)/X11
  132       BUILDINCTOP = ..
  133            INCDIR = $(INCROOT)/X11
  134            ADMDIR = /usr/adm
  135            LIBDIR = $(USRLIBDIR)/X11
  136         CONFIGDIR = $(LIBDIR)/config
  137        LINTLIBDIR = $(USRLIBDIR)/lint
  138 
  139           FONTDIR = $(LIBDIR)/fonts
  140          XINITDIR = $(LIBDIR)/xinit
  141            XDMDIR = $(LIBDIR)/xdm
  142            TWMDIR = $(LIBDIR)/twm
  143           MANPATH = /usr/man
  144     MANSOURCEPATH = $(MANPATH)/man
  145         MANSUFFIX = 1
  146      LIBMANSUFFIX = 3
  147            MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
  148         LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
  149            NLSDIR = $(LIBDIR)/nls
  150         PEXAPIDIR = $(LIBDIR)/PEX
  151       XAPPLOADDIR = $(LIBDIR)/app-defaults
  152        FONTCFLAGS = -t
  153 
  154      INSTAPPFLAGS = $(INSTDATFLAGS)
  155 
  156             IMAKE = imake
  157            DEPEND = makedepend
  158               RGB = rgb
  159 
  160             FONTC = bdftopcf
  161 
  162         MKFONTDIR = mkfontdir
  163         MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier
  164 
  165         CONFIGSRC = $(TOP)/config
  166        DOCUTILSRC = $(TOP)/doc/util
  167         CLIENTSRC = $(TOP)/clients
  168           DEMOSRC = $(TOP)/demos
  169            LIBSRC = $(TOP)/lib
  170           FONTSRC = $(TOP)/fonts
  171        INCLUDESRC = $(TOP)/X11
  172         SERVERSRC = $(TOP)/server
  173           UTILSRC = $(TOP)/util
  174         SCRIPTSRC = $(UTILSRC)/scripts
  175        EXAMPLESRC = $(TOP)/examples
  176        CONTRIBSRC = $(TOP)/../contrib
  177            DOCSRC = $(TOP)/doc
  178            RGBSRC = $(TOP)/rgb
  179         DEPENDSRC = $(UTILSRC)/makedepend
  180          IMAKESRC = $(CONFIGSRC)
  181          XAUTHSRC = $(LIBSRC)/Xau
  182           XLIBSRC = $(LIBSRC)/X
  183            XMUSRC = $(LIBSRC)/Xmu
  184        TOOLKITSRC = $(LIBSRC)/Xt
  185        AWIDGETSRC = $(LIBSRC)/Xaw
  186        OLDXLIBSRC = $(LIBSRC)/oldX
  187       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  188       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  189       BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
  190       BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
  191      MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
  192          FSLIBSRC = $(FONTSRC)/lib/fs
  193     FONTSERVERSRC = $(FONTSRC)/server
  194      EXTENSIONSRC = $(TOP)/extensions
  195          XILIBSRC = $(EXTENSIONSRC)/lib/xinput
  196       PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
  197 
  198   DEPEXTENSIONLIB =  $(USRLIBDIR)/libXext.a
  199      EXTENSIONLIB = 			  -lXext
  200 
  201           DEPXLIB = $(DEPEXTENSIONLIB)  $(USRLIBDIR)/libX11.a
  202              XLIB = $(EXTENSIONLIB) 			  -lX11
  203 
  204       DEPXAUTHLIB =  $(USRLIBDIR)/libXau.a
  205          XAUTHLIB = 			  -lXau
  206       DEPXDMCPLIB =  $(USRLIBDIR)/libXdmcp.a
  207          XDMCPLIB = 			  -lXdmcp
  208 
  209         DEPXMULIB =  $(USRLIBDIR)/libXmu.a
  210            XMULIB = 			  -lXmu
  211 
  212        DEPOLDXLIB =  $(USRLIBDIR)/liboldX.a
  213           OLDXLIB = 			  -loldX
  214 
  215       DEPXTOOLLIB =  $(USRLIBDIR)/libXt.a
  216          XTOOLLIB = 			  -lXt
  217 
  218         DEPXAWLIB =  $(USRLIBDIR)/libXaw.a
  219            XAWLIB = 			  -lXaw
  220 
  221         DEPXILIB =  $(USRLIBDIR)/libXi.a
  222            XILIB = 			  -lXi
  223 
  224         DEPPHIGSLIB =  $(USRLIBDIR)/libphigs.a
  225            PHIGSLIB = 			  -lphigs
  226 
  227        DEPXBSDLIB =  $(USRLIBDIR)/libXbsd.a
  228           XBSDLIB = 			  -lXbsd
  229 
  230  LINTEXTENSIONLIB =  $(LINTLIBDIR)/llib-lXext.ln
  231          LINTXLIB =  $(LINTLIBDIR)/llib-lX11.ln
  232           LINTXMU =  $(LINTLIBDIR)/llib-lXmu.ln
  233         LINTXTOOL =  $(LINTLIBDIR)/llib-lXt.ln
  234           LINTXAW =  $(LINTLIBDIR)/llib-lXaw.ln
  235            LINTXI =  $(LINTLIBDIR)/llib-lXi.ln
  236         LINTPHIGS =  $(LINTLIBDIR)/llib-lphigs.ln
  237 
  238           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  239 
  240          DEPLIBS1 = $(DEPLIBS)
  241          DEPLIBS2 = $(DEPLIBS)
  242          DEPLIBS3 = $(DEPLIBS)
  243 
  244 # -------------------------------------------------------------------------
  245 # Imake rules for building libraries, programs, scripts, and data files
  246 # rules:  $XConsortium: Imake.rules,v 1.123 91/09/16 20:12:16 rws Exp $
  247 
  248 # -------------------------------------------------------------------------
  249 # start of Imakefile
  250 
  251 #  Imakefile -- Imakefile for ghostview.
  252 #  Copyright (C) 1992  Timothy O. Theisen
  253 #
  254 #  This program is free software; you can redistribute it and/or modify
  255 #  it under the terms of the GNU General Public License as published by
  256 #  the Free Software Foundation; either version 2 of the License, or
  257 #  (at your option) any later version.
  258 #
  259 #  This program is distributed in the hope that it will be useful,
  260 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  261 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  262 #  GNU General Public License for more details.
  263 #
  264 #  You should have received a copy of the GNU General Public License
  265 #  along with this program; if not, write to the Free Software
  266 #  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  267 #
  268 #    Author: Tim Theisen           Systems Programmer
  269 #  Internet: tim@cs.wisc.edu       Department of Computer Sciences
  270 #      UUCP: uwvax!tim             University of Wisconsin-Madison
  271 #     Phone: (608)262-0438         1210 West Dayton Street
  272 #       FAX: (608)262-9777         Madison, WI   53706
  273 
  274            SRCS = main.c misc.c callbacks.c actions.c dialogs.c \
  275                   Ghostview.c ps.c getenv.c setenv.c strcasecmp.c \
  276                   SelFile.c Dir.c Path.c Draw.c
  277            OBJS = main.o misc.o callbacks.o actions.o dialogs.o \
  278                   Ghostview.o ps.o getenv.o setenv.o strcasecmp.o \
  279                   SelFile.o Dir.o Path.o Draw.o
  280  SELFILE_DEFINE = -DSELFILE
  281 
  282         DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  283 LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  284   SYS_LIBRARIES = -lm
  285 
  286         DEFINES = -DNON_BLOCKING_IO $(SIGNAL_DEFINES) $(SELFILE_DEFINE)
  287 
  288 .NOEXPORT:
  289 
  290 all:: ghostview
  291 
  292 depend:: app-defaults.h
  293 
  294         PROGRAM = ghostview
  295 
  296 all:: ghostview
  297 
  298 ghostview: $(OBJS) $(DEPLIBS)
  299 	 $(RM) $@
  300 	$(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  301 
  302 install:: ghostview
  303 	 @if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
  304 		else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
  305 	$(INSTALL) -c $(INSTPGMFLAGS)  ghostview $(DESTDIR)$(BINDIR)
  306 
  307 install.man:: ghostview.man
  308 	 @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
  309 		else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
  310 	$(INSTALL) -c $(INSTMANFLAGS) ghostview.man $(DESTDIR)$(MANDIR)/ghostview.$(MANSUFFIX)
  311 
  312 depend::
  313 	$(DEPEND) $(DEPENDFLAGS) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  314 
  315 lint:
  316 	$(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  317 lint1:
  318 	$(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  319 
  320 clean::
  321 	$(RM) $(PROGRAM)
  322 
  323 install:: Ghostview.ad
  324 	 @if [ -d $(DESTDIR)$(XAPPLOADDIR) ]; then set +x; \
  325 		else (set -x; $(MKDIRHIER) $(DESTDIR)$(XAPPLOADDIR)); fi
  326 	$(INSTALL) -c $(INSTAPPFLAGS) Ghostview.ad $(DESTDIR)$(XAPPLOADDIR)/Ghostview
  327 
  328 main.o: app-defaults.h
  329 
  330 app-defaults.h: Ghostview.ad
  331 	./ad2c Ghostview.ad > app-defaults.h
  332 
  333 clean::
  334 	$(RM) app-defaults.h
  335 
  336 # -------------------------------------------------------------------------
  337 # common rules for all Makefiles - do not edit
  338 
  339 emptyrule::
  340 
  341 clean::
  342 	$(RM_CMD) "#"*
  343 
  344 Makefile::
  345 	-@if [ -f Makefile ]; then set -x; \
  346 		$(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  347 	else exit 0; fi
  348 	$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  349 
  350 tags::
  351 	$(TAGS) -w *.[ch]
  352 	$(TAGS) -xw *.[ch] > TAGS
  353 
  354 # -------------------------------------------------------------------------
  355 # empty rules for directories that do not have SUBDIRS - do not edit
  356 
  357 install::
  358 	@echo "install in $(CURRENT_DIR) done"
  359 
  360 install.man::
  361 	@echo "install.man in $(CURRENT_DIR) done"
  362 
  363 Makefiles::
  364 
  365 includes::
  366 
  367 # -------------------------------------------------------------------------
  368 # dependencies generated by makedepend
  369 
  370 # DO NOT DELETE
  371 
  372 main.o: Ghostview.h
  373 main.o: gv.h
  374 main.o: ps.h app-defaults.h
  375 misc.o: Ghostview.h gv.h
  376 misc.o: ps.h
  377 callbacks.o: Ghostview.h gv.h
  378 callbacks.o: ps.h
  379 actions.o: gv.h
  380 actions.o: Ghostview.h ps.h
  381 dialogs.o: gv.h
  382 dialogs.o: Ghostview.h
  383 Ghostview.o: GhostviewP.h Ghostview.h
  384 ps.o: ps.h
  385 strcasecmp.o: stdc.h
  386 SelFile.o: SFinternal.h
  387 Dir.o: SFinternal.h
  388 Path.o: SFinternal.h
  389 Path.o: xstat.h
  390 Draw.o: SFinternal.h
  391 Draw.o: xstat.h