diff --git a/html.cxx b/html.cxx
index 004141c7ec44d82ee87cbf525c92ed860718cdb2..92bfd2ba174d8696bf270d65044ce2643ef88f43 100755
--- a/html.cxx
+++ b/html.cxx
@@ -2,7 +2,7 @@
// gROOT->GetPluginManager()->AddHandler("TVirtualStreamerInfo","*", "TStreamerInfo", "RIO", "TStreamerInfo()");
gSystem->Load("./libAculData.so");
-// gSystem->Load("~/work/makefilesBe/libTELoss.so");
+ gSystem->Load("./libTELoss.so");
// gSystem->Load("~/work/makefilesBe/libDetectors.so");
// gSystem->Load("~/work/makefilesBe/libDetectors.so");
// gSystem->Load("~/work/makefilesBe/libBe.so");
diff --git a/makefile b/makefile
index a2a1de6a28402ba946b3957266d2e5e7646564cc..a55e6d6a3b90dcca01084a5287c9376ce4b8d978 100755
--- a/makefile
+++ b/makefile
@@ -26,11 +26,13 @@ PWD = $(shell pwd)
#INSTALLFOLDER = $(HOME)/AculLib
ACULDATA = $(PWD)/AculData
+TELOSS = $(PWD)/TELoss
-include $(ACULDATA)/AculData.mk
+-include $(TELOSS)/TELoss.mk
all: libAculData.so \
-
+ libTELoss.so
#ROOT html documentation, it will be done as a program which will be alsa compiled by this makefile, program will be as a last condition after all of the libraries
htmldoc: libAculData.so
@@ -41,6 +43,9 @@ clean:
-$(RM) $(ACULDATAOBJS) $(ACULDATACPP_DEPS)
-$(RM) $(ACULDATA)/AculDataCint.* libAculData.so
-@echo ' '
+ -$(RM) $(TELOSSOBJS) $(TELOSSCPP_DEPS)
+ -$(RM) $(TELOSS)/TELossCint.* libTELoss.so
+ -@echo ' '
-$(RM) htmldoc
-@echo ' '
@@ -49,6 +54,11 @@ $(ACULDATA)/AculDataCint.cpp:
-@echo 'Pre-building AculDataCint.cpp and AculDataCint.h files'
-rootcint -f $(ACULDATA)/AculDataCint.cpp -c -p $(ACULDATA_HEADERS)
-@echo ' '
+
+$(TELOSS)/TELossCint.cpp:
+ -@echo 'Pre-building TELossCint.cpp and TELossCint.h files'
+ -rootcint -f $(TELOSS)/TELossCint.cpp -c -p $(TELOSS)/TELoss.h $(TELOSS)/linkdef.h
+ -@echo ' '
#*.so files
libAculData.so: $(ACULDATAOBJS)
@@ -58,6 +68,12 @@ libAculData.so: $(ACULDATAOBJS)
@echo 'Finished building target: $@'
@echo ' '
+libTELoss.so: $(TELOSSOBJS)
+ @echo 'Building target: $@'
+ @echo 'Invoking: GCC C++ Linker'
+ $(CC) -L . -L $(ROOTLIBS) -shared -o"libTELoss.so" $(TELOSSOBJS) $(TELOSSLIBS)
+ @echo 'Finished building target: $@'
+ @echo ' '
.PHONY: all clean
#.SECONDARY: AculData_pre-build TELoss_pre-build Detectors_pre-build libAculData.so libTELoss.so libDetectors.so