summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2007-06-29 12:34:27 -0500
committerMike Christie <michaelc@cs.wisc.edu>2007-06-29 12:34:27 -0500
commit4c1c60062cdb2b7300628f71dd13d630d608ddee (patch)
tree4b589e75d0ebd58a9329ddaeb8d997a0ae58e542 /utils
parent7119484cdb907fe392f94188030d0d28780aec47 (diff)
downloadopen-iscsi-4c1c60062cdb2b7300628f71dd13d630d608ddee.tar.gz
Fix fwparam_ibft compilation with older gccs
From: Olaf Kirch <olaf.kirch@oracle.com> Add a "make depend" rule to all Makefiles building user space apps. Signed-off-by: olaf.kirch@oracle.com
Diffstat (limited to 'utils')
-rw-r--r--utils/Makefile7
-rw-r--r--utils/fwparam_ibft/Makefile12
2 files changed, 15 insertions, 4 deletions
diff --git a/utils/Makefile b/utils/Makefile
index b376129..2c7e891 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -9,4 +9,9 @@ iscsi-iname: md5.o iscsi-iname.o
$(CC) $(CFLAGS) $^ $(DBM_LIB) -o $@
clean:
- rm -f *.o $(PROGRAMS)
+ rm -f *.o $(PROGRAMS) .depend
+
+depend:
+ gcc $(CFLAGS) -M `ls *.c` > .depend
+
+-include .depend
diff --git a/utils/fwparam_ibft/Makefile b/utils/fwparam_ibft/Makefile
index ee090c1..86e190e 100644
--- a/utils/fwparam_ibft/Makefile
+++ b/utils/fwparam_ibft/Makefile
@@ -5,7 +5,13 @@ PROGRAMS = fwparam_ibft
all: $(PROGRAMS)
-fwparam_ibft: fwparam_ibft.c fwparam_ibft.h
- $(CC) $(CFLAGS) $^ -o $@
+fwparam_ibft: fwparam_ibft.o
+ $(CC) $(CFLAGS) $< -o $@
+
clean:
- rm -f *.o $(PROGRAMS)
+ rm -f *.o $(PROGRAMS) .depend
+
+depend:
+ gcc $(CFLAGS) -M `ls *.c` > .depend
+
+-include .depend