blob: f9301ae7912b23104ce738deb8a5b23a7202e8e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- mib-modules/Makefile.old 2011-06-21 00:26:30.000000000 +0400
+++ mib-modules/Makefile 2011-06-21 00:29:28.000000000 +0400
@@ -18,8 +18,8 @@
iscsiAuthData.o
CC = gcc
-CFLAGS = -I$(INCLDIR) -I$(INCLDIR)/agent -I$(INCLDIR)/agent/mibgroup -shared -fPIC
-CFLAGS += -I../include -Wall -Werror
+INCLUDES = -I$(INCLDIR) -I$(INCLDIR)/agent -I$(INCLDIR)/agent/mibgroup
+INCLUDES += -I../include
#CFLAGS +=$(AUTO_CFLAGS)
LD = gcc -shared
@@ -29,7 +29,7 @@
all: $(TARG)
%.o: %.c *.h
- $(CC) $(CFLAGS) -o $@ -c $<
+ $(CC) -fPIC $(INCLUDES) $(CFLAGS) -o $@ -c $<
$(TARG): $(OBJS)
$(LD) -o $@ $(OBJS)
|