home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / util / unix / ps2eps11.sha / makefile < prev    next >
Encoding:
Makefile  |  1992-11-05  |  2.0 KB  |  49 lines

  1. version=1.1
  2. # ccflags:
  3. #  on sysv machines that do not have the timeb struct or ftime()
  4. # -Dnotimeb
  5. #  system v unix
  6. # -Dsysv
  7. # bsd unix
  8. # -DBSD 
  9. # i dont need any flags on my sparc..
  10. ccflags=
  11. #to compile pbmtoepsi here ( rather than properly including it into the
  12. #pbmplus directory ) define the full path to the pbmplus directory
  13. #and run "make pbmtoepsi"
  14. pbmdirectory=/usr/tools/pbmplus
  15. #files to be included in the shell archive by "make shar"
  16. shfiles=README ps2eps-mac ps-pict2macb.c makefile test.ps er_echo.c st_echo ps2eps-mac.m pbmtoepsi.c
  17. #name of the shell archive
  18. archversion=ps2eps-mac${version}.shar
  19.  
  20. all : ps-pict2macb er_echo ; uudecode test.eps.bin.uu
  21. ps-pict2macb : ps-pict2macb.o ; cc  -o ps-pict2macb ps-pict2macb.o
  22.  
  23. er_echo : er_echo.o ; cc  -o er_echo er_echo.o
  24. shar : ${archversion}
  25. clean : ; rm -f *.o *~ *# *-log *.bin *.ppm *.pict *.eps.* *.uu
  26. ${archversion} : ${shfiles} test.eps.bin ;  uuencode test.eps.bin test.eps.bin > test.eps.bin.uu
  27.     shar ${shfiles} test.eps.bin.uu > ${archversion}
  28. ps-pict2macb.o : ps-pict2macb.c ; cc ${ccflags} -c ps-pict2macb.c
  29. pbmtoepsi : pbmtoepsi.o ; cc -o pbmtoepsi pbmtoepsi.o ${pbmdirectory}/pbm/libpbm.a
  30. # the -Djustbb flag creates a 'crippled' pbmtoepsi which stops after reporting
  31. # the bounding box ( makes it just a little faster )
  32. # remove it only if you want to use pbmtoepsi for other things.
  33. pbmtoepsi.o : pbmtoepsi.c ; 
  34.     cc ${ccflags} -Djustbb -I${pbmdirectory} -I${pbmdirectory}/pbm -c pbmtoepsi.c 
  35. er_echo.o : er_echo.c ; cc ${ccflags} -c er_echo.c
  36. test.eps.bin : ps-pict2macb ps2eps-mac test.ps ; ps2eps-mac test.ps
  37. new : ${archversion} ; cp ${archversion} .tmp-${archversion}
  38.     rm -f *
  39.     mv .tmp-${archversion} ${archversion}
  40.     sh ${archversion}
  41. fast : fastps2eps-mac  #removes all debugging code and comments
  42.                        #saves < 1 second run time, sigh
  43. fastps2eps-mac : ps2eps-mac ; echo "#!/bin/csh -f" > fastps2eps-mac
  44.     sed -e '/^.*##debug.*$$/ d' -e '/^#.*/ d' ps2eps-mac >> fastps2eps-mac
  45.     chmod u+x fastps2eps-mac
  46.  
  47.   
  48.  
  49.