squid: update to 6.13
[openadk.git] / package / cfgfs / src / Makefile.inc
blob4a9d6d687bbc78ca19de0885385bcd1692c619cf
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.
6 __CRAZY=                Yes
7 MKC_DEBG=               cpp
9 UNAME_S!=               uname -s
11 .ifndef LIB
12 .  if exists(${.CURDIR}/../lib/${__objdir})
13 DPADD+=                 ${.CURDIR}/../lib/${__objdir}/libfwcf.a
14 LDADD+=                 -L${.CURDIR}/../lib/${__objdir} -lfwcf
15 .  else
16 DPADD+=                 ${.CURDIR}/../lib/libfwcf.a
17 LDADD+=                 -L${.CURDIR}/../lib -lfwcf
18 .  endif
19 .endif
21 CPPFLAGS+=              -I${.CURDIR}/..
22 .PATH: ${.CURDIR}/..
24 test: .NOTMAIN all
26 COMPRESSORS+=           c_null.c
27 COMPRESSORS+=           c_zlib.c
28 CPPFLAGS+=              -DZCONST=const
30 COMPRESSORS+=           c_lzo1x1.c
31 MKDEP+=                 -I${.CURDIR}/../bundled
32 CFLAGS_c_lzo1x1.o+=     -I${.CURDIR}/../bundled -Wno-undef
33 _CFLADD+=               c_lzo1x1.o
35 .if make(test)
36 CFLAGS_sys_bsd.o+=      -DRND_DISABLE
37 _CFLADD+=               sys_bsd.o
38 .endif
40 .if ${UNAME_S} == "OpenBSD"
41 .  for _i in ${_CFLADD}
42 CFLAGS+=                ${CFLAGS_${_i}}
43 .  endfor
44 .endif