Lines Matching +full:zlib +full:- +full:dev
20 .-include <local.kern.pre.mk>
55 CTFFLAGS+= -g
58 _COPTFLAGS_EXTRA=-frename-registers
62 COPTFLAGS?=-O2 -pipe ${_COPTFLAGS_EXTRA}
63 .if !empty(COPTFLAGS:M-O[23s]) && empty(COPTFLAGS:M-fno-strict-aliasing)
64 COPTFLAGS+= -fno-strict-aliasing
69 NOSTDINC= -nostdinc
71 INCLUDES= ${NOSTDINC} ${INCLMAGIC} -I. -I$S -I$S/contrib/ck/include
74 CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h
77 CFLAGS.gcc+= -fms-extensions -finline-limit=${INLINE_LIMIT}
78 CFLAGS.gcc+= --param inline-unit-growth=${CFLAGS_PARAM_INLINE_UNIT_GROWTH}
79 CFLAGS.gcc+= --param large-function-growth=${CFLAGS_PARAM_LARGE_FUNCTION_GROWTH}
80 CFLAGS.gcc+= -fms-extensions
84 WERROR?= -Werror
87 # default over to -fno-common, making this redundant.
88 CFLAGS+= -fno-common
91 ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${CFLAGS} ${ASM_CFLAGS.${.IMPSRC:T}}
104 GCOV_CFLAGS+= -fprofile-arcs -ftest-coverage
110 # Put configuration-specific C flags last so that they can override
114 .if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mbuild-id}
115 LDFLAGS+= --build-id=sha1
125 LDFLAGS+= -z max-page-size=2097152
127 LDFLAGS+= -z common-page-size=4096
129 .if defined(LINKER_FEATURES) && !${LINKER_FEATURES:Mifunc-noplt}
130 .warning "Linker ${LD} does not support -z ifunc-noplt -> ifunc calls are unoptimized."
132 LDFLAGS+= -z notext -z ifunc-noplt
139 # LLD (address is a PC-relative calculation, and BFD works around this by
140 # rewriting the instructions to generate an absolute address of 0); -fPIE
144 CFLAGS+= -fPIE
148 NORMAL_C= ${CC} -c ${CFLAGS} ${WERROR} ${.IMPSRC}
149 NORMAL_S= ${CC:N${CCACHE_BIN}} -c ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}
150 NORMAL_C_NOWERROR= ${CC} -c ${CFLAGS} ${.IMPSRC}
152 NORMAL_M= ${AWK} -f $S/tools/makeobjops.awk ${.IMPSRC} -c ; \
153 ${CC} -c ${CFLAGS} ${WERROR} ${.PREFIX}.c
155 NORMAL_FW= uudecode -o ${.TARGET} ${.ALLSRC}
156 NORMAL_FWO= ${CC:N${CCACHE_BIN}} -c ${ASM_CFLAGS} ${WERROR} -o ${.TARGET} \
157 $S/kern/firmw.S -DFIRMW_FILE=\""${.ALLSRC:M*.fw}"\" \
158 -DFIRMW_SYMBOL="${.ALLSRC:M*.fw:C/[-.\/]/_/g}"
160 # Remove sanitizer arguments. Some -fno-sanitize* and -fasan-shadow-offset*
162 NOSAN_C= ${NORMAL_C:N-fsanitize*:N-fno-sanitize*:N-fasan-shadow-offset*}
165 ZSTD_C= ${CC} -c -DZSTD_HEAPMODE=1 -I$S/contrib/zstd/lib/freebsd ${CFLAGS} \
166 -I$S/contrib/zstd/lib -I$S/contrib/zstd/lib/common ${WERROR} \
167 -Wno-missing-prototypes -U__BMI__ -DZSTD_NO_INTRINSICS ${.IMPSRC}
171 # that neither attribute nor command-line flag were entirely successful in
174 ZSTD_DECOMPRESS_BLOCK_FLAGS= -fno-tree-vectorize
180 -DFREEBSD_NAMECACHE \
181 -D_SYS_VMEM_H_ \
182 -D__KERNEL \
183 -D__KERNEL__ \
184 -nostdinc \
185 -include $S/modules/zfs/static_ccompile.h \
186 -I${ZINCDIR} \
187 -I${ZINCDIR}/os/freebsd \
188 -I${ZINCDIR}/os/freebsd/spl \
189 -I${ZINCDIR}/os/freebsd/zfs \
190 -I$S/modules/zfs \
191 -I$S/contrib/openzfs/module/zstd/include \
193 -Wno-cast-qual \
194 -Wno-duplicate-decl-specifier \
195 -Wno-missing-braces \
196 -Wno-missing-prototypes \
197 -Wno-parentheses \
198 -Wno-pointer-arith \
199 -Wno-strict-prototypes \
200 -Wno-switch \
201 -Wno-undef \
202 -Wno-uninitialized \
203 -Wno-unknown-pragmas \
204 -Wno-unused \
205 -include ${ZINCDIR}/os/freebsd/spl/sys/ccompile.h \
206 -I$S/cddl/contrib/opensolaris/uts/common \
207 -I$S -I$S/cddl/compat/opensolaris
208 CDDL_C= ${CC} -c ${CDDL_CFLAGS} ${WERROR} ${.IMPSRC}
211 ZFS_CFLAGS+= -I$S/contrib/openzfs/module/icp/include \
212 ${CDDL_CFLAGS} -DBUILDING_ZFS -DHAVE_UIO_ZEROCOPY \
213 -DWITH_NETDUMP -D__KERNEL__ -D_SYS_CONDVAR_H_ -DSMP
216 ZFS_CFLAGS+= -D__x86_64 -DHAVE_SSE2 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 \
217 -DHAVE_AVX -DHAVE_AVX2 -DHAVE_AVX512F -DHAVE_AVX512VL -DHAVE_AVX512BW
222 ZFS_CFLAGS+= -DBITS_PER_LONG=32
224 ZFS_CFLAGS+= -DBITS_PER_LONG=64
228 ZFS_ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${ZFS_CFLAGS}
229 ZFS_C= ${CC} -c ${ZFS_CFLAGS} ${WERROR} ${.IMPSRC}
230 ZFS_RPC_C= ${CC} -c ${ZFS_CFLAGS} -DHAVE_RPC_TYPES ${WERROR} ${.IMPSRC}
231 ZFS_S= ${CC} -c ${ZFS_ASM_CFLAGS} ${WERROR} ${.IMPSRC}
234 ATH_CFLAGS= -I${SRCTOP}/sys/dev/ath ${NO_WUNUSED_BUT_SET_VARIABLE}
235 ATH_C= ${CC} -c ${CFLAGS} ${WERROR} ${ATH_CFLAGS} ${.IMPSRC}
238 DTRACE_CFLAGS= -DBUILDING_DTRACE ${CDDL_CFLAGS} -I$S/cddl/dev/dtrace -I$S/cddl/dev/dtrace/${MACHINE…
240 DTRACE_CFLAGS+= -I$S/cddl/contrib/opensolaris/uts/intel -I$S/cddl/dev/dtrace/x86
242 DTRACE_CFLAGS+= -I$S/cddl/contrib/opensolaris/common/util -I$S -DDIS_MEM -DSMP -I$S/cddl/compat/ope…
243 DTRACE_CFLAGS+= -I$S/cddl/contrib/opensolaris/uts/common
244 DTRACE_ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${DTRACE_CFLAGS}
245 DTRACE_C= ${CC} -c ${DTRACE_CFLAGS} ${WERROR} ${.IMPSRC}
246 DTRACE_S= ${CC} -c ${DTRACE_ASM_CFLAGS} ${WERROR} ${.IMPSRC}
248 # zlib code supports systems that are quite old, but will fix this issue once C2x gets radified.
249 # see https://github.com/madler/zlib/issues/633 for details
250 ZLIB_CFLAGS= -Wno-cast-qual ${NO_WDEPRECATED_NON_PROTOTYPE} ${NO_WSTRICT_PROTOTYPES}
251 ZLIB_C= ${CC} -c ${CFLAGS} ${WERROR} ${ZLIB_CFLAGS} ${.IMPSRC}
254 FBT_CFLAGS= -DBUILDING_DTRACE -nostdinc -I$S/cddl/dev/fbt/${MACHINE_CPUARCH} -I$S/cddl/dev/fbt ${CD…
256 FBT_CFLAGS+= -I$S/cddl/dev/fbt/x86
258 FBT_C= ${CC} -c ${FBT_CFLAGS} ${WERROR} ${.IMPSRC}
268 # Linux Kernel Programming Interface C-flags
269 LINUXKPI_INCLUDES= -I$S/compat/linuxkpi/common/include \
270 -I$S/compat/linuxkpi/dummy/include \
271 -include $S/compat/linuxkpi/common/include/linux/kconfig.h
276 OFEDINCLUDES= -I$S/ofed/include -I$S/ofed/include/uapi ${LINUXKPI_INCLUDES}
277 OFEDNOERR= -Wno-cast-qual -Wno-pointer-arith
278 OFEDCFLAGS= ${CFLAGS:N-I*} -DCONFIG_INFINIBAND_USER_MEM \
279 ${OFEDINCLUDES} ${CFLAGS:M-I*} ${OFEDNOERR}
280 OFED_C_NOIMP= ${CC} -c -o ${.TARGET} ${OFEDCFLAGS} ${WERROR}
285 -I${SRCTOP}/sys/contrib/xz-embedded/freebsd \
286 -I${SRCTOP}/sys/contrib/xz-embedded/linux/lib/xz \
289 BNXT_CFLAGS= -I$S/dev/bnxt/bnxt_en ${OFEDCFLAGS}
290 BNXT_C_NOIMP= ${CC} -c -o ${.TARGET} ${BNXT_CFLAGS} ${WERROR}
298 SYSTEM_OBJS+= force-dynamic-hack.pico
300 KEYMAP=kbdcontrol -P ${SRCTOP}/share/vt/keymaps -P ${SRCTOP}/share/syscons/keymaps
301 KEYMAP_FIX=sed -e 's/^static keymap_t.* = /static keymap_t key_map = /' -e 's/^static accentmap_t.*…
310 ${LD} -m ${LD_EMULATION} -Bdynamic -L $S/conf -T ${LDSCRIPT} ${_LDFLAGS} \
311 --no-warn-mismatch --warn-common --export-dynamic \
312 --dynamic-linker /red/herring -X
313 SYSTEM_LD= @${SYSTEM_LD_BASECMD} -o ${.TARGET} ${SYSTEM_OBJS} vers.o
319 (empty(.MAKEFLAGS:M-V) || defined(NO_SKIP_MPATH))
320 __MPATH!=find ${S:tA}/ -name \*_if.m