#  ------------------ SOPHYA -------------------------
#    Makefile for compiling and linking a simple C++ 
#         program with SOPHYA class library 
#  ---------------------------------------------------
#  GNU make program should be used with this makefile
#  ---------------------------------------------------
#  Usage: make prog_name
#     - compiles prog_name.cc -> prog_name.o 
#     - links prog_name.o -> prog_name 


include $(SOPHYABASE)/include/sophyamake.inc



%:%.cc
%:%.o
%.o:%.cc

.PRECIOUS: % %.o


#  --- Compilation and linking rules
%:%.o
	$(CXXLINK)  -o $@ $< $(SOPHYAEXTSLBLIST)

%.o:%.cc
	$(CXXCOMPILE) -c -o $@ $<


