[Prex-devel] [PATCH 20/22] add __KERNEL__ and __DRIVER__ flags to allow common headers to selective
Status: Beta
Brought to you by:
kohtani
From: <and...@gm...> - 2007-06-06 00:55:07
|
add __KERNEL__ and __DRIVER__ flags to allow common headers to selectively expose interfaces --- mk/dev.mk | 4 ++-- mk/sys.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mk/dev.mk b/mk/dev.mk index 68ddc5b..177ce06 100755 --- a/mk/dev.mk +++ b/mk/dev.mk @@ -6,8 +6,8 @@ INC_FLAGS = -I$(PREX_SRC)/conf \ -I$(PREX_SRC)/dev/include ASFLAGS = $(INC_FLAGS) -CFLAGS = $(INC_FLAGS) -nostdinc -fno-builtin -CPPFLAGS = $(INC_FLAGS) +CPPFLAGS := -D__KERNEL__ -D__DRIVER__ $(INC_FLAGS) +CFLAGS := $(CPPFLAGS) -nostdinc -fno-builtin LDFLAGS = -static -nostdlib -r ifeq ($(KTRACE),1) diff --git a/mk/sys.mk b/mk/sys.mk index fea91ac..d0b4a98 100755 --- a/mk/sys.mk +++ b/mk/sys.mk @@ -6,8 +6,8 @@ INC_FLAGS = -I$(PREX_SRC)/conf \ -I$(PREX_SRC)/sys/include ASFLAGS = $(INC_FLAGS) -CFLAGS = $(INC_FLAGS) -nostdinc -fno-builtin -CPPFLAGS = $(INC_FLAGS) +CPPFLAGS := -D__KERNEL__ $(INC_FLAGS) +CFLAGS := $(CPPFLAGS) -nostdinc -fno-builtin LDFLAGS = -static -nostdlib ifeq ($(KTRACE),1) -- 1.5.0.3.GIT |