# HG changeset patch # User alex # Date 1012631684 0 # Node ID 68d588f4914b4981b0ea34b432d3a1f644475936 # Parent f04a9bc331a538c8e77bc18df89cb90292e2915f initial diff -r f04a9bc331a5 -r 68d588f4914b libdha/kernelhelper/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libdha/kernelhelper/Makefile Sat Feb 02 06:34:44 2002 +0000 @@ -0,0 +1,26 @@ +KERNEL_INCLUDES = /usr/src/linux/include +INCLUDES = -I$(KERNEL_INCLUDES) +CFLAGS = -g -O2 -Wall -D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h +VERSION = $(shell grep UTS_RELEASE $(KERNEL_INCLUDES)/linux/version.h | cut -d '"' -f2) +MDIR = /lib/modules/$(VERSION)/misc + +all: dhahelper.o test + +dhahelper.o: dhahelper.c dhahelper.h + $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c + +test: test.c + $(CC) -g -O -Wall $(INCLUDES) -o $@ $@.c + +install: dhahelper.o + if test ! -d $(MDIR) ; then mkdir -p $(MDIR) ; fi + install -m 644 dhahelper.o $(MDIR)/dhahelper.o + depmod -a + +dep: + +clean: + rm -f *.o *~ + +distclean: clean + rm -f test