# Copyright (c) 2014, 2015 InternetWide.org and the ARPA2.net project # All rights reserved. # # See the LICENSE file for details. # # Top-level bogus makefile for the Steamworks project. The real # build-system is CMake. This makefile just arranges for an out- # of-source build in a new subdirectory. # PREFIX ?= /usr/local PULLEY_SQUEAL_DIR ?= /var/db/pulley/ PULLEY_BACKEND_DIR ?= $(PREFIX)/share/steamworks/pulleyback/ # Set CMAKE_ARGS to influence the configuration. Here # are some examples, with the default settings assigned. # Take care that *_DIR variables must have a trailing / . # CMAKE_ARGS = -DCMAKE_INSTALL_PREFIX:PATH=$(PREFIX) CMAKE_ARGS += -DPULLEY_SQUEAL_DIR=$(PULLEY_SQUEAL_DIR) CMAKE_ARGS += -DPULLEY_BACKEND_DIR=$(PULLEY_BACKEND_DIR) all: build check-build: test -d build/ || mkdir build test -d build check-cmake: check-build test -f build/Makefile || ( cd build ; cmake $(CMAKE_ARGS) ../src ) test -f build/Makefile build: check-cmake ( cd build ; $(MAKE) ) install: build ( cd build ; $(MAKE) install PREFIX=$PREFIX ) clean: rm -rf build