From 79563aef49c96af149d32c3a3909fe8613449931 Mon Sep 17 00:00:00 2001 From: Boaz Harrosh Date: Sun, 22 Feb 2009 15:29:35 +0200 Subject: [PATCH] osd-util: osd-util/Makefile BSD builds support All is needed is the extra INCLUDES of the tgt/usr/bsd & tgt/usr path, for linux definitions on BSD. Signed-off-by: Boaz Harrosh --- osd-util/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osd-util/Makefile b/osd-util/Makefile index add3e0e..3a86970 100644 --- a/osd-util/Makefile +++ b/osd-util/Makefile @@ -18,6 +18,11 @@ CWARN := -Wall -W -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual \ -Wmissing-declarations -Wnested-externs CFLAGS := $(COPTS) $(CWARN) -I. +UNAME= $(shell uname) +ifeq (FreeBSD,$(UNAME)) +CFLAGS += -I../tgt/usr/bsd ../tgt/usr +endif + all:: $(LIB) $(OBJ) $(LIB): $(OBJ)