#
#
# DECs
CFLAGS = -O2
LDFLAGS = -lm
#
CC = cc

SRCS = \
main.c array_init.c diag.c dump.c image.c init.c \
ranc.c step_drive.c step_ie.c step_pg.c step_visc.c stepvar.c  \
sweepx.c sweepy.c sweepym_new2c.c sweepz.c timestep.c dfour1.c drealft.c \
bounds_new2c.c step_trans_new.c remap_new2c.c moc_ct.c

OBJS = \
main.o array_init.o diag.o dump.o image.o init.o \
ranc.o step_drive.o step_ie.o step_pg.o step_visc.o stepvar.o  \
sweepx.o sweepy.o sweepym_new2c.o sweepz.o timestep.o dfour1.o drealft.o \
bounds_new2c.o step_trans_new.o remap_new2c.o moc_ct.o

mthreed: $(OBJS) $(SRCS) makefile
	$(CC) $(CFLAGS) -o mthreed $(OBJS) $(LDFLAGS)

# dependencies
$(OBJS) : defs.h decs.h
 
clean:
	rm *.o *.il *.c~
