home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume13 / m4 / part01 / makefile < prev    next >
Encoding:
Makefile  |  1988-02-27  |  1.3 KB  |  64 lines

  1. #
  2. # pd m4    [oz]
  3. #
  4. #    -DEXTENDED 
  5. #        if you like to get paste & spaste macros.
  6. #    -DVOID 
  7. #        if your C compiler does NOT support void.
  8. #    -DGETOPT
  9. #        if you STILL do not have getopt    in your library.
  10. #        [This means your library is broken. Fix it.]
  11. #    -DDUFFCP
  12. #        if you do not have fast memcpy in your library.
  13. #
  14. CFLAGS = -O -DEXTENDED
  15. DEST =  /usr/local/bin
  16. MANL =     /usr/man/manl
  17. OBJS =  main.o eval.o serv.o look.o misc.o expr.o
  18. CSRC =  main.c eval.c serv.c look.c misc.c expr.c
  19. INCL =  mdef.h extr.h
  20. MSRC =  ack.m4 hanoi.m4 hash.m4 sqroot.m4 string.m4 test.m4
  21. DOCS =    README MANIFEST m4.1
  22.  
  23. MBIN = /usr/bin
  24.  
  25. m4: ${OBJS}
  26.     @echo "loading m4.."
  27.     @cc -s -o m4 ${OBJS}
  28.     @size m4
  29.  
  30. ${OBJS}: ${INCL} 
  31.  
  32. lint:
  33.     lint -h ${CSRC}
  34.  
  35. install: m4
  36.     install ./m4 ${DEST}/m4
  37.     cp ./m4.1 ${MANL}/m4.l
  38.  
  39. deinstall: 
  40.     rm -f ${DEST}/m4
  41.     rm -f ${MANL}/m4.l
  42. time: m4
  43.     @echo "timing comparisons.."
  44.     @echo "un*x m4:"
  45.     time ${MBIN}/m4 <test.m4 >unxm4.out
  46.     @echo "pd m4:"
  47.     time ./m4 <test.m4 >pdm4.out
  48.     @echo "un*x m4:"
  49.     time ${MBIN}/m4 <test.m4 >unxm4.out
  50.     @echo "pd m4:"
  51.     time ./m4 <test.m4 >pdm4.out
  52.     @echo "un*x m4:"
  53.     time ${MBIN}/m4 <test.m4 >unxm4.out
  54.     @echo "pd m4:"
  55.     time ./m4 <test.m4 >pdm4.out
  56.     @echo "output comparisons.."
  57.     -diff pdm4.out unxm4.out
  58.     @rm -f pdm4.out unxm4.out
  59. clean:
  60.     rm -f *.o core m4 *.out
  61. pack:
  62.     shar -a makefile ${INCL} ${CSRC} >M4MAIN.SHAR
  63.     shar -a ${MSRC} ${DOCS} >M4MSRC.SHAR
  64.