home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-11-05 | 2.0 KB | 49 lines |
- version=1.1
- # ccflags:
- # on sysv machines that do not have the timeb struct or ftime()
- # -Dnotimeb
- # system v unix
- # -Dsysv
- # bsd unix
- # -DBSD
- # i dont need any flags on my sparc..
- ccflags=
- #to compile pbmtoepsi here ( rather than properly including it into the
- #pbmplus directory ) define the full path to the pbmplus directory
- #and run "make pbmtoepsi"
- pbmdirectory=/usr/tools/pbmplus
- #files to be included in the shell archive by "make shar"
- shfiles=README ps2eps-mac ps-pict2macb.c makefile test.ps er_echo.c st_echo ps2eps-mac.m pbmtoepsi.c
- #name of the shell archive
- archversion=ps2eps-mac${version}.shar
-
- all : ps-pict2macb er_echo ; uudecode test.eps.bin.uu
- ps-pict2macb : ps-pict2macb.o ; cc -o ps-pict2macb ps-pict2macb.o
-
- er_echo : er_echo.o ; cc -o er_echo er_echo.o
- shar : ${archversion}
- clean : ; rm -f *.o *~ *# *-log *.bin *.ppm *.pict *.eps.* *.uu
- ${archversion} : ${shfiles} test.eps.bin ; uuencode test.eps.bin test.eps.bin > test.eps.bin.uu
- shar ${shfiles} test.eps.bin.uu > ${archversion}
- ps-pict2macb.o : ps-pict2macb.c ; cc ${ccflags} -c ps-pict2macb.c
- pbmtoepsi : pbmtoepsi.o ; cc -o pbmtoepsi pbmtoepsi.o ${pbmdirectory}/pbm/libpbm.a
- # the -Djustbb flag creates a 'crippled' pbmtoepsi which stops after reporting
- # the bounding box ( makes it just a little faster )
- # remove it only if you want to use pbmtoepsi for other things.
- pbmtoepsi.o : pbmtoepsi.c ;
- cc ${ccflags} -Djustbb -I${pbmdirectory} -I${pbmdirectory}/pbm -c pbmtoepsi.c
- er_echo.o : er_echo.c ; cc ${ccflags} -c er_echo.c
- test.eps.bin : ps-pict2macb ps2eps-mac test.ps ; ps2eps-mac test.ps
- new : ${archversion} ; cp ${archversion} .tmp-${archversion}
- rm -f *
- mv .tmp-${archversion} ${archversion}
- sh ${archversion}
- fast : fastps2eps-mac #removes all debugging code and comments
- #saves < 1 second run time, sigh
- fastps2eps-mac : ps2eps-mac ; echo "#!/bin/csh -f" > fastps2eps-mac
- sed -e '/^.*##debug.*$$/ d' -e '/^#.*/ d' ps2eps-mac >> fastps2eps-mac
- chmod u+x fastps2eps-mac
-
-
-
-