1 # Makefile for PS utilities release 1 patchlevel 17
3 # Copyright (C) Angus J. C. Duggan 1991-1996
4 # See file LICENSE for details.
8 # Multiple makefiles for different OSes are generated from a single master
11 # There are so many incompatible makes around that putting all of the
12 # non-standard targets explicitly seems to be the only way of ensuring
15 # epsffit fits an epsf file to a given bounding box
16 # psbook rearranges pages into signatures
17 # psselect selects page ranges
18 # pstops performs general page rearrangement and merging
19 # psnup puts multiple logical pages on one physical page
20 # psresize scales and moves pages to fit on different paper sizes
24 # Makefile for PSUtils under MSDOS
30 INCLUDEDIR = \psutils\include
32 # Flags for Borland C Compiler
34 CFLAGS = -DPAPER="$(PAPER)" -DMSDOS -w -v -O
36 BIN = psbook.exe psselect.exe pstops.exe epsffit.exe psnup.exe \
47 INCLUDES = md68_0.ps md71_0.ps
49 all: $(BIN) $(PERLSCRIPTS) $(MANPAGES) $(SHELLSCRIPTS)
51 psutil.obj: psutil.h patchlev.h pserror.h psutil.c
53 psspec.obj: psutil.h patchlev.h psspec.h pserror.h psspec.c
55 pserror.obj: psutil.h patchlev.h pserror.h pserror.c
57 epsffit.obj: epsffit.c pserror.h patchlev.h
59 epsffit.exe: epsffit.obj pserror.obj
60 $(CC) -e epsffit.exe pserror.obj epsffit.obj
62 psnup.exe: psnup.obj psutil.obj psspec.obj pserror.obj
63 $(CC) -e psnup.exe psutil.obj psspec.obj pserror.obj psnup.obj
65 psnup.obj: psutil.h patchlev.h psspec.h pserror.h psnup.c
67 psresize.exe: psresize.obj psutil.obj pserror.obj psspec.obj
68 $(CC) -e psresize.exe psutil.obj psspec.obj pserror.obj psresize.obj
70 psresize.obj: psutil.h patchlev.h psspec.h pserror.h psresize.c
72 psbook.exe: psbook.obj psutil.obj pserror.obj
73 $(CC) -e psbook.exe psutil.obj pserror.obj psbook.obj
75 psbook.obj: psutil.h patchlev.h pserror.h psbook.c
77 psselect.exe: psselect.obj psutil.obj pserror.obj
78 $(CC) -e psselect.exe psutil.obj pserror.obj psselect.obj
80 psselect.obj: psutil.h patchlev.h pserror.h psselect.c
82 pstops.exe: pstops.obj psutil.obj psspec.obj pserror.obj
83 $(CC) -e pstops.exe psutil.obj psspec.obj pserror.obj pstops.obj
85 pstops.obj: psutil.h patchlev.h psspec.h pserror.h pstops.c
92 veryclean realclean: clean
93 del $(BIN) $(PERLSCRIPTS) $(MANPAGES)
95 install: install.bin install.script install.include
99 @for %1 in ( $(BIN) ) do copy %1 $(BINDIR)
101 install.script: $(PERLSCRIPTS)
103 @for %1 in ( $(PERLSCRIPTS) ) do copy %1 $(SCRIPTDIR)
105 install.include: $(INCLUDES)
107 @for %1 in ( $(INCLUDES) ) do copy %1 $(INCLUDEDIR)