diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/cfgfs/src/Makefile.inc |
Initial import
Diffstat (limited to 'package/cfgfs/src/Makefile.inc')
-rw-r--r-- | package/cfgfs/src/Makefile.inc | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/package/cfgfs/src/Makefile.inc b/package/cfgfs/src/Makefile.inc new file mode 100644 index 000000000..82f7eb8f9 --- /dev/null +++ b/package/cfgfs/src/Makefile.inc @@ -0,0 +1,45 @@ +# $MirOS: contrib/hosted/fwcf/Makefile.inc,v 1.10 2007/05/08 21:52:53 tg Exp $ +#- +# This file is part of the FreeWRT project. FreeWRT is copyrighted +# material, please see the LICENCE file in the top-level directory +# or at http://www.freewrt.org/licence for details. + +__CRAZY= Yes +MKC_DEBG= cpp + +UNAME_S!= uname -s + +.ifndef LIB +. if exists(${.CURDIR}/../lib/${__objdir}) +DPADD+= ${.CURDIR}/../lib/${__objdir}/libfwcf.a +LDADD+= -L${.CURDIR}/../lib/${__objdir} -lfwcf +. else +DPADD+= ${.CURDIR}/../lib/libfwcf.a +LDADD+= -L${.CURDIR}/../lib -lfwcf +. endif +.endif + +CPPFLAGS+= -I${.CURDIR}/.. +.PATH: ${.CURDIR}/.. + +test: .NOTMAIN all + +COMPRESSORS+= c_null.c +COMPRESSORS+= c_zlib.c +CPPFLAGS+= -DZCONST=const + +COMPRESSORS+= c_lzo1x1.c +MKDEP+= -I${.CURDIR}/../bundled +CFLAGS_c_lzo1x1.o+= -I${.CURDIR}/../bundled -Wno-undef +_CFLADD+= c_lzo1x1.o + +.if make(test) +CFLAGS_sys_bsd.o+= -DRND_DISABLE +_CFLADD+= sys_bsd.o +.endif + +.if ${UNAME_S} == "OpenBSD" +. for _i in ${_CFLADD} +CFLAGS+= ${CFLAGS_${_i}} +. endfor +.endif |