include ../BuildMgr/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) $@ $? 
	touch $(SOPHYAINCP)/SophyaConfInfo/libsophya.objlist
 
$(SOPHYAOBJP)datacards.o: datacards.cc $(SOPHYAINCP)sopnamsp.h \
  $(SOPHYAINCP)machdefs.h datacards.h \
  $(SOPHYAINCP)pexceptions.h \
  $(SOPHYAINCP)machdefs.h
	$(CXXCOMPILE) $(CXXTEMPFLG) -o $@  datacards.cc
 
$(SOPHYAOBJP)strutilxx.o: strutilxx.cc $(SOPHYAINCP)sopnamsp.h \
  $(SOPHYAINCP)machdefs.h strutilxx.h
	$(CXXCOMPILE) $(CXXTEMPFLG) -o $@  strutilxx.cc
 
$(SOPHYAOBJP)utils.o: utils.cc $(SOPHYAINCP)sopnamsp.h \
  $(SOPHYAINCP)machdefs.h utils.h \
  $(SOPHYAINCP)pexceptions.h \
  $(SOPHYAINCP)machdefs.h
	$(CXXCOMPILE) $(CXXTEMPFLG) -o $@  utils.cc
 
$(SOPHYAOBJP)strutil.o: strutil.c strutil.h
	$(CCOMPILE) -o $@  strutil.c
 
