######################################################################### # # Make.sys for X11 shared compilation on Mac OS X # # This Make.sys uses the MacPorts and requires the following packages: # # xorg-libX11 # xorg-libXmu # tcl # tk # mesa # libGLU # fftw-3 # ImageMagick (optional, but highly recommended) # ######################################################################## #------------------------------------------------------------------------ # 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/local/include #------------------------------------------------------------------------ # EXTERNAL LIBRARIES: Togl # N.B.: Togl from macports is not OK, let's compile it from sources # COMPILE_TOGL = yes TOGL_OPTIONS = --exec-prefix=$(TOPDIR)/external --enable-shared --with-tcl=/opt/local/lib --with-tk=/opt/local/lib \ --with-x CFLAGS=-I/opt/local/include --x-includes=/opt/local/include --x-libraries=/opt/local/lib #------------------------------------------------------------------------ # # Libraries # TCL_LIB = -L$(TOPDIR)/external/lib -ltcl$(TCL_VER2) TK_LIB = -ltk$(TCL_VER2) TOGL_LIB = -lTogl$(TOGL_VER) GLU_LIB = -L/opt/local/lib -lGLU GL_LIB = -lGL FFTW3_LIB = -L/opt/local/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/local/include FFTW3_INCDIR = # this is only used for some testing purposes #MESCHACH_INCDIR = #------------------------------------------------------------------------