X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=hello%2FMakefile;h=c1f7bfc488a9c52802e169a03d1796fb633d13fb;hb=5ef1719c674e2eeedbfaef7dacb982b3b7c3c74c;hp=6339fddab4493cb0a266e0a95f6e8c3c88654c78;hpb=395fd5f8ac9b98dac953183fa3d8ccb38c3a86c1;p=my-code%2Fkernel.git diff --git a/hello/Makefile b/hello/Makefile index 6339fdd..c1f7bfc 100644 --- a/hello/Makefile +++ b/hello/Makefile @@ -1,13 +1,13 @@ # 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) -OBJS = hello.o +OBJS = hello.o hello-1.o all: $(OBJS)