#!/usr/bin/make -skf
# =============================================================================
# 
# @(#) cflagcheck,v openss7-0_9_2_F(0.9.2.6) 2006/07/01 11:39:13
#
# -----------------------------------------------------------------------------
#
# Copyright (c) 2001-2006  OpenSS7 Corporation <http://www.openss7.com>
# Copyright (c) 1997-2000  Brian F. G. Bidulock <bidulock@openss7.org>
#
# All Rights Reserved.
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 675 Mass
# Ave, Cambridge, MA 02139, USA.
#
# -----------------------------------------------------------------------------
#
# U.S. GOVERNMENT RESTRICTED RIGHTS.  If you are licensing this Software on
# behalf of the U.S. Government ("Government"), the following provisions apply
# to you.  If the Software is supplied by the Department of Defense ("DoD"), it
# is classified as "Commercial Computer Software" under paragraph 252.227-7014
# of the DoD Supplement to the Federal Acquisition Regulations ("DFARS") (or any
# successor regulations) and the Government is acquiring only the license rights
# granted herein (the license rights customarily provided to non-Government
# users).  If the Software is supplied to any unit or agency of the Government
# other than DoD, it is classified as "Restricted Computer Software" and the
# Government's rights in the Software are defined in paragraph 52.227-19 of the
# Federal Acquisition Regulations ("FAR") (or any successor regulations) or, in
# the cases of NASA, in paragraph 18.52.227-86 of the NASA Supplement to the FAR
# (or any successor regulations).
#
# -----------------------------------------------------------------------------
#
# Commercial licensing and support of this software is available from OpenSS7
# Corporation at a fee.  See http://www.openss7.com/
#
# -----------------------------------------------------------------------------
#
# Last Modified 2006/07/01 11:39:13 by brian
#
# =============================================================================

KERNEL_TOPDIR ?= /usr/src/linux
KERNEL_CONFIG = /usr/src/linux/.config

.SILENT:

.DEFAULT: cflag-check

cflag-check:
	@echo "$(CFLAGS)" | sed -e 's|^$(CPPFLAGS) ||'

cppflag-check:
	@echo "$(CPPFLAGS)"

modflag-check:
	@echo "$(MODFLAGS)"

bldflag-check:
	@echo '$(basename_flags)'

flag-check:
	-:
	-echo "CROSS_COMPILE='$(CROSS_COMPILE)'"
	-echo "AS='$(AS)'"
	-echo "LD='$(LD)'"
	-echo "CC='$(CC)'"
	-echo "CPP='$(CPP)'"
	-echo "AR='$(AR)'"
	-echo "NM='$(NM)'"
	-echo "STRIP='$(STRIP)'"
	-echo "OBJCOPY='$(OBJCOPY)'"
	-echo "OBJDUMP='$(OBJDUMP)'"
	-:
	-echo "HOSTCC='$(HOSTCC)'"
	-echo "HOSTCFLAGS='$(HOSTCFLAGS)"
	-echo "GENKSYMS='$(GENKSYMS)'"
	-echo "DEPMOD='$(DEPMOD)'"
	-echo "KALLSYMS='$(KALLSYMS)'"
	-echo "MODFLAGS='$(MODFLAGS)'"
	-echo "CFLAGS_KERNEL='$(CFLAGS_KERNEL)'"
	-echo "PERL='$(PERL)'"
	-echo "AWK='$(AWK)'"
	-echo "RPM='$(RPM)'"
	-:
	-echo "CFLAGS='$(CFLAGS)'"
	-echo "CPPFLAGS='$(CPPFLAGS)'"
	-echo "AFLAGS='$(AFLAGS)'"


#include $(KERNEL_CONFIG)
include $(KERNEL_TOPDIR)/Makefile
-include $(KERNEL_TOPDIR)/scripts/Makefile.lib

