X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fkernel.git;a=blobdiff_plain;f=hello%2FMakefile;fp=hello%2FMakefile;h=5947db3cd47cefebcfd3d7dba4e5a8ea8b0e6e12;hp=6339fddab4493cb0a266e0a95f6e8c3c88654c78;hb=9e37f9f283bb4c910f09b812b858bce3b4de3562;hpb=395fd5f8ac9b98dac953183fa3d8ccb38c3a86c1 diff --git a/hello/Makefile b/hello/Makefile index 6339fdd..5947db3 100644 --- a/hello/Makefile +++ b/hello/Makefile @@ -1,8 +1,8 @@ # 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)