CC=gcc
CFLAGS= -O2 -Wall -std=gnu99 -std=c99 -lm

ALL: simreseq testassoc

simreseq: simreseq.c rv_simulate.h myarray.h
	$(CC) $(CFLAGS) simreseq.c -o simreseq


bfgs.o: bfgs.c bfgs.h
	$(CC) bfgs.c -c $(CFLAGS)


testassoc: testassoc.c bfgs.o myarray.h estmafseq.h 
	$(CC) testassoc.c $(CFLAGS) -o testassoc bfgs.o 

clean: 
	rm -f *.o simreseq testassoc
