#!/usr/bin/env make
# Simplistic sample Makefile, to be included with the API package.

LIBDIR = $(abspath ../../lib)
APILIB = $(LIBDIR)/MFAPI.dll
export MONO_PATH=$(LIBDIR)

HOST ?= demo.marketfactory.com
PORT ?= 80

# Build the files here.
build:
	mcs -r:$(APILIB) -out:BasicSample.exe BasicSample.cs

build-order:
	mcs -r:$(APILIB) -out:OrderSample.exe OrderSample.cs

run: build
	mono BasicSample.exe $(HOST) $(PORT)

run-order: build
	mono OrderSample.exe $(HOST) $(PORT)

clean:
	rm -rf BasicSample.exe OrderSample.exe
