F77 := $(shell root-config --f77)
CC := $(shell root-config --cc)
+CXXWARN =
+
#-------------------------------------------------------------------------------
# Include machine dependent macros
#-------------------------------------------------------------------------------
# Check if DATE is installed
-ifneq ($(shell date-config 2>&1 | grep -i usage),)
+ifneq ($(shell which date-config | grep "^/"),)
DATEFLAGS := -DALI_DATE $(shell date-config --cflags | tr \" \')
CXXFLAGS += $(DATEFLAGS)
CFLAGS += $(DATEFLAGS)
DMONLIBS :=
endif
+#-------------------------------------------------------------------------------
+# Add warning flags if any
+
+ifneq ($(ALICXXWARN),no)
+CXXFLAGS += $(CXXWARN)
+endif
+
#-------------------------------------------------------------------------------
# ROOT Stuff
ROOTCONFIG := root-config
LIBS := $(ROOTCLIBS) $(ROOTPLIBS) $(SYSLIBS)
ARVERSIONFILE := $(EXPORTDIR)/ARVersion.h
-SVNREV := $(strip $(shell LANG=C svn info | grep "Last Changed Rev:" | \
+SVNREV := $(strip $(shell LANG=C LANGUAGE=C svn info | grep "Last Changed Rev:" | \
cut -d: -f2 ))
SVNBRANCH := $(subst //alisoft.cern.ch/AliRoot/,,$(shell svn info | grep "URL:" | cut -d: -f3 ))
$(LIBPATH)/libAliMDC.a \
$(ROOTALIBDIR)/libRoot.a \
$(ROOTALIBDIR)/libfreetype.a $(ROOTALIBDIR)/libpcre.a \
- -pthread -ldl
+ -pthread -ldl -lcurses
alilibs-static: $(LIBPATH) modules $(ALLALIBS)