# makefile 
# These are the gcc flags:
GCCFLAGS = -ansi -pedantic -Wall -g -O3\
	   -Wshadow -Wcast-qual -Wcast-align -Wconversion -Wstrict-prototypes\
	   -Wmissing-prototypes -Wmissing-declarations 
# These are the cc flags:
CCFLAGS = -Xc

# save dependencies
.KEEP_STATE:

CC = gcc $(GCCFLAGS)
#CC = CC 
#CC = CC $(CCFLAGS)

dynetobj = dynet.o netsubs.o ran1.o ansi/macopt.o ansi/nrutil.o

dynet:	$(dynetobj)
	$(CC) -o dynet $(dynetobj) -lm

dynet.o:	dynet.c dynet.h 
		$(CC) -c dynet.c
netsubs.o:	netsubs.c netsubs.h dynet.h
		$(CC) -c netsubs.c
