38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
|
--- open-iscsi-6.0.5.595/utils/Makefile.cflags 2006-06-20 21:36:08.000000000 -0400
|
||
|
+++ open-iscsi-6.0.5.595/utils/Makefile 2006-06-20 21:36:58.000000000 -0400
|
||
|
@@ -1,12 +1,13 @@
|
||
|
# This Makefile will work only with GNU make.
|
||
|
|
||
|
-CFLAGS += -O2 -fno-inline -Wall -Wstrict-prototypes -g
|
||
|
+OPTFLAGS ?= -O2 -g
|
||
|
+CFLAGS += $(OPTFLAGS) -fno-inline -Wall -Wstrict-prototypes
|
||
|
PROGRAMS = iscsi-iname
|
||
|
|
||
|
all: $(PROGRAMS)
|
||
|
|
||
|
iscsi-iname: md5.o iscsi-iname.o
|
||
|
- $(CC) $^ $(DBM_LIB) -o $@
|
||
|
+ $(CC) $(CFLAGS) $^ $(DBM_LIB) -o $@
|
||
|
|
||
|
clean:
|
||
|
rm -f *.o $(PROGRAMS)
|
||
|
--- open-iscsi-6.0.5.595/usr/Makefile.cflags 2006-06-20 21:35:55.000000000 -0400
|
||
|
+++ open-iscsi-6.0.5.595/usr/Makefile 2006-06-20 21:36:25.000000000 -0400
|
||
|
@@ -45,13 +45,13 @@
|
||
|
all: $(PROGRAMS)
|
||
|
|
||
|
iscsid: $(COMMON_SRCS) $(IPC_OBJ) $(INITIATOR_SRCS) iscsid.o
|
||
|
- $(CC) $^ $(DBM_LIB) -o $@
|
||
|
+ $(CC) $(CFLAGS) $^ $(DBM_LIB) -o $@
|
||
|
|
||
|
iscsiadm: $(COMMON_SRCS) strings.o discovery.o iscsiadm.o
|
||
|
- $(CC) $^ $(DBM_LIB) -o $@
|
||
|
+ $(CC) $(CFLAGS) $^ $(DBM_LIB) -o $@
|
||
|
|
||
|
iscsistart: $(IPC_OBJ) $(ISCSI_LIB_SRCS) $(INITIATOR_SRCS) iscsistart.o
|
||
|
- $(CC) $^ -o $@
|
||
|
+ $(CC) $(CFLAGS) $^ -o $@
|
||
|
|
||
|
clean:
|
||
|
rm -f *.o $(PROGRAMS)
|