diff options
-rw-r--r-- | Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -31,7 +31,7 @@ endif KVERS_MAJ:=$(shell echo $(KVERS) | cut -d. -f1-2) KINCLUDES:=$(KSRC)/include -CFLAGS+=-I. -O4 -g -Wall -DBUILDING_TONEZONE #-DTONEZONE_DRIVER +CFLAGS+=-I. -O4 -g -fPIC -Wall -DBUILDING_TONEZONE #-DTONEZONE_DRIVER ifneq (,$(findstring ppc,$(UNAME_M))) CFLAGS_PPC:=-fsigned-char endif @@ -39,7 +39,6 @@ ifneq (,$(findstring x86_64,$(UNAME_M))) CFLAGS_x86_64:=-m64 endif CFLAGS+=$(CFLAGS_PPC) $(CFLAGS_x86_64) -LCFLAGS=-fPIC $(CFLAGS) -DBUILDING_TONEZONE KFLAGS=-I$(KINCLUDES) -O6 KFLAGS+=-DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I$(KSRC)/drivers/net \ -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I$(KSRC)/drivers/net/wan -I$(KINCLUDES)/net @@ -237,10 +236,10 @@ tor2ee.o: tor2-hw.h tor2ee: LDLIBS+=-lpci zonedata.lo: zonedata.c - $(CC) -c $(LCFLAGS) -o $@ $^ + $(CC) -c $(CFLAGS) -o $@ $^ tonezone.lo: tonezone.c - $(CC) -c $(LCFLAGS) -o $@ $^ + $(CC) -c $(CFLAGS) -o $@ $^ torisatool: torisatool.o $(CC) -o $@ $^ |