source: trunk/third/tex/xdvi/mkconfig @ 9103

Revision 9103, 1.5 KB checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r9102, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2if test $# -eq 0 ; then exec make config ; fi
3TYPE=$1
4shift
5
6PKC=''
7PKO=''
8GFC=''
9GFO=''
10FONTOK=''
11TOOLLIBS='$(LIBXAW) $(XMULIB) -lXt $(EXTENSIONLIB)'
12TOOL=TOOL
13DPSC=''
14DPSO=''
15DPSLIBS=''
16NEWSC=''
17NEWSO=''
18NEWSLIBS=''
19GSC=''
20GSO=''
21PSHEADERC=''
22PSHEADERO=''
23PS=''
24
25while test $# -gt 0
26do
27        case $1 in
28        -DUSE_PK)       PKC=pk.c; PKO=pk.o; FONTOK=y;;
29        -DUSE_GF)       GFC=gf.c; GFO=gf.o; FONTOK=y;;
30        -DNOTOOL)       TOOLLIBS=; TOOL=NOT;;
31        -DPS_DPS)       DPSC=psdps.c; DPSO=psdps.o; DPSLIBS=-ldps;
32                        PS=y;;
33        -DPS_NEWS)      NEWSC=psnews.c; NEWSO=psnews.o;
34                NEWSLIBS='-u _xv_psview_pkg -lxvps -lxview -lcps -lolgx'; PS=y;;
35        -DPS_GS)        GSC=psgs.c; GSO=psgs.o; PS=y;;
36        -DGS_PATH=*)    GSC=psgs.c; GSO=psgs.o; PS=y;;
37        esac
38        shift
39done
40
41if test -z "$FONTOK"
42then
43  echo "You need to specify at least one of -DUSE_PK or -DUSE_GF."
44  exit 1
45fi
46
47if test -n "$PS";       then    PSHEADERC=psheader.c; PSHEADERO=psheader.o; fi
48
49echo VARSRCS= $PKC $GFC $PSHEADERC $DPSC $NEWSC $GSC    >  Makefile.cfg
50echo VAROBJS= $PKO $GFO $PSHEADERO $DPSO $NEWSO $GSO    >> Makefile.cfg
51
52if test $TYPE = "make"
53then
54  echo VARLIBS= $DPSLIBS $NEWSLIBS $TOOLLIBS            >> Makefile.cfg
55  if test -n "$NEWSLIBS"
56  then
57    echo TOP=\$\(OPENWINTOP\)                           >> Makefile.cfg
58  fi
59else
60  echo VARLIBS= $DPSLIBS $NEWSLIBS                      >> Makefile.cfg
61  echo VARDEPLIBS=                                      >> Makefile.cfg
62  echo VARLINT=                                         >> Makefile.cfg
63  echo LOCAL_LIBRARIES=\$\(LOCAL_LIBRARIES_$TOOL\)      >> Makefile.cfg
64  echo DEPLIBS=\$\(DEPLIBS_$TOOL\)                      >> Makefile.cfg
65  echo LINTLIBS=\$\(LINTLIBS_$TOOL\)                    >> Makefile.cfg
66fi
67
68exit 0
Note: See TracBrowser for help on using the repository browser.