############################################################################## # Makefile definitions for external libraries # # Suitable for POSIX platforms (Linux, *BSD, OSX etc.). # Note: the configurable options are in makeconfig. # # Copyright (C) 2009-2010 Francesco Abbate. See Copyright Notice in gsl-shell.c ############################################################################## ifeq ($(HOST_SYS),Windows) USER_LIBS_HOME = C:/fra/sviluppo USER_INCLUDE = $(USER_LIBS_HOME)/include INCLUDES += -I$(USER_INCLUDE) LIBS += -L$(USER_LIBS_HOME)/lib AGG_INCLUDES = -I$(USER_INCLUDE)/agg2 AGG_LIBS = -lagg -lgdi32 FOX_INCLUDES = -I$(USER_INCLUDE)/fox-1.6 FOX_LIBS = -lfox -lgdi32 GSL_INCLUDES = GSL_LIBS = -lgsl -lblas FREETYPE_INCLUDES = FREETYPE_LIBS = -lfreetype PTHREADS_LIBS = -lpthread else ifeq ($(HOST_SYS),Darwin) # GWH: determined all of the following flags (except for pthread) # using the pkg-config utility, except I had to add -lX11 to AGG_LIBS. AGG_INCLUDES = $(shell pkg-config libagg --cflags) AGG_LIBS = $(shell pkg-config libagg --libs) -lX11 # GWH: pkg-config will include "-Wl,-rpath,/opt/local/lib" in AGG_LIBS. # If you don't include that, the code won't run unless you first do: # export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib GSL_INCLUDES = $(shell pkg-config gsl --cflags) GSL_LIBS = $(shell pkg-config gsl --libs) FOX_INCLUDES := $(shell pkg-config fox --cflags) FOX_LIBS = $(shell pkg-config fox --libs) FREETYPE_INCLUDES = $(shell pkg-config freetype2 --cflags) FREETYPE_LIBS = $(shell pkg-config freetype2 --libs) PTHREADS_LIBS = -lpthread else AGG_INCLUDES = -I/usr/include/agg2 AGG_LIBS = -lagg -lX11 GSL_INCLUDES = GSL_LIBS = -lgsl -lblas FOX_INCLUDES := $(shell pkg-config fox --cflags) FOX_LIBS = $(shell pkg-config fox --libs) FREETYPE_INCLUDES = -I/usr/include/freetype2 FREETYPE_LIBS = -lfreetype RL_INCLUDES = -I/usr/include/readline RL_LIBS = -ldl -lreadline -lhistory -lncurses PTHREADS_LIBS = -lpthread endif endif

AltStyle によって変換されたページ (->オリジナル) /