~ubuntu-branches/ubuntu/precise/tgt/precise

« back to all changes in this revision

Viewing changes to usr/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-02-08 10:31:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110208103104-oots1az6acnkfvuw
Tags: 1:1.0.13-0ubuntu1
* New upstream release.
* debian/patches/make-tgt-setup-lun-executable: Dropped no longer needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
CFLAGS += -DUSE_SIGNALFD
5
5
endif
6
6
 
 
7
ifneq ($(shell test -e /usr/include/sys/timerfd.h && echo 1),)
 
8
CFLAGS += -DUSE_TIMERFD
 
9
endif
 
10
 
7
11
ifneq ($(IBMVIO),)
8
12
CFLAGS += -DIBMVIO -DUSE_KERNEL
9
13
TGTD_OBJS += $(addprefix ibmvio/, ibmvio.o)
10
14
TGTD_OBJS += bs_mmap.o tgtif.o
11
15
endif
12
16
 
13
 
ifneq ($(ISCSI),)
14
 
CFLAGS += -DISCSI
15
17
TGTD_OBJS += $(addprefix iscsi/, conn.o param.o session.o \
16
18
                iscsid.o target.o chap.o sha1.o md5.o transport.o iscsi_tcp.o \
17
19
                isns.o)
18
20
TGTD_OBJS += bs_rdwr.o bs_aio.o
19
21
 
20
22
ifneq ($(ISCSI_RDMA),)
21
 
CFLAGS += -DISCSI_RDMA
22
 
TGTD_OBJS += iscsi/iscsi_rdma.o
 
23
TGTD_OBJS += iscsi/iser.o iscsi/iser_text.o
23
24
LIBS += -libverbs -lrdmacm
24
25
endif
25
 
endif
26
26
 
27
27
ifneq ($(FCP),)
28
28
CFLAGS += -DFCP -DUSE_KERNEL
53
53
 
54
54
CFLAGS += -D_GNU_SOURCE
55
55
CFLAGS += $(INCLUDES)
56
 
CFLAGS += -g -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -fPIC
 
56
ifneq ($(DEBUG),)
 
57
CFLAGS += -g -O0 -ggdb -rdynamic
 
58
else
 
59
CFLAGS += -g -O2 -fno-strict-aliasing
 
60
endif
 
61
CFLAGS += -Wall -Wstrict-prototypes -fPIC
57
62
CFLAGS += -DTGT_VERSION=\"$(VERSION)$(EXTRAVERSION)\"
58
63
 
59
64
LIBS += -lpthread