summaryrefslogtreecommitdiff
path: root/Build/source/utils/psutils/psutils-1.17/Makefile.nt
blob: 41d9b054d3cadbba5005028341bc5d166363e859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# Makefile for PS utilities release 1 patchlevel 17
#
# Copyright (C) Angus J. C. Duggan 1991-1996
# See file LICENSE for details.
#
# updated AJCD 3/1/96
#
# Multiple makefiles for different OSes are generated from a single master
# now.
#
# There are so many incompatible makes around that putting all of the
# non-standard targets explicitly seems to be the only way of ensuring
# portability.

# epsffit fits an epsf file to a given bounding box
# psbook rearranges pages into signatures
# psselect selects page ranges
# pstops performs general page rearrangement and merging
# psnup puts multiple logical pages on one physical page
# psresize scales and moves pages to fit on different paper sizes

PAPER=a4

# Makefile for PSUtils under Windows NT, Microsoft C/C++ Compiler

OS = WINNT

BINDIR = \psutils
SCRIPTDIR = $(BINDIR)
INCLUDEDIR = \psutils\include
PERL = perl

CFLAGS = -DPAPER=\"$(PAPER)\" -DWINNT /W4

BIN = psbook.exe psselect.exe pstops.exe epsffit.exe psnup.exe \
	psresize.exe
SHELLSCRIPTS =  
PERLSCRIPTS = fixfmps.cmd fixmacps.cmd fixpsditps.cmd fixpspps.cmd \
	fixtpps.cmd fixwfwps.cmd fixwpps.cmd fixscribeps.cmd fixwwps.cmd \
	fixdlsrps.cmd extractres.cmd includeres.cmd psmerge.cmd
MANPAGES =      \
	    \
	    \
	    \
	  
INCLUDES = md68_0.ps md71_0.ps

all: $(BIN) $(PERLSCRIPTS) $(MANPAGES) $(SHELLSCRIPTS)

psutil.obj: psutil.h patchlev.h pserror.h psutil.c

psspec.obj: psutil.h patchlev.h psspec.h pserror.h psspec.c

pserror.obj: psutil.h patchlev.h pserror.h pserror.c

epsffit.obj: epsffit.c pserror.h patchlev.h

epsffit.exe: epsffit.obj pserror.obj
	link -out:epsffit.exe pserror.obj epsffit.obj

psnup.exe: psnup.obj psutil.obj psspec.obj pserror.obj
	link -out:psnup.exe psutil.obj psspec.obj pserror.obj psnup.obj

psnup.obj: psutil.h patchlev.h psspec.h pserror.h psnup.c

psresize.exe: psresize.obj psutil.obj pserror.obj psspec.obj
	link -out:psresize.exe psutil.obj psspec.obj pserror.obj psresize.obj

psresize.obj: psutil.h patchlev.h psspec.h pserror.h psresize.c

psbook.exe: psbook.obj psutil.obj pserror.obj
	link -out:psbook.exe psutil.obj pserror.obj psbook.obj

psbook.obj: psutil.h patchlev.h pserror.h psbook.c

psselect.exe: psselect.obj psutil.obj pserror.obj
	link -out:psselect.exe psutil.obj pserror.obj psselect.obj

psselect.obj: psutil.h patchlev.h pserror.h psselect.c

pstops.exe: pstops.obj psutil.obj psspec.obj pserror.obj
	link -out:pstops.exe psutil.obj psspec.obj pserror.obj pstops.obj

pstops.obj: psutil.h patchlev.h psspec.h pserror.h pstops.c


psmerge.cmd: psmerge.pl
	$(PERL) maketext OS=$(OS) PERL=$(PERL) $? > $@

fixfmps.cmd: fixfmps.pl
	$(PERL) maketext OS=$(OS) PERL=$(PERL) $? > $@

fixmacps.cmd: fixmacps.pl
	$(PERL) maketext OS=$(OS) PERL=$(PERL) INCLUDE=$(INCLUDEDIR) $? > $@

fixpsditps.cmd: fixpsditps.pl
	$(PERL) maketext OS=$(OS) PERL=$(PERL) $? > $@

fixpspps.cmd: fixpspps.pl
	$(PERL) maketext OS=$(OS) PERL=$(PERL) $? > $@

fixscribeps.cmd: fixscribeps.pl
	$(PERL) maketext OS=$(OS) PERL=$(PERL) $? > $@

fixtpps.cmd: fixtpps.pl
	$(PERL) maketext OS=$(OS) PERL=$(PERL) $? > $@

fixwfwps.cmd: fixwfwps.pl
	$(PERL) maketext OS=$(OS) PERL=$(PERL) $? > $@

fixwpps.cmd: fixwpps.pl
	$(PERL) maketext OS=$(OS) PERL=$(PERL) $? > $@

fixwwps.cmd: fixwwps.pl
	$(PERL) maketext OS=$(OS) PERL=$(PERL) $? > $@

fixdlsrps.cmd: fixdlsrps.pl
	$(PERL) maketext OS=$(OS) PERL=$(PERL) $? > $@

extractres.cmd: extractres.pl
	$(PERL) maketext OS=$(OS) PERL=$(PERL) $? > $@

includeres.cmd: includeres.pl
	$(PERL) maketext OS=$(OS) PERL=$(PERL) INCLUDE=$(INCLUDEDIR) $? > $@


clean:
	del *.obj

veryclean realclean: clean
	del $(BIN) $(PERLSCRIPTS) $(MANPAGES)

install: install.bin install.script install.include

install.bin: $(BIN)
	-mkdir $(BINDIR)
	@for %1 in ( $(BIN) ) do copy %1 $(BINDIR)

install.script: $(PERLSCRIPTS)
	-mkdir $(SCRIPTDIR)
	@for %1 in ( $(PERLSCRIPTS) ) do copy %1 $(SCRIPTDIR)

install.include: $(INCLUDES)
	-mkdir $(INCLUDEDIR)
	@for %1 in ( $(INCLUDES) ) do copy %1 $(INCLUDEDIR)