From 4a99e1a61d2767dcf87367480b029ff0f3bc32e7 Mon Sep 17 00:00:00 2001 From: Boaz Harrosh Date: Tue, 3 Feb 2009 09:06:10 +0200 Subject: open-iscsi: Makefile: separate out user: and kernel: make targets Separate out the build of "kernel:" and "user:" targets. [Mike please revisit the @echo output if we need anything added] Signed-off-by: Boaz Harrosh --- Makefile | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9578697..c5ad89c 100644 --- a/Makefile +++ b/Makefile @@ -24,27 +24,30 @@ IFACEFILES = etc/iface.example # using '$(MAKE)' instead of just 'make' allows make to run in parallel # over multiple makefile. -all: +all: user kernel + +user: ; $(MAKE) -C utils/fwparam_ibft $(MAKE) -C usr - $(MAKE) -C kernel $(MAKE) -C utils @echo @echo "Compilation complete Output file" @echo "----------------------------------- ----------------" - @echo "Built iSCSI Open Interface module: kernel/scsi_transport_iscsi.ko" - @echo "Built iSCSI library module: kernel/libiscsi.ko" - @echo "Built iSCSI over TCP library module: kernel/iscsi_tcp.ko" - @echo "Built iSCSI over TCP kernel module: kernel/iscsi_tcp.ko" @echo "Built iSCSI daemon: usr/iscsid" @echo "Built management application: usr/iscsiadm" @echo - @echo Read README file for detailed information. + @echo "Read README file for detailed information." -user: - $(MAKE) -C utils/fwparam_ibft - $(MAKE) -C utils - $(MAKE) -C usr +kernel: force + $(MAKE) -C kernel + @echo "Kernel Compilation complete Output file" + @echo "----------------------------------- ----------------" + @echo "Built iSCSI Open Interface module: kernel/scsi_transport_iscsi.ko" + @echo "Built iSCSI library module: kernel/libiscsi.ko" + @echo "Built iSCSI over TCP library module: kernel/libiscsi_tcp.ko" + @echo "Built iSCSI over TCP kernel module: kernel/iscsi_tcp.ko" + +force: ; clean: $(MAKE) -C utils/fwparam_ibft clean -- cgit v1.2.1