[stgt] [PATCH 14/14] tgt: usr/Makefile BSD build Support
Boaz Harrosh
bharrosh at panasas.com
Mon Feb 23 19:07:28 CET 2009
If compiling under FreeBSD:
- sqlite3 is found in /usr/local/lib
- Add the bsd_epoll.o epoll emulation
- Add -I../bsd_include to INCLUDES for overide and/or emulation
of Linux specific APIs.
Signed-off-by: Boaz Harrosh <bharrosh at panasas.com>
---
usr/Makefile | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/usr/Makefile b/usr/Makefile
index 3fc848e..168da20 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -57,6 +57,14 @@ CFLAGS += $(INCLUDES)
CFLAGS += -g -O2 -Wall -Wstrict-prototypes -fPIC
CFLAGS += -DTGT_VERSION=\"$(VERSION)$(EXTRAVERSION)\"
+UNAME ?= $(shell uname)
+ifeq (FreeBSD,$(UNAME))
+CFLAGS += -D__MAKE_TGT_ON_BSD__
+CFLAGS += -I../bsd_include
+TGTD_OBJS += bsd_epoll.o
+LIBS := -L/usr/local/lib $(LIBS)
+endif
+
LIBS += -lpthread
PROGRAMS += tgtd tgtadm tgtimg
--
1.6.0.6
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list