#################
MAKEFILE	= Makefile
RM		= rm -f
CP		= cp
CC		= g++
LD		= $(CC)
COMPFLAGS	= -I.
LDFLAGS		= 
DEPENDFLAGS	= -MM
LIBS		=
#OTHER		= -Wno-deprecated
#OTHER		=
OTHER		= -W -Wall


#################
TARGET	= fx_vect.exe

OBJS	= \
	defs.o \
	funcs.o \
	obj_loc.o \
	fx_vect.o \
	fx_matr.o \
	testfile.o \
	main.o


#################
# Target Rules
#################
.SUFFIXES :
.SUFFIXES : .h .cpp .o
.cpp.o:
	@echo "------------------"
	$(RM) $*.o
#	$(CC) $(DEPENDFLAGS) $<
	$(CC) $(COMPFLAGS) $(OPT_LEVEL_FLAG) $(OTHER) -c $<

#################
all:	perfo

help:
	@echo "USAGE : "
	@echo "  TBD"

perfo: 		$(TARGET)

#################
$(TARGET):	$(OBJS) $(LIBS) $(MAKEFILE)
		@echo "=================="
		$(RM) $(TARGET)
		$(LD) -o $(TARGET) $(LDFLAGS) $(OBJS) $(LIBS)
		@echo " "


#################
cleano:	        
	$(RM) $(OBJS)
	$(RM) *.ii
	$(RM) *.s
	$(RM) *.o
	$(RM) core

cleane:
	$(RM) $(TARGET)
	$(RM) *.exe

clean:	cleano cleane

#################

defs.o: defs.cpp defs.h
funcs.o: funcs.cpp funcs.h defs.h
fx_matr.o: fx_matr.cpp fx_matr2.h fx_matr.h fx_vect.h obj_loc.h funcs.h \
  defs.h fx_vect2.h
fx_vect.o: fx_vect.cpp fx_vect2.h fx_vect.h obj_loc.h funcs.h defs.h
main.o: main.cpp fx_vect2.h fx_vect.h obj_loc.h funcs.h defs.h fx_matr2.h \
  fx_matr.h testfile.h
obj_loc.o: obj_loc.cpp obj_loc.h funcs.h defs.h
testfile.o: testfile.cpp testfile.h fx_vect2.h fx_vect.h obj_loc.h \
  funcs.h defs.h fx_matr2.h fx_matr.h
