#************************************
#  Getting Started
#  ===============
#  Makefile for Xpress BCL examples
# 
#  (c) 2008 Fair Isaac Corporation
#      author: Y. Colombani, 2003
#************************************
#
# Before using this makefile remember to set the environment variable
# XPRESSDIR to the directory where Xpress is installed on your
# computer.

all: foliodata folioheur folioinit foliolp foliomip1 foliomip2 folioqc folioqp

CFLAGS-linux=-m32 -D_REENTRANT
CFLAGS-linux-gnu=$(CFLAGS-linux)
CFLAGS-solaris=-D_REENTRANT
CFLAGS-hpux=+Z +DAportable -D_POSIX_C_SOURCE=199506L
CFLAGS-aix=-q32 -D_THREAD_SAFE
CFLAGS=-g $(CFLAGS-$(OSTYPE)) -I$(XPRESSDIR)/include

LDFLAGS-hpux=-Wl,+s
LDFLAGS-aix=-brtl
LDFLAGS=$(LDFLAGS-$(OSTYPE)) -L$(XPRESSDIR)/lib

LOADLIBES=-lxprb -lxprs

.C:
	$(CXX) $(CFLAGS) $(LDFLAGS) $< $(LOADLIBES) -o $*

.cpp:
	$(CXX) $(CFLAGS) $(LDFLAGS) $< $(LOADLIBES) -o $*
