-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
71 lines (56 loc) · 1.84 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
# Common makefile for SCSI target mid-level and its drivers
#
# Copyright (C) 2004 - 2011 Vladislav Bolkhovitin <[email protected]>
# Copyright (C) 2004 - 2005 Leonid Stoljar
# Copyright (C) 2007 - 2010 ID7 Ltd.
# Copyright (C) 2010 - 2011 SCST Ltd.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, version 2
# of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#
SHELL=/bin/bash
# Decide to use which kernel src. If not specified, is current running kernel.
#export KDIR=/usr/src/linux-2.6
SCST_DIR=src
all:
cd $(SCST_DIR) && $(MAKE) $@
install:
cd $(SCST_DIR) && $(MAKE) $@
uninstall:
cd $(SCST_DIR) && $(MAKE) $@
clean:
cd $(SCST_DIR) && $(MAKE) $@
extraclean:
cd $(SCST_DIR) && $(MAKE) $@
debug2release:
cd $(SCST_DIR) && $(MAKE) $@
release2debug:
cd $(SCST_DIR) && $(MAKE) $@
debug2perf:
cd $(SCST_DIR) && $(MAKE) $@
perf2debug:
cd $(SCST_DIR) && $(MAKE) $@
disable_proc:
cd $(SCST_DIR) && $(MAKE) $@
enable_proc:
cd $(SCST_DIR) && $(MAKE) $@
help:
@echo " all (the default) : make all"
@echo " clean : clean files"
@echo " extraclean : clean + clean dependencies"
@echo " install : install"
@echo " uninstall : uninstall"
@echo " Notes :"
@echo " - install and uninstall must be made as root."
@echo " - be sure to compile qla against the correct initiator"
@echo " driver. Read its README for details."
.PHONY: all install uninstall clean extraclean help debug2release release2debug debug2perf perf2debug disable_proc enable_proc