Sha256: e853741c46df6e4e2058636fc9bb0fdb318628eba0a81853a76a122f05488aca

Contents?: true

Size: 1.58 KB

Versions: 8

Compression:

Stored size: 1.58 KB

Contents

-include config.mk

BUILDTYPE ?= Release
BUILD_DIR ?= ./build
PYTHON ?= python
GYP ?= ./tools/gyp/gyp
DESTDIR ?= /usr/local/bin

# Default to verbose builds
V ?= 1

# Targets
all: libsnowcrash test-libsnowcrash snowcrash

.PHONY: libsnowcrash test-libsnowcrash snowcrash

libsnowcrash: config.gypi $(BUILD_DIR)/Makefile
	$(MAKE) -C $(BUILD_DIR) V=$(V) libsnowcrash

test-libsnowcrash: config.gypi $(BUILD_DIR)/Makefile
	$(MAKE) -C $(BUILD_DIR) V=$(V) test-libsnowcrash
	mkdir -p ./bin
	cp -f $(BUILD_DIR)/out/$(BUILDTYPE)/test-libsnowcrash ./bin/test-libsnowcrash

perf-libsnowcrash: config.gypi $(BUILD_DIR)/Makefile
	$(MAKE) -C $(BUILD_DIR) V=$(V) perf-libsnowcrash
	mkdir -p ./bin
	cp -f $(BUILD_DIR)/out/$(BUILDTYPE)/perf-libsnowcrash ./bin/perf-libsnowcrash

snowcrash: config.gypi $(BUILD_DIR)/Makefile
	$(MAKE) -C $(BUILD_DIR) V=$(V) snowcrash
	mkdir -p ./bin
	cp -f $(BUILD_DIR)/out/$(BUILDTYPE)/snowcrash ./bin/snowcrash

config.gypi: configure
	$(PYTHON) ./configure

$(BUILD_DIR)/Makefile:
	$(GYP) -f make --generator-output $(BUILD_DIR) --depth=.

clean:
	rm -rf $(BUILD_DIR)/out
	rm -rf ./bin

distclean:
	rm -rf ./build
	rm -f ./config.mk
	rm -f ./config.gypi
	rm -rf ./bin

test: test-libsnowcrash snowcrash
	$(BUILD_DIR)/out/$(BUILDTYPE)/test-libsnowcrash

ifdef INTEGRATION_TESTS
	bundle exec cucumber
endif

perf: perf-libsnowcrash
	$(BUILD_DIR)/out/$(BUILDTYPE)/perf-libsnowcrash ./test/performance/fixtures/fixture-1.apib

install: snowcrash
	cp -f $(BUILD_DIR)/out/$(BUILDTYPE)/snowcrash $(DESTDIR)/snowcrash

.PHONY: libsnowcrash test-libsnowcrash perf-libsnowcrash snowcrash clean distclean test

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
redsnow-0.3.7 ext/snowcrash/Makefile
redsnow-0.3.4 ext/snowcrash/Makefile
redsnow-0.3.3 ext/snowcrash/Makefile
redsnow-0.3.2 ext/snowcrash/Makefile
redsnow-0.3.1 ext/snowcrash/Makefile
redsnow-0.3.0 ext/snowcrash/Makefile
redsnow-0.2.1 ext/snowcrash/Makefile
redsnow-0.2.0 ext/snowcrash/Makefile