Makefile 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # $MirOS: contrib/hosted/fwcf/tool/Makefile,v 1.5 2007/02/28 22:59:38 tg Exp $
  2. # This file is part of the FreeWRT project. FreeWRT is copyrighted
  3. # material, please see the LICENCE file in the top-level directory
  4. # or at http://www.freewrt.org/licence for details.
  5. PROG= fwcf_tool
  6. SRCS= tool.c ${COMPRESSORS} sys_bsd.c
  7. NOMAN= yes
  8. DPADD+= ${LIBZ}
  9. LDADD+= -lz
  10. CLEANFILES+= ${.CURDIR}/test_c.out ${.CURDIR}/tesz_c.out ${.CURDIR}/tesL_c.out \
  11. ${.CURDIR}/test_c.nil ${.CURDIR}/tesz_c.nil ${.CURDIR}/tesL_c.nil \
  12. ${.CURDIR}/test_d.out ${.CURDIR}/tesz_d.out ${.CURDIR}/tesL_d.out \
  13. ${.CURDIR}/test_d.nil ${.CURDIR}/tesz_d.nil ${.CURDIR}/tesL_d.nil \
  14. ${.CURDIR}/test_r.out ${.CURDIR}/tesz_r.out ${.CURDIR}/tesL_r.out \
  15. ${.CURDIR}/test_r.nil ${.CURDIR}/tesz_r.nil ${.CURDIR}/tesL_r.nil \
  16. ${.CURDIR}/dtest_d.out ${.CURDIR}/dtesz_d.out ${.CURDIR}/dtesL_d.out \
  17. ${.CURDIR}/dtest_d.nil ${.CURDIR}/dtesz_d.nil ${.CURDIR}/dtesL_d.nil \
  18. ${.CURDIR}/test_D.out ${.CURDIR}/test_D.cz
  19. test: ${PROG}
  20. ./${PROG} -Mo ${.CURDIR}/test_c.out ${.CURDIR}/../mkfwcf/CVS
  21. ./${PROG} -MC 1 -o ${.CURDIR}/tesz_c.out ${.CURDIR}/../mkfwcf/CVS
  22. ./${PROG} -MC 0x10 -o ${.CURDIR}/tesL_c.out ${.CURDIR}/../mkfwcf/CVS
  23. ./${PROG} -Meo ${.CURDIR}/test_c.nil
  24. ./${PROG} -MeC 1 -o ${.CURDIR}/tesz_c.nil
  25. ./${PROG} -MeC 16 -o ${.CURDIR}/tesL_c.nil
  26. ./${PROG} -Ud <${.CURDIR}/test_c.out >${.CURDIR}/dtest_d.out
  27. ./${PROG} -Ud <${.CURDIR}/tesz_c.out >${.CURDIR}/dtesz_d.out
  28. ./${PROG} -Ud <${.CURDIR}/tesL_c.out >${.CURDIR}/dtesL_d.out
  29. ./${PROG} -Ud <${.CURDIR}/test_c.nil >${.CURDIR}/dtest_d.nil
  30. ./${PROG} -Ud <${.CURDIR}/tesz_c.nil >${.CURDIR}/dtesz_d.nil
  31. ./${PROG} -Ud <${.CURDIR}/tesL_c.nil >${.CURDIR}/dtesL_d.nil
  32. ./${PROG} -Ui ${.CURDIR}/test_c.out out.test
  33. ./${PROG} -Ui ${.CURDIR}/tesz_c.out out.tesz
  34. ./${PROG} -Ui ${.CURDIR}/tesL_c.out out.tesL
  35. .ifndef notyet
  36. ./${PROG} -Ri ${.CURDIR}/tesz_c.out -o ${.CURDIR}/test_r.out
  37. ./${PROG} -Ri ${.CURDIR}/tesz_c.nil -o ${.CURDIR}/test_r.nil
  38. ./${PROG} -Rci ${.CURDIR}/test_c.out -o ${.CURDIR}/tesz_r.out
  39. ./${PROG} -Rci ${.CURDIR}/test_c.nil -o ${.CURDIR}/tesz_r.nil
  40. ./${PROG} -RC 0x10 -i ${.CURDIR}/tesz_c.out -o ${.CURDIR}/tesL_r.out
  41. ./${PROG} -RC 16 -i ${.CURDIR}/test_c.nil -o ${.CURDIR}/tesL_r.nil
  42. .else
  43. ./${PROG} -Ri ${.CURDIR}/test_c.out -o ${.CURDIR}/test_r.out
  44. ./${PROG} -Ri ${.CURDIR}/test_c.nil -o ${.CURDIR}/test_r.nil
  45. ./${PROG} -Rci ${.CURDIR}/tesz_c.out -o ${.CURDIR}/tesz_r.out
  46. ./${PROG} -Rci ${.CURDIR}/tesz_c.nil -o ${.CURDIR}/tesz_r.nil
  47. .endif
  48. ./${PROG} -UD ${.CURDIR}/test_D.out <${.CURDIR}/tesL_c.out
  49. ./${PROG} -McD ${.CURDIR}/test_D.out >${.CURDIR}/test_D.cz
  50. .include <bsd.prog.mk>
  51. clean cleandir: clean-local
  52. clean-local:
  53. -rm -rf out.test out.tesz out.tesL