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 |
---|
2 | if test $# -eq 0 ; then exec make config ; fi |
---|
3 | TYPE=$1 |
---|
4 | shift |
---|
5 | |
---|
6 | PKC='' |
---|
7 | PKO='' |
---|
8 | GFC='' |
---|
9 | GFO='' |
---|
10 | FONTOK='' |
---|
11 | TOOLLIBS='$(LIBXAW) $(XMULIB) -lXt $(EXTENSIONLIB)' |
---|
12 | TOOL=TOOL |
---|
13 | DPSC='' |
---|
14 | DPSO='' |
---|
15 | DPSLIBS='' |
---|
16 | NEWSC='' |
---|
17 | NEWSO='' |
---|
18 | NEWSLIBS='' |
---|
19 | GSC='' |
---|
20 | GSO='' |
---|
21 | PSHEADERC='' |
---|
22 | PSHEADERO='' |
---|
23 | PS='' |
---|
24 | |
---|
25 | while test $# -gt 0 |
---|
26 | do |
---|
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 |
---|
39 | done |
---|
40 | |
---|
41 | if test -z "$FONTOK" |
---|
42 | then |
---|
43 | echo "You need to specify at least one of -DUSE_PK or -DUSE_GF." |
---|
44 | exit 1 |
---|
45 | fi |
---|
46 | |
---|
47 | if test -n "$PS"; then PSHEADERC=psheader.c; PSHEADERO=psheader.o; fi |
---|
48 | |
---|
49 | echo VARSRCS= $PKC $GFC $PSHEADERC $DPSC $NEWSC $GSC > Makefile.cfg |
---|
50 | echo VAROBJS= $PKO $GFO $PSHEADERO $DPSO $NEWSO $GSO >> Makefile.cfg |
---|
51 | |
---|
52 | if test $TYPE = "make" |
---|
53 | then |
---|
54 | echo VARLIBS= $DPSLIBS $NEWSLIBS $TOOLLIBS >> Makefile.cfg |
---|
55 | if test -n "$NEWSLIBS" |
---|
56 | then |
---|
57 | echo TOP=\$\(OPENWINTOP\) >> Makefile.cfg |
---|
58 | fi |
---|
59 | else |
---|
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 |
---|
66 | fi |
---|
67 | |
---|
68 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.