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 Watcom C Compiler
34 CFLAGS = -dPAPER=\"$(PAPER)\" -dMSDOS -zq -oxt
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 wcc386 -epsffite=epsffit.exe pserror.obj epsffit.obj
62 psnup.exe: psnup.obj psutil.obj psspec.obj pserror.obj
63 wcc386 -psnupe=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 wcc386 -psresizee=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 wcc386 -psbooke=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 wcc386 -psselecte=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 wcc386 -pstopse=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)