## 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 21:38:59 keith Exp $
##
## $Log: Makefile,v $
## Revision 1.3  2009/11/01 21:38:59  keith
## Added GPL to source code.
##
## Revision 1.2  2009/03/18 00:51:41  keith
## Added checks for NDEBUG macro.
##
## Revision 1.1  2009/03/01 04:31:03  keith
## Initial revision
##
##
##
INCDIR=../include

##
## DNDEBUG turns off assert() calls.
##
CFLAGS=-O -Wall -I$(INCDIR) $(MT_CC)

VPATH=RCS

OBJ= map_dfile_field_names.o cmd_line_parse_tag.o compare_bind.o \
	assign_field_offset.o assign_field_bind.o

TARGET=libdfile_dynamic.a

$(TARGET): $(TARGET)(map_dfile_field_names.o) \
	$(TARGET)(cmd_line_parse_tag.o) \
	$(TARGET)(compare_bind.o) \
	$(TARGET)(assign_field_offset.o) \
	$(TARGET)(assign_field_bind.o)
	$(AR) $(ARFLAGS) $(TARGET) $(OBJ)

64bit:
	$(MAKE) '64bit=-q64' 'ARFLAGS=-rv -X64'

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

$(TARGET)(map_dfile_field_names).o: $(INCDIR)/dfile.h $(INCDIR)/tbox.h \
	$(INCDIR)/dfile_dynamic.h

$(TARGET)(cmd_line_parse_tag).o: $(INCDIR)/dfile.h $(INCDIR)/tbox.h \
	$(INCDIR)/dfile_dynamic.h

$(TARGET)(compare_bind).o: $(INCDIR)/dfile.h $(INCDIR)/tbox.h \
	$(INCDIR)/dfile_dynamic.h

$(TARGET)(assign_field_offset).o: $(INCDIR)/dfile.h $(INCDIR)/tbox.h \
	$(INCDIR)/dfile_dynamic.h

$(TARGET)(assign_field_bind).o: $(INCDIR)/dfile.h $(INCDIR)/tbox.h \
	$(INCDIR)/dfile_dynamic.h
