######################################################################### # # Make.sys for X11 semishared compilation on Mac OS X # # It will download Tcl, Tk, Togl, and FTTW3 tarballs from the # internet and compile them for use with X11. After compilation they # are installed in external/lib & external/include. # # # This Make.sys uses the XQuartz. # ######################################################################## #------------------------------------------------------------------------ # if you have a GNU make it is better to set the MAKE variable to point # to gnu make #------------------------------------------------------------------------ MAKE = make #------------------------------------------------------------------------ # compilers & flags #------------------------------------------------------------------------ # C-preprocessor flags CPPFLAGS ?= # C-compiler flags CFLAGS += -ffast-math -funroll-loops -fPIC -pedantic -Wall CC = gcc #LDLIB = -ldl MATH = -lm -lc FFLAGS += -static-libgfortran -static-libgcc -fdefault-double-8 -fdefault-real-8 -O2 FC = gfortran #------------------------------------------- #debug options #CFLAGS = -g #------------------------------------------- #------------------------------------------------------------------------ # X-libraries & include files #------------------------------------------------------------------------ X_LIB = -lXmu -lX11 X_INCDIR = -I/opt/X11/include #------------------------------------------------------------------------ # EXTERNAL LIBRARIES: Tcl/Tk/Mesa/Togl/FFTW # setting to "yes" will compile the corresponding library in external/src/ COMPILE_TCLTK = no COMPILE_TOGL = yes COMPILE_MESA = no COMPILE_FFTW = no # this is only used for some testing purposes COMPILE_MESCHACH = no # Do we want a shared library version of Tcl/Tk/Mesa/Togl? If we want # shared then set the following flags to: --enable-shared else set the # following flag to: --disable-shared TCLTK_OPTIONS = --enable-shared \ --with-x CFLAGS=-I/opt/X11/include --x-includes=/opt/X11/include --x-libraries=/opt/X11/lib TOGL_OPTIONS = --enable-shared --with-tcl=$(TOPDIR)/external/lib --with-tk=$(TOPDIR)/external/lib \ --with-x CFLAGS=-I/opt/X11/include --x-includes=/opt/X11/include --x-libraries=/opt/X11/lib MESA_OPTIONS = --enable-shared GLU_OPTIONS = --enable-shared MESA_TARGET = linux FFTW_OPTIONS = --enable-shared #------------------------------------------------------------------------ # # Libraries # TCL_LIB = -L$(TOPDIR)/external/lib -ltcl$(TCL_VER2) TK_LIB = -ltk$(TCL_VER2) TOGL_LIB = -lTogl$(TOGL_VER) GLU_LIB = -L/opt/X11/lib -lGLU GL_LIB = -lGL FFTW3_LIB = -L/opt/homebrew/lib -lfftw3 # this is only used for some testing purposes #MESCHACH_LIB = -lmeschach # # Include directories # TCL_INCDIR = -I$(TOPDIR)/external/include TK_INCDIR = TOGL_INCDIR = GL_INCDIR = -I/opt/X11/include FFTW3_INCDIR = -I/opt/homebrew/include # this is only used for some testing purposes #MESCHACH_INCDIR = #------------------------------------------------------------------------