2014-11-05 06:09:40 -05:00
|
|
|
all: build test
|
|
|
|
.PHONY: all
|
|
|
|
|
2015-01-11 01:50:51 -05:00
|
|
|
SYSTEM_NAME := $(shell uname -s)
|
|
|
|
|
2014-12-07 03:09:24 -05:00
|
|
|
test:
|
|
|
|
@godep go test -race -coverprofile=cover.out
|
2014-11-05 06:09:40 -05:00
|
|
|
|
2014-11-30 18:20:20 -05:00
|
|
|
isal/isal-l.a:
|
2015-01-11 01:50:51 -05:00
|
|
|
ifeq ($(SYSTEM_NAME), Darwin)
|
|
|
|
@$(MAKE) -C isal arch=osx lib
|
|
|
|
else
|
2014-12-01 17:45:50 -05:00
|
|
|
@$(MAKE) -C isal lib
|
2015-01-11 01:50:51 -05:00
|
|
|
endif
|
2014-11-30 18:20:20 -05:00
|
|
|
build: isal/isal-l.a
|
2014-11-14 00:48:04 -05:00
|
|
|
@godep go build
|
2014-12-01 17:45:50 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -v cover.out
|