mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Add a hook for doing #include magic (for src/tools/tools/kerninclude).
This commit is contained in:
parent
74972d42db
commit
26dac111f1
6 changed files with 6 additions and 6 deletions
|
|
@ -38,7 +38,7 @@ SIZE?= size
|
|||
OBJCOPY?= objcopy
|
||||
|
||||
COPTFLAGS?=-O
|
||||
INCLUDES= -nostdinc -I- -I. -I$S
|
||||
INCLUDES= -nostdinc -I- ${INCLMAGIC} -I. -I$S
|
||||
# This hack is to allow kernel compiles to succeed on machines w/out srcdist
|
||||
.if exists($S/../include)
|
||||
INCLUDES+= -I$S/../include
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ SIZE?= size
|
|||
OBJCOPY?= objcopy
|
||||
|
||||
COPTFLAGS?=-O
|
||||
INCLUDES= -nostdinc -I- -I. -I$S
|
||||
INCLUDES= -nostdinc -I- ${INCLMAGIC} -I. -I$S
|
||||
# This hack is to allow kernel compiles to succeed on machines w/out srcdist
|
||||
.if exists($S/../include)
|
||||
INCLUDES+= -I$S/../include
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ SIZE?= size
|
|||
OBJCOPY?= objcopy
|
||||
|
||||
COPTFLAGS?=-O
|
||||
INCLUDES= -nostdinc -I- -I. -I$S
|
||||
INCLUDES= -nostdinc -I- ${INCLMAGIC} -I. -I$S
|
||||
# This hack is to allow kernel compiles to succeed on machines w/out srcdist
|
||||
.if exists($S/../include)
|
||||
INCLUDES+= -I$S/../include
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ SIZE?= size
|
|||
OBJCOPY?= objcopy
|
||||
|
||||
COPTFLAGS?=-O
|
||||
INCLUDES= -nostdinc -I- -I. -I$S
|
||||
INCLUDES= -nostdinc -I- ${INCLMAGIC} -I. -I$S
|
||||
# This hack is to allow kernel compiles to succeed on machines w/out srcdist
|
||||
.if exists($S/../include)
|
||||
INCLUDES+= -I$S/../include
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ SIZE?= size
|
|||
OBJCOPY?= objcopy
|
||||
|
||||
COPTFLAGS?=-O
|
||||
INCLUDES= -nostdinc -I- -I. -I$S
|
||||
INCLUDES= -nostdinc -I- ${INCLMAGIC} -I. -I$S
|
||||
# This hack is to allow kernel compiles to succeed on machines w/out srcdist
|
||||
.if exists($S/../include)
|
||||
INCLUDES+= -I$S/../include
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ CFLAGS+= -DKLD_MODULE
|
|||
# such paths after -nostdinc. It doesn't seem to be possible to
|
||||
# add to the front of `make' variable.
|
||||
_ICFLAGS:= ${CFLAGS:M-I*}
|
||||
CFLAGS+= -nostdinc -I- ${_ICFLAGS}
|
||||
CFLAGS+= -nostdinc -I- ${INCLMAGIC} ${_ICFLAGS}
|
||||
|
||||
# Add -I paths for system headers. Individual KLD makefiles don't
|
||||
# need any -I paths for this. Similar defaults for .PATH can't be
|
||||
|
|
|
|||
Loading…
Reference in a new issue