Commit a650c838 authored by Federico Vaga's avatar Federico Vaga Committed by Alessandro Rubini

Makefile: use src instead of obj variable

src point to the source code. Obj point to the object. Sometimes they
live toghether but users can decide to build the object outside the
source tree (e.g. O=/output/path/).
Signed-off-by: Federico Vaga's avatarFederico Vaga <>
Acked-by: Alessandro Rubini's avatarAlessandro Rubini <>
parent 5fa29894
LINUX ?= /lib/modules/$(shell uname -r)/build
ccflags-y += -I$M/include
ccflags-y += -I$(src)/include
obj-m = fmc.o
obj-m += fmc-fakedev.o
......@@ -18,7 +18,7 @@ fmc-y += fmc-dump.o
GIT_VERSION = $(shell cd $(src); git describe --dirty --long --tags)
# The library includes <sdb.h>, so point -I directtly there
ccflags-y += -I$M/include/linux -DGIT_VERSION=\"$(GIT_VERSION)\"
ccflags-y += -I$(src)/include/linux -DGIT_VERSION=\"$(GIT_VERSION)\"
fmc-y += ../sdb-lib/access.o
fmc-y += ../sdb-lib/glue.o
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment