# NB: This Makefile is supposed to work with an Awali that is not installed.
# *It is not very robust by nature; use with caution.*
# It requires the library to be compiled in a directory named `_build`, next
# to the `awali` directory containing `dyn.hh` file.
# Otherwise, the CFLAGS and LDFLAGS variables must be modified accordingly.
#
# Usage: `make myprogram` if the C++ code is in file  `myprogram.cc`

CC=c++
CFLAGS=-std=c++11 -I../../.. -I../../../_build/awali
LDFLAGS=-Wl,-rpath,../../../_build/awali -L../../../_build/awali -lncurses -lawalidyn

% : %.cc
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

