# Makefile
#

CC=g++

CPPFLAGS+= -I. -lfst -I$(HOME)/kaldi-rocio.git/tools/openfst/include -L$(HOME)/kaldi-rocio.git/tools/openfst/lib/ -ldl -std=c++0x -g -Wall

all: rocio_slu process_xml_for_slu

librocio_slu.so: librocio_slu.cc lia_liblex.o
	$(CC) $(CPPFLAGS) -shared -o $@ -fPIC librocio_slu.cc lia_liblex.o

rocio_slu: rocio_slu.cc librocio_slu.so
	$(CC) $(CPPFLAGS) -o rocio_slu rocio_slu.cc lia_liblex.o  -L. -lrocio_slu

lia_liblex.o: lia_liblex.c
	gcc -c lia_liblex.c -g -Wall -fPIC

process_xml_for_slu: process_xml_for_slu.c
	gcc -o process_xml_for_slu process_xml_for_slu.c
 
clean:
	 rm -f process_xml_for_slu rocio_slu *.o *.so *.d