JPP_DIR := $(shell cd ../..; pwd) PACKAGE := jdb LINKDEF := LinkDef.hh INCLUDES := $(wildcard *.hh) ROOTCINTFLAGS += -I$(JDB_INCLUDE) CLASSDEFS := $(shell grep -l ClassDef $(INCLUDES)) CXXFLAGS += -I$(JDB_INCLUDE) LDFLAGS += -L$(JDB_LIB) LOADLIBES += $(JDB_LIBS) include $(JPP_DIR)/make/JMakeROOTDictionary include $(JPP_DIR)/make/JMakefile $(LIBROOTso): $(DICTIONARY).o JRunQuality.o JDBToolkit.o JDBSupportkit.o libs: JDBTypes.hh JDBincludes.hh JDBTypes.hh: $(CLASSDEFS) @echo "Creating $@" @echo "#ifndef __JDB__JDBTypes__" > $@ @echo "#define __JDB__JDBTypes__" >> $@ @echo "" >> $@ @echo "/**" >> $@ @echo " * \file" >> $@ @echo " * This file is automatically created by make." >> $@ @echo " */" >> $@ @echo "" >> $@ @echo "namespace JDATABASE {" >> $@ @echo "" >> $@ @sed -n 's= *ClassDef.*(\([^,]*\),.*= class \1;=p' *.hh >> $@ @echo "}" >> $@ @echo "#endif" >> $@ JDBincludes.hh: $(CLASSDEFS) @echo "Creating $@" @echo "/**" > $@ @echo " * \file" >> $@ @echo " * This file is automatically created by make." >> $@ @echo " */" >> $@ @echo "" >> $@ @for file in $(CLASSDEFS); do \ echo "#include \"JDB/$${file}\"" >> $@; \ done $(NATIVE_SRCS): JDBTypes.hh JAsciiDB.cc: JDBincludes.hh JConvertDB.cc: JDBincludes.hh clean:: $(RM) JDBTypes.hh JDBincludes.hh