From 5c0f72514105070473ac00d2ba48e805188f321d Mon Sep 17 00:00:00 2001 From: hristov Date: Tue, 12 Feb 2008 06:20:46 +0000 Subject: [PATCH] New target: compilation on Windows with Cygwin gcc --- build/Makefile.win32gcc | 61 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 build/Makefile.win32gcc diff --git a/build/Makefile.win32gcc b/build/Makefile.win32gcc new file mode 100644 index 00000000000..34af76da1ff --- /dev/null +++ b/build/Makefile.win32gcc @@ -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 + + + + + -- 2.39.3