mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 04:01:26 +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
12 lines
256 B
Plaintext
12 lines
256 B
Plaintext
ifneq ($(and $(KBUILD_EXTMOD),$(if $(findstring $(abspath $(srctree)),$(abspath $(KBUILD_EXTMOD))),,true)),)
|
|
ccflags-y += -I$(KBUILD_EXTMOD)/../scst/include
|
|
endif
|
|
|
|
obj-$(CONFIG_FCST) += fcst.o
|
|
|
|
fcst-objs := \
|
|
ft_cmd.o \
|
|
ft_io.o \
|
|
ft_scst.o \
|
|
ft_sess.o
|