include $(SOPHYABASE)/include/sophyamake.inc
 
all: $(SOPHYALIBP)libSUtils.a
 
clean:
	 rm -f $(SOPHYAOBJP)datacards.o $(SOPHYAOBJP)strutilxx.o $(SOPHYAOBJP)utils.o $(SOPHYAOBJP)strutil.o
	rm -f $(SOPHYALIBP)libSUtils.a
 
$(SOPHYALIBP)libSUtils.a : $(SOPHYAOBJP)datacards.o $(SOPHYAOBJP)strutil.o $(SOPHYAOBJP)strutilxx.o $(SOPHYAOBJP)utils.o
	$(AR) $(ARFLAGS) $@ $? 
 
$(SOPHYAOBJP)datacards.o: datacards.cc \
  $(SOPHYAINCP)sopnamsp.h \
  $(SOPHYAINCP)machdefs.h datacards.h \
  $(SOPHYAINCP)pexceptions.h
	$(CXXCOMPILE) -o $@ $<
 
$(SOPHYAOBJP)strutilxx.o: strutilxx.cc \
  $(SOPHYAINCP)sopnamsp.h \
  $(SOPHYAINCP)machdefs.h strutilxx.h
	$(CXXCOMPILE) -o $@ $<
 
$(SOPHYAOBJP)utils.o: utils.cc $(SOPHYAINCP)sopnamsp.h \
  $(SOPHYAINCP)machdefs.h utils.h \
  $(SOPHYAINCP)pexceptions.h
	$(CXXCOMPILE) -o $@ $<
 
$(SOPHYAOBJP)strutil.o: strutil.c strutil.h
	$(CCOMPILE) -o $@ $<
 
