SimDist/packages/geant4
diff -N WIN32-g++.gmk
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ WIN32-g++.gmk 25 Oct 2005 18:59:46 -0000 1.1
@@ -0,0 +1,59 @@
+#
+# ------ GNU/WIN32 CYGNUS ------ !!! not supported !!!
+# Cygnus CygWin - gcc-3.2 and higher
+# Windows 2000/XP
+#
+# Stefano Agostinelli ([log in to unmask]) - IST Group, Genova
+#
+ifeq ($(G4SYSTEM),WIN32-g++)
+ CXX := g++
+# CXXFLAGS := -Wall -ansi -pedantic -pipe
+ CXXFLAGS := -W -Wall -ansi -pedantic -Wno-non-virtual-dtor -Wno-long-long
+ CXXFLAGS += -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -pipe
+ ifdef G4OPTIMISE
+ CXXFLAGS += -O
+ FCFLAGS := -O
+ CCFLAGS := -O
+ else
+ ifdef G4DEBUG
+ CXXFLAGS += -g
+ FCFLAGS := -g
+ CCFLAGS := -g
+ endif
+ endif
+ ifdef G4LIB_BUILD_SHARED
+ CXXFLAGS += -fPIC
+ FCFLAGS += -fPIC
+ CCFLAGS += -fPIC
+ endif
+ G4RUNPATHOPTION := -Wl,-rpath
+ FC := g77
+ FCFLAGS += -fno-automatic -fno-backslash -fno-second-underscore
+ FCLIBS := -lg2c -lnsl
+ ECHO := echo -e
+ SHEXT := so
+ X11FLAGS := -I/usr/include/X11/extensions -I/usr/include/X11
+ X11LIBS := -L/usr/X11R6/lib -lXmu -lXt -lXext -lX11 -lSM -lICE
+ XMFLAGS := -I/usr/X11R6/include
+ XMLIBS := -lXm -lXpm
+ ifndef OGLFLAGS
+ OGLFLAGS := -I$(OGLHOME)/include
+ endif
+ ifndef OGLLIBS
+ OGLLIBS := -L$(OGLHOME)/lib -lGLU -lGL
+ endif
+ OIVFLAGS += -I$(OIHOME)/include
+ define build-granular-shared-lib
+ @libdir=`(cd $(@D);/bin/pwd)`; \
+ cd $(G4TMPDIR); \
+ $(CXX) -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) $(INTYLIBS) *.o
+ endef
+ define build-global-shared-lib
+ @libdir=`(cd $(@D);/bin/pwd)`; \
+ cd $(G4TMP)/$(G4SYSTEM); \
+ $(CXX) -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) $(INTYLIBS) \
+ $(foreach dir,$(SUBLIBS),$(dir)/*.o);
+ endef
+
+endif
+