CFLAG = -ansi -O2 -Wall 
TDIR = $(LDIR)/tools
INCLUDES = -I. 
CC = g++

APPS = bi_sym_cages equigraphs_bi_12_snapshot
OBJ1 = p_cage_bi.o p_cages_bi_sp.o p_cages_bi_Ato.o p_cages_bi_Atco.o p_cages_bi_Atid.o p_cages_bi_DArd.o p_cages_bi_DArt.o getargs.o m_mat33.o rand_gen.o m_except.o
OBJ2 = getargs.o

.cc:
	$(CC) -c $< -o $*.o $(CFLAG) $(INCLUDES) $(IDIR)
.cc.o: 
	$(CC) -c $< -o $*.o $(CFLAG) $(INCLUDES) $(IDIR)

ALL: $(APPS)


bi_sym_cages: bi_sym_cages.o $(OBJ1) 
	$(CC) -o $@ $(CFLAG) $(INCLUDES) $@.o $(OBJ1) -lm

equigraphs_bi_12_snapshot: equigraphs_bi_12_snapshot.o  $(OBJ2)
	$(CC) -o $@ $(CFLAG) $(INCLUDES) $@.o  $(OBJ2) -lm
clean:
	/bin/rm -f *.o $(APPS) core.*
