## Copyright (C) 2009, 2010, 2011 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/>.
## 


OBJ=alloc_proc_tbl.o assign_exec.o assign_exec_args.o assign_fname.o \
	assign_job.o assign_step.o assign_step_attrib.o assign_string.o \
	control_syntax_error.o copy_exec_args.o exec_proc.o get_args.o \
	get_cpu_semid.o get_divvy_text.o main.o open_log_file.o proc_cmp.o \
	process_step.o release_allocated_procs.o request_proc_resource.o \
	set_proc_list.o start_procs.o substitute_tokens.o wait_proc.o \
	write_log_record.o write_system_usage.o assign_exit_values.o \
	load_completed.o completed_cmp.o completed_status.o

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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