]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
New target: compilation on Windows with Cygwin gcc
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Feb 2008 06:20:46 +0000 (06:20 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Feb 2008 06:20:46 +0000 (06:20 +0000)
build/Makefile.win32gcc [new file with mode: 0644]

diff --git a/build/Makefile.win32gcc b/build/Makefile.win32gcc
new file mode 100644 (file)
index 0000000..34af76d
--- /dev/null
@@ -0,0 +1,61 @@
+# Makefile to build AliRoot for Linux
+
+# System dependent commands
+
+XARGS = xargs -r
+
+# The compilers
+CXX           = g++ 
+F77          = g77
+CC           = gcc
+CCMAJORV      = $(shell $(CC) -dumpversion | cut -d. -f1)
+CCMINORV      = $(shell $(CC) -dumpversion | cut -d. -f2)
+
+# Global optimisation
+OPT           = -O -g
+NOOPT         = -g
+
+CXXOPT        = $(OPT)
+CXXNOOPT      = $(NOOPT)
+COPT         = $(OPT)
+FOPT         = $(OPT)
+
+# CERNLIB defines
+CLIBDEFS      = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
+CLIBCXXOPTS   =
+CLIBCOPT      =
+CLIBFOPT      = $(CLIBDEFS)
+
+# Compiler flags
+CXXFLAGS       = $(OPT) -Wall -pipe -Woverloaded-virtual -D_DLL
+CXXFLAGSNO     = $(NOOPT) -Wall -pipe -Woverloaded-virtual -D_DLL
+CFLAGS        = $(OPT) -Wall -D_DLL
+FFLAGS         = $(CLIBFOPT) $(FOPT) -fno-second-underscore
+# rmkdepend flags for building dependencies of FORTRAN files
+DEPENDFFLAGS   = $(FFLAGS)
+
+# rootcint flags
+CINTFLAGS     = 
+
+LD            = g++
+LDFLAGS       = $(OPT) 
+
+SHLD         = $(LD)
+SOFLAGS       = $(OPT) -shared -Wl,--export-all-symbols -Wl,-soname=$$TMPLIB -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc
+SHLIB         = $(shell root-config --libs) -lg2c
+SOEXT        = dll
+
+ALLD         = ar
+ALFLAGS       = cr
+ALLIB         = 
+AEXT         = a
+
+# additional ROOT libraries
+
+#System libraries
+SYSLIBS      := -ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11
+
+
+
+
+