Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # $MirOS: contrib/hosted/fwcf/fwcf.helper/Makefile,v 1.9 2007/03/13 18:14:31 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.helper
  6. SRCS= tool.c sys_bsd.c
  7. CFLAGS_tool.o+= -DSMALL
  8. _CFLADD+= tool.o
  9. NOMAN= Yes
  10. SRCS+= compress.c
  11. SRCS+= cpr_get.c
  12. SRCS+= cpr_list.c
  13. SRCS+= cpr_lsth.c
  14. SRCS+= ft_creat.c
  15. SRCS+= ft_pack.c
  16. SRCS+= ft_packm.c
  17. SRCS+= fts_subs.c
  18. SRCS+= header.c
  19. SRCS+= minilzop.c
  20. SRCS+= unwraps.c
  21. SRCS+= wraps.c
  22. CLEANFILES+= ${.CURDIR}/test.out ${.CURDIR}/test.nil
  23. LIB= # don't need, thanks
  24. .ifdef COMPRESSOR_ZLIB
  25. SRCS+= c_zlib.c
  26. DPADD+= ${LIBZ}
  27. LDADD+= -lz
  28. .else
  29. SRCS+= c_lzo1x1.c
  30. .endif
  31. test: ${PROG}
  32. ./${PROG} -M ${.CURDIR}/../mkfwcf/CVS >${.CURDIR}/test.out
  33. ./${PROG} -Me >${.CURDIR}/test.nil
  34. # ./${PROG} -U out.test <${.CURDIR}/../mkfwcf/test.out
  35. .ifdef COMPRESSOR_ZLIB
  36. ./${PROG} -U out.tesz <${.CURDIR}/../mkfwcf/tesz.out
  37. .else
  38. ./${PROG} -U out.tesL <${.CURDIR}/../mkfwcf/tesL.out
  39. .endif
  40. .include <bsd.prog.mk>
  41. clean cleandir: clean-local
  42. clean-local:
  43. -rm -rf out.test out.tesz out.tesL