######################################################################## # # System-dependent definitions for Linux (static linking). # # EDIT ACCORDING TO YOUR OWN NEEDS !!! # ######################################################################## #------------------------------------------------------------------------ # if you have a GNU make it is better to set the MAKE variable to point # to gnu make #------------------------------------------------------------------------ MAKE = make #------------------------------------------------------------------------ # compilers & flags #------------------------------------------------------------------------ # static: #-------- CFLAGS = -static -ansi -funroll-loops -DUSE_FONTS LDFLAGS = -static -rpath $(TOPDIR)/external/lib -rpath-link $(TOPDIR)/external/lib LDLIB = -ldl MATH = -lm CC = gcc # let us see if -statig-libgfortran is sufficient (to avoid the use of # -static which produces huge executables (libc.so.6 should be present # on every system) FC = ifort -static FFLAGS = -O2 #------------------------------------------------------------------------ # X-libraries & include files # # for STATIC compilation one should add: -lpthread ??? #------------------------------------------------------------------------ X_LIB = /usr/lib/X11/xdm/libXdmGreet.so -lXmu -lX11 -lXext -lpthread #X_LIB = -L/usr/X11R6/lib -lXmu -lX11 -lXext X_INCDIR = -I/usr/include/X11 ### ### use EITHER THIS: ### #-Possibility-1---------------------------------------------------------- # # If you want to use your own libraries and include files, # then set *_LIB and *_INCDIR variables below accordingly: # #------------------------------------------------------------------------ #COMPILE_TCLTK = no #COMPILE_MESA = no # # Libraries # #TK_LIB = -ltk8.5 #TCL_LIB = -ltcl8.5 #GLU_LIB = -lGLU #GL_LIB = -lGL # # Include directories # #TCL_INCDIR = #TK_INCDIR = #GL_INCDIR = #------------------------------------------------------------------------ ### ### or THAT: ### #-Possibility-2----------------------------------------------------------- # # XCRYSDEN package may contain the tcl, tk & Mesa sources !!! # If you would like to compile and use these then uncomment below lines and # comment lines "Possibility-1" (see above). # #------------------------------------------------------------------------ COMPILE_TCLTK = no COMPILE_MESA = no # # # # # Do we want a shared library version of Tcl/Tk/Mesa or static? # # If we want shared then set the following flags to: --enable-shared # # else set the following flag to: --disable-shared # # TCLTK_OPTIONS = --disable-shared --enable-gcc MESA_TARGET = linux-static # # # # # Libraries (static linking) # # for shared linking the libraries postfix should be .so # # for static linking the libraries postfix should be .a # # TCL_LIB = $(TOPDIR)/external/lib/libtcl$(TCL_VER2).a TK_LIB = $(TOPDIR)/external/lib/libtk$(TCL_VER2).a GLU_LIB = $(TOPDIR)/external/lib/libGLU.a GL_LIB = $(TOPDIR)/external/lib/libGL.a # # # # # Include directories # # TCL_INCDIR = -I$(TOPDIR)/external/src/tcl$(TCL_VER3)/generic TK_INCDIR = -I$(TOPDIR)/external/src/tk$(TCL_VER3)/generic GL_INCDIR = -I$(TOPDIR)/external/include #------------------------------------------------------------------------