diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2007-06-29 12:34:27 -0500 |
---|---|---|
committer | Mike Christie <michaelc@cs.wisc.edu> | 2007-06-29 12:34:27 -0500 |
commit | 4c1c60062cdb2b7300628f71dd13d630d608ddee (patch) | |
tree | 4b589e75d0ebd58a9329ddaeb8d997a0ae58e542 | |
parent | 7119484cdb907fe392f94188030d0d28780aec47 (diff) | |
download | open-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
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | usr/Makefile | 7 | ||||
-rw-r--r-- | utils/Makefile | 7 | ||||
-rw-r--r-- | utils/fwparam_ibft/Makefile | 12 |
4 files changed, 26 insertions, 5 deletions
@@ -116,4 +116,9 @@ install_iname: echo "***************************************************" ; \ fi +depend: + for dir in usr utils utils/fwparam_ibft; do \ + $(MAKE) -C $$dir $@; \ + done + # vim: ft=make tw=72 sw=4 ts=4: diff --git a/usr/Makefile b/usr/Makefile index 4a8dcae..192faab 100644 --- a/usr/Makefile +++ b/usr/Makefile @@ -53,4 +53,9 @@ iscsistart: $(IPC_OBJ) $(ISCSI_LIB_SRCS) $(INITIATOR_SRCS) iscsistart.o \ $(CC) $(CFLAGS) -static $^ -o $@ clean: - rm -f *.o $(PROGRAMS) + rm -f *.o $(PROGRAMS) .depend + +depend: + gcc $(CFLAGS) -M `ls *.c` > .depend + +-include .depend 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 |