comparison libdha/kernelhelper/Makefile @ 7073:b69ddd4d3bb9

removed -W -Wall -g and other gcc-specific warning/debug options patch by Joey Parrish <joey@yunamusic.com>
author arpi
date Thu, 22 Aug 2002 23:29:46 +0000
parents 68d588f4914b
children b069afd2a0de
comparison
equal deleted inserted replaced
7072:113d66d78967 7073:b69ddd4d3bb9
1 KERNEL_INCLUDES = /usr/src/linux/include 1 KERNEL_INCLUDES = /usr/src/linux/include
2 INCLUDES = -I$(KERNEL_INCLUDES) 2 INCLUDES = -I$(KERNEL_INCLUDES)
3 CFLAGS = -g -O2 -Wall -D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h 3 CFLAGS = -O2 -D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h
4 VERSION = $(shell grep UTS_RELEASE $(KERNEL_INCLUDES)/linux/version.h | cut -d '"' -f2) 4 VERSION = $(shell grep UTS_RELEASE $(KERNEL_INCLUDES)/linux/version.h | cut -d '"' -f2)
5 MDIR = /lib/modules/$(VERSION)/misc 5 MDIR = /lib/modules/$(VERSION)/misc
6 6
7 all: dhahelper.o test 7 all: dhahelper.o test
8 8
9 dhahelper.o: dhahelper.c dhahelper.h 9 dhahelper.o: dhahelper.c dhahelper.h
10 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c 10 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
11 11
12 test: test.c 12 test: test.c
13 $(CC) -g -O -Wall $(INCLUDES) -o $@ $@.c 13 $(CC) -O $(INCLUDES) -o $@ $@.c
14 14
15 install: dhahelper.o 15 install: dhahelper.o
16 if test ! -d $(MDIR) ; then mkdir -p $(MDIR) ; fi 16 if test ! -d $(MDIR) ; then mkdir -p $(MDIR) ; fi
17 install -m 644 dhahelper.o $(MDIR)/dhahelper.o 17 install -m 644 dhahelper.o $(MDIR)/dhahelper.o
18 depmod -a 18 depmod -a