Makefile.inc 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # $MirOS: contrib/hosted/fwcf/Makefile.inc,v 1.10 2007/05/08 21:52:53 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. __CRAZY= Yes
  6. MKC_DEBG= cpp
  7. UNAME_S!= uname -s
  8. .ifndef LIB
  9. . if exists(${.CURDIR}/../lib/${__objdir})
  10. DPADD+= ${.CURDIR}/../lib/${__objdir}/libfwcf.a
  11. LDADD+= -L${.CURDIR}/../lib/${__objdir} -lfwcf
  12. . else
  13. DPADD+= ${.CURDIR}/../lib/libfwcf.a
  14. LDADD+= -L${.CURDIR}/../lib -lfwcf
  15. . endif
  16. .endif
  17. CPPFLAGS+= -I${.CURDIR}/..
  18. .PATH: ${.CURDIR}/..
  19. test: .NOTMAIN all
  20. COMPRESSORS+= c_null.c
  21. COMPRESSORS+= c_zlib.c
  22. CPPFLAGS+= -DZCONST=const
  23. COMPRESSORS+= c_lzo1x1.c
  24. MKDEP+= -I${.CURDIR}/../bundled
  25. CFLAGS_c_lzo1x1.o+= -I${.CURDIR}/../bundled -Wno-undef
  26. _CFLADD+= c_lzo1x1.o
  27. .if make(test)
  28. CFLAGS_sys_bsd.o+= -DRND_DISABLE
  29. _CFLADD+= sys_bsd.o
  30. .endif
  31. .if ${UNAME_S} == "OpenBSD"
  32. . for _i in ${_CFLADD}
  33. CFLAGS+= ${CFLAGS_${_i}}
  34. . endfor
  35. .endif