#SUN & HP & LINUX
CFLAG = -ansi -O2  
INCLUDES = -I./include
CC = gcc

#SILICON GRAPHICS
#CFLAG = -ansi -O2 -32 
#INCLUDES = -I../includes
#CC = cc

EOA = e_init.o e_error.o e_string.o e_name.o e_parameter.o
EO1 = e_number.o e_list.o e_file.o e_aset.o
EO2 = e_stack.o e_charstream.o e_tokeniser.o
EO3 = e_exec.o e_test.o
ET1 = e_tools.o e_maths.o
EASY_OBJ = $(EOA) $(EO1) $(EO2) $(EO3) $(ET1)

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

easy.a: $(EASY_OBJ) 
	ar ruv easy.a $(EASY_OBJ) 

clean: 
	/bin/rm -f *.o *.a *~

