Skip to content

Commit

Permalink
osd-util: osd-util/Makefile BSD builds support
Browse files Browse the repository at this point in the history
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 <bharrosh@panasas.com>
  • Loading branch information
Boaz Harrosh committed Mar 2, 2009
1 parent 899b2bf commit 79563ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions osd-util/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 79563ae

Please sign in to comment.