#
#	You have to toy with the value of COLOR_OFFSET 
#	(0.0 <= COLOR_OFFSET <= 1.0) it reflects the darkness
#	of the shaded plots, this can vary over X-servers
#       (You can always override it with the command line flag -c0.25)
#
#       The queue names for the submit job part can be compiled in
#       by using -DDOQUEUE
#       You have to edit xwin.c to customise the queunames and times.
#
#	You can add the mpfit module by typing 'make molden.mpfit'
#
#	Disregard compiler warnings on rdmolf.f
#
#CC = cc

CFLAGS = -c
FC = g77
FFLAGS = -c -O3 -ffast-math
LIBS =  -lm
LDR = ${FC} 

OBJS = angle.o bond.o charge.o conn.o enegrd.o getinp.o \
	param.o tors.o vdwlj.o math.o optimise.o wrtout.o

all:	ambfor ambmd

ambfor:	ambfor.o alloc.o $(OBJS)
	$(LDR) -o ambfor ambfor.o alloc.o $(OBJS) $(LIBS)

ambmd:	md.o verlet.o allocmd.o $(OBJS)
	$(LDR) -o ambmd md.o verlet.o allocmd.o $(OBJS) $(LIBS)

allocmd.o:	alloc.c
	$(CC) $(CFLAGS) -DMD -c alloc.c -o allocmd.o
