freebsd-dev/sys/modules/bios/smapi/Makefile
Warner Losh 9aca3e0f2b Clang's 3.5 integrated assembler now handles these files correctly (it
has support for the .codeXX directives). However, it is desirable, for
a time, to allow kernels to be built with clang 3.4. Historically, it
has been advantageous to allow stable X-1 to build kernels the old
way (so long as the impact of doing so is small), and this restores
that ability.

Also, centralize the addition of ${ASM_CFLAGS.${.IMPSRC}}, place it in
kern.mk rather than kern.pre.mk so that all modules can benefit, and
give the same treatment to CFLAGS in kern.mk as well.
2015-01-05 12:28:22 +00:00

13 lines
181 B
Makefile

# $FreeBSD$
#
.PATH: ${.CURDIR}/../../../i386/bios
KMOD= smapi
SRCS= smapi.c smapi_bios.S \
bus_if.h device_if.h
.include <bsd.kmod.mk>
CFLAGS.smapi_bios.S= ${CLANG_NO_IAS34}