## 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:47:23 keith Exp $
##
##  $Log: Makefile,v $
##  Revision 1.3  2009/11/01 20:47:23  keith
##  Added GPL to source code.
##
##  Revision 1.2  2009/03/18 00:28:29  keith
##  Added checks for NDEBUG macro.
##
##  Revision 1.1  2009/03/07 17:03:49  keith
##  Initial revision
##
##

OBJ=main.o get_args.o parse_exec_args.o alloc_job_tbl.o \
	assign_fname.o start_jobs.o exec_job.o jobcmp.o wait_job.o \
	assign_exec_args.o assign_input_fname.o get_slice_method.o \
	get_divvy_text.o substitute_tokens.o load_recovery_log.o \
	write_recovery_log.o get_job_cnt.o set_job_list.o get_cpu_semid.o \
	request_job_resource.o release_allocated_jobs.o write_system_usage.o

INC=../include
CFLAGS=-Wall -O -I$(INC) $(MT_CC)
TARGET=dfile_exec

$(TARGET): $(OBJ)
	$(CC) -g -o $(TARGET) $(OBJ) -L ../lib -ltbox

main.o: $(INC)/tbox.h dfile_exec.h

get_args.o: $(INC)/tbox.h dfile_exec.h

parse_exec_args.o: $(INC)/tbox.h dfile_exec.h

alloc_job_tbl.o: $(INC)/tbox.h dfile_exec.h

assign_fname.o: $(INC)/tbox.h dfile_exec.h

start_jobs.o: $(INC)/tbox.h dfile_exec.h

exec_job.o: $(INC)/tbox.h dfile_exec.h

wait_job.o: $(INC)/tbox.h dfile_exec.h

jobcmp.o: $(INC)/tbox.h dfile_exec.h

wait_job.o: $(INC)/tbox.h dfile_exec.h

assign_input_fname.o: $(INC)/tbox.h dfile_exec.h

get_slice_method.o: $(INC)/tbox.h dfile_exec.h

get_divvy_text.o: $(INC)/tbox.h dfile_exec.h

substitute_tokens.o: $(INC)/tbox.h dfile_exec.h

load_recovery_log.o: $(INC)/tbox.h dfile_exec.h

write_recovery_log.o: $(INC)/tbox.h dfile_exec.h

get_job_cnt.o: $(INC)/tbox.h dfile_exec.h

assign_exec_args.o: $(INC)/tbox.h dfile_exec.h

set_job_list.o: $(INC)/tbox.h dfile_exec.h

get_cpu_semid.o: $(INC)/tbox.h dfile_exec.h

request_job_resource.o: $(INC)/tbox.h dfile_exec.h

release_allocated_jobs.o: $(INC)/tbox.h dfile_exec.h

write_system_usage.o: $(INC)/tbox.h dfile_exec.h

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