Line
Link Here
|
0 |
-- a/Makefile |
0 |
++ b/Makefile |
Lines 26-32
Link Here
|
26 |
endif |
26 |
endif |
27 |
endif |
27 |
endif |
28 |
|
28 |
|
29 |
KVER := $(shell $(CC) $(CFLAGS) -E -dM $(VERSION_FILE) | \ |
29 |
KVER := $(shell $(CC) $(CFLAGS) $(LDFLAGS) -E -dM $(VERSION_FILE) | \ |
30 |
grep UTS_RELEASE | awk '{ print $$3 }' | sed 's/\"//g') |
30 |
grep UTS_RELEASE | awk '{ print $$3 }' | sed 's/\"//g') |
31 |
|
31 |
|
32 |
KMOD := /lib/modules/$(KVER)/extra |
32 |
KMOD := /lib/modules/$(KVER)/extra |
33 |
-- a/usr/Makefile |
33 |
++ b/usr/Makefile |
Lines 1-4
Link Here
|
1 |
CFLAGS += -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include |
1 |
CFLAGS += -fno-inline -Wall -Wstrict-prototypes -I../include |
2 |
CFLAGS += -D_GNU_SOURCE # required for glibc >= 2.8 |
2 |
CFLAGS += -D_GNU_SOURCE # required for glibc >= 2.8 |
3 |
PROGRAMS = ietd ietadm |
3 |
PROGRAMS = ietd ietadm |
4 |
LIBS = |
4 |
LIBS = |
Lines 7-16
Link Here
|
7 |
|
7 |
|
8 |
ietd: ietd.o iscsid.o conn.o session.o target.o message.o ctldev.o log.o chap.o event.o param.o plain.o isns.o md5.o sha1.o |
8 |
ietd: ietd.o iscsid.o conn.o session.o target.o message.o ctldev.o log.o chap.o event.o param.o plain.o isns.o md5.o sha1.o |
9 |
|
9 |
|
10 |
$(CC) $^ -o $@ $(LIBS) |
10 |
$(CC) $(LDFLAGS) $^ -o $@ $(LIBS) |
11 |
|
11 |
|
12 |
ietadm: ietadm.o param.o |
12 |
ietadm: ietadm.o param.o |
13 |
$(CC) $^ -o $@ |
13 |
$(CC) $(LDFLAGS) $^ -o $@ |
14 |
|
14 |
|
15 |
clean: |
15 |
clean: |
16 |
rm -f *.o $(PROGRAMS) |
16 |
rm -f *.o $(PROGRAMS) |