mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
Move the build_mode file from the top level into the scst directory. Write build mode defines into scst/include/build_mode.h and include that file directly or indirectly in all source files that depend on these #defines. This approach has the advantage that "make clean" does no longer has to be run when switching between build modes because the kernel build system recognizes build_mode.h as a dependency and triggers a rebuild of all source files that directly or indirectly include the build_mode.h header file. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8347 d57e44dd-8a1f-0410-8b47-8ef2f437770f
33 lines
928 B
C
33 lines
928 B
C
/*
|
|
* Copyright (C) 2007 - 2018 Vladislav Bolkhovitin
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#ifndef ISCSI_TRACE_FLAG_H
|
|
#define ISCSI_TRACE_FLAG_H
|
|
|
|
#ifndef INSIDE_KERNEL_TREE
|
|
#include "build_mode.h"
|
|
#endif
|
|
|
|
/*
|
|
* Only include this header file from iscsi-scst source files and not from
|
|
* isert-scst source files.
|
|
*/
|
|
|
|
#if defined(CONFIG_SCST_DEBUG) || defined(CONFIG_SCST_TRACING)
|
|
extern unsigned long iscsi_trace_flag;
|
|
#define trace_flag iscsi_trace_flag
|
|
#endif
|
|
|
|
#endif /* ISCSI_TRACE_FLAG_H */
|