## Copyright (C) 2009 Keith Crane
## 
## This file is part DFILE Tools.
## 
## DFILE Tools 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 (at
## your option) any later version.
## 
## DFILE Tools 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 DFILE Tools; see the file COPYING.  If not, see
## <http://www.gnu.org/licenses/>.
## 

##
##  $Id: Makefile,v 1.3 2009/11/01 20:34:51 keith Exp $
##
##  $Log: Makefile,v $
##  Revision 1.3  2009/11/01 20:34:51  keith
##  Added GPL to source code.
##
##  Revision 1.2  2009/10/31 00:08:02  keith
##  Changed compile arguments.
##
##  Revision 1.1  2009/03/13 11:22:26  keith
##  Initial revision
##
##

##
## DNDEBUG turns off assert() calls.
##
INC=../include
CFLAGS=-O -DNDEBUG -Wall -I $(INC)
OBJ = main.o get_args.o

TARGET = dcat

$(TARGET): $(OBJ)
	$(CC) -O -o $(TARGET) $(OBJ) -L../lib -ldfile_dynamic -ldfile -lwhere \
	-lsexpr -ltbox -lz


main.o: $(INC)/tbox.h $(INC)/dfile.h dcat.h

get_args.o: $(INC)/tbox.h $(INC)/dfile.h dcat.h

clean:
	rm -f $(OBJ) $(TARGET)
