X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fkernel.git;a=blobdiff_plain;f=hello%2FMakefile;fp=hello%2FMakefile;h=0000000000000000000000000000000000000000;hp=c1f7bfc488a9c52802e169a03d1796fb633d13fb;hb=8a336451c7768f15c42feaf03c4d82acd88bc6cc;hpb=5ef1719c674e2eeedbfaef7dacb982b3b7c3c74c diff --git a/hello/Makefile b/hello/Makefile deleted file mode 100644 index c1f7bfc..0000000 --- a/hello/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -# Makefile of hello.o - my first kernel module. - -INCLUDEDIR = /usr/include -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 hello-1.o - -all: $(OBJS) - -#hello.o: hello.o -# $(LD) -r $^ -o $@ - -install: - install -d /lib/modules/$(VER)/misc - install -c hello.o /lib/modules/$(VER)/misc - -clean: - rm -f *.o *~ core - -uninstall: - rm -f /lib/modules/$(VER)/misc/hello.o -