+##################################################################
+#
+# Check if called with profile
+
+ifeq ($(ALIPROFILE),YES)
+override ALICE_TARGET:=$(ALICE_TARGET)PROF
+FFLAGS += -pg
+CXXFLAGS += -pg
+CFLAGS += -pg
+SOFLAGS += -pg
+LDFLAGS += -pg
+endif
+##################################################################
+
+##################################################################
+#
+# Check if HLT code is there
+
+ifeq ($(ALIHLT_USEPACKAGE),ALIROOT)
+DEFSTR = -Duse_aliroot -Duse_root
+ifeq ($(ALIHLT_DOMC),true)
+DEFSTR += -Ddo_mc
+endif
+CXXFLAGS += -DALI_HLT $(DEFSTR) -I$(ALIHLT_TOPDIR)/src
+CINTFLAGS += -DALI_HLT $(DEFSTR) -I$(ALIHLT_TOPDIR)/src
+DEPINC += -DALI_HLT $(DEFSTR) -I$(ALIHLT_TOPDIR)/src
+endif
+##################################################################
+