
#
#
OBJ=\
test0.o  test1.o  test2.o  test3.o  test4.o \
main.o


#
SRC=$(OBJ:.o=.cc)


# name of the binary:
#
BIN=../bin/te

# required libs
# order is important
MYLIBS=  ../bin/libhflt.a
LIBS=    $(MYLIBS) -lm



.PHONY: all
all:	$(BIN)



$(BIN): $(OBJ)  $(MYLIBS)
	$(CXX) $(CXXFLAGS)  $(OBJ) $(LIBS) -o $(BIN)



# use 'make dep' to create $(DEP):
#
DEP=depend.mk

include $(DEP)

.PHONY: dep depend
dep: depend
depend: $(DEP)
$(DEP):
	$(CXX) -MM $(SRC) > $(DEP)


#-------------------------------------

GARBAGE=

.PHONY: clean
clean:
	rm -f *.o $(GARBAGE)

.PHONY: clobber
clobber:
	rm -f *.o $(GARBAGE)
	rm -f $(BIN) $(DEP) .gdb_history 
	echo '' > $(DEP)

