#  * Version: $Id$
#  * Project: MediaTex
#  * Module:  Reversibility use case
#  *
#  * Process this file with configure to produce a Makefile.
# 
#  MediaTex is an Electronic Records Management System
#  Copyright (C) 2014  Nicolas Roche
# 
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  any later version.
# 
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
# 
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

all: txt2sql

CFLAGS = -Wall -O0 -g
libs = -pthread -lavl -lssl -lm -lmediatex

txt2sql: txt2sql.o
	gcc -g txt2sql.o -L/usr/lib $(libs) -o txt2sql

txt2sql.o: txt2sql.c
	gcc $(CFLAGS) -I /usr/include/mediatex -c txt2sql.c -o txt2sql.o

clean:
	rm -f txt2sql.o txt2sql
