include ../default.mk
.PHONY:all clean bup ctags
CFLAGS = -Wall -g -I../drivers -I../include

LIBSO	= $(LIBS:.c=.o)
MESHO	= $(MESH:.c=.o)
KERNO	= $(KERN:.c=.o)
DRIVERO= $(DRIVER:.c=.o)
SOLVERO	= $(SOLVER:.c=.o)
SP_LUO	= $(SP_LU:.c=.o)

OBJS0= $(SP_LUO) $(DRIVERO) $(LIBSO) t_sp2m.o
OBJS1= $(SP_LUO) $(DRIVERO) $(LIBSO) t_splu.o
OBJS2= $(LIBSO) $(DRIVERO) t_svd.o
OBJS3= $(LIBSO) $(MESHO) $(KERNO) t_pattern.o
OBJS4= $(LIBSO) t_vector.o
OBJS5= $(LIBSO) t_spread.o

LIST=t_splu t_sp2m t_svd t_pattern t_spread t_vector
all: $(LIST)


t_sp2m: $(OBJS0)
	gcc -o t_sp2m $(OBJS0)  -lm
t_splu: $(OBJS1)
	gcc -o t_splu $(OBJS1)  -lm
t_svd : $(OBJS2)
	gcc -o t_svd  $(OBJS2)  -lm
t_pattern : $(OBJS3)
	gcc -o t_pattern  $(OBJS3)  -lm
t_vector : $(OBJS4)
	gcc -o $@  $(OBJS4)  -lm
t_spread : $(OBJS5)
	gcc -o $@  $(OBJS5)  -lm

depend:

clean:
	rm  -f *.o core $(LIST) *.bak left.0 right.0
ctags:
	ctags $(ALL_SRC) $(HEADERS)

# DO NOT DELETE THIS LINE -- make depend depends on it.
