projects
/
my-code
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bla
[my-code/kernel.git]
/
hello
/
Makefile
diff --git
a/hello/Makefile
b/hello/Makefile
index
6339fdd
..
c1f7bfc
100644
(file)
--- a/
hello/Makefile
+++ b/
hello/Makefile
@@
-1,13
+1,13
@@
# Makefile of hello.o - my first kernel module.
INCLUDEDIR = /usr/include
# Makefile of hello.o - my first kernel module.
INCLUDEDIR = /usr/include
-
-CFLAGS = -D__KERNEL__ -DMODULE -O -Wall -I$(INCLUDEDIR)
+CC = gcc
+CFLAGS = -D__KERNEL__ -DMODULE -O -Wall
#
-I$(INCLUDEDIR)
# findout kernel version.
VER = $(shell awk -F\" '/REL/ {print $$2}' $(INCLUDEDIR)/linux/version.h)
# findout kernel version.
VER = $(shell awk -F\" '/REL/ {print $$2}' $(INCLUDEDIR)/linux/version.h)
-OBJS = hello.o
+OBJS = hello.o
hello-1.o
all: $(OBJS)
all: $(OBJS)