home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 138.lha / M4 / Sources / makefile < prev    next >
Makefile  |  1986-11-20  |  2KB  |  58 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 = -DEXTENDED -DMYMKTMP -cw
  15. DEST =  :
  16. 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. LINKFILE = m4.lnk
  23. MBIN = c:
  24. m4: ${OBJS}
  25.         @echo "loading m4.."
  26.         @lc ${CFLAGS} ${OBJS}
  27.         @blink with ${LINKFILE}
  28.         @list m4
  29. ${OBJS}: ${INCL} 
  30. install: m4
  31.         copy ./m4 ${DEST}/m4
  32.         copy ./m4.1 ${MANL}/m4.l
  33. deinstall: 
  34.         delete ${DEST}/m4
  35.         delete ${MANL}/m4.l
  36. time: m4
  37.         @echo "timing comparisons.."
  38.         @echo "un*x m4:"
  39.         time ${MBIN}/m4 <test.m4 >unxm4.out
  40.         @echo "pd m4:"
  41.         time ./m4 <test.m4 >pdm4.out
  42.         @echo "un*x m4:"
  43.         time ${MBIN}/m4 <test.m4 >unxm4.out
  44.         @echo "pd m4:"
  45.         time ./m4 <test.m4 >pdm4.out
  46.         @echo "un*x m4:"
  47.         time ${MBIN}/m4 <test.m4 >unxm4.out
  48.         @echo "pd m4:"
  49.         time ./m4 <test.m4 >pdm4.out
  50.         @echo "output comparisons.."
  51.         -diff pdm4.out unxm4.out
  52.         @rm -f pdm4.out unxm4.out
  53. clean:
  54.         delete #?.o core m4 #?.out
  55. pack:
  56.         shar -a makefile ${INCL} ${CSRC} >M4MAIN.SHAR
  57.         shar -a ${MSRC} ${DOCS} >M4MSRC.SHAR
  58.