Commit 6f287646 authored by Liam Healy's avatar Liam Healy

Handle cflags in the grovel file

Handle conditional cflags in the grovel file instead of modifying the
cffi-grovel::*cc-flags* variable.  Also use strings for depends-on
in asdf file.
parent 9a311b1b
;; CFFI-Grovel definitions for unix systems.
;; Liam Healy 2009-06-06 09:32:30EDT monte-carlo-structs.lisp
;; Time-stamp: <2009-06-06 09:36:24EDT monte-carlo-structs.lisp>
;; Time-stamp: <2009-08-23 10:19:40EDT monte-carlo-structs.lisp>
(in-package :gsl)
#+linux
(define "_GNU_SOURCE")
(in-package :gsl)
;;; When installed through Mac Ports, GSL .h files will be found
;;; in /opt/local/include.
#+darwin
(cc-flags "-I/opt/local/include/")
(include "gsl/gsl_monte_plain.h")
......
;; CFFI-Grovel definitions for unix systems.
;; Liam Healy 2009-06-06 09:36:29EDT array-structs.lisp
;; Time-stamp: <2009-06-06 10:16:51EDT array-structs.lisp>
;; Time-stamp: <2009-08-23 10:15:51EDT array-structs.lisp>
(in-package :gsl)
#+linux
(define "_GNU_SOURCE")
(in-package :gsl)
;;; When installed through Mac Ports, GSL .h files will be found
;;; in /opt/local/include.
#+darwin
(cc-flags "-I/opt/local/include/")
(include "gsl/gsl_block_double.h")
......
;; CFFI-Grovel definitions.
;; Liam Healy
;; Time-stamp: <2009-06-06 11:01:18EDT eigen-struct.lisp>
;; Time-stamp: <2009-08-23 10:18:04EDT eigen-struct.lisp>
(in-package :gsl)
#+linux
(define "_GNU_SOURCE")
(in-package :gsl)
;;; When installed through Mac Ports, GSL .h files will be found
;;; in /opt/local/include.
#+darwin
(cc-flags "-I/opt/local/include/")
(include "gsl/gsl_eigen.h")
......
This diff is collapsed.
;; GSL structures for holding functions
;; Liam Healy 2009-04-04 22:15:56EDT callback-struct.lisp
;; Time-stamp: <2009-06-06 10:50:41EDT callback-struct.lisp>
;; Time-stamp: <2009-08-23 10:15:52EDT callback-struct.lisp>
(in-package :gsl)
#+linux
(define "_GNU_SOURCE")
(in-package :gsl)
;;; When installed through Mac Ports, GSL .h files will be found
;;; in /opt/local/include.
#+darwin
(cc-flags "-I/opt/local/include/")
(include "gsl/gsl_math.h")
......
;; Load GSL
;; Liam Healy Sat Mar 4 2006 - 18:53
;; Time-stamp: <2009-08-22 16:19:52EDT init.lisp>
;; Time-stamp: <2009-08-23 10:15:53EDT init.lisp>
;; $Id$
(defpackage gsll
(:nicknames :gsl)
(:use :common-lisp :cffi))
;;; When installed through Mac Ports, GSL .h files will be found
;;; in /opt/local/include.
#+darwin
(setf cffi-grovel::*cc-flags*
(append '("-I" "/opt/local/include/") cffi-grovel::*cc-flags*))
(cffi:define-foreign-library libgslcblas
(:darwin
(:or "/opt/local/lib/libgslcblas.dylib" "/sw/lib/libgslcblas.dylib"
......
;; CFFI-Grovel definitions for unix systems.
;; Liam Healy 2009-05-25 13:10:50EDT libgsl-unix.lisp
;; Time-stamp: <2009-05-25 16:32:12EDT libgsl-unix.lisp>
;; Time-stamp: <2009-08-23 10:07:35EDT libgsl-unix.lisp>
;; $Id: $
(in-package :gsl)
#+linux
(define "_GNU_SOURCE")
(in-package :gsl)
;;; When installed through Mac Ports, GSL .h files will be found
;;; in /opt/local/include.
#+darwin
(cc-flags "-I/opt/local/include/")
(include "gsl/gsl_integration.h")
......
;; Define the structure for ODEs
;; Liam Healy 2009-06-06 16:42:29EDT ode-struct.lisp
;; Time-stamp: <2009-06-06 17:08:02EDT ode-struct.lisp>
;; Time-stamp: <2009-08-23 10:20:07EDT ode-struct.lisp>
(in-package :gsl)
#+linux
(define "_GNU_SOURCE")
(in-package :gsl)
;;; When installed through Mac Ports, GSL .h files will be found
;;; in /opt/local/include.
#+darwin
(cc-flags "-I/opt/local/include/")
(include "gsl/gsl_odeiv.h")
......
;; Physical constants in the CGSM system
;; Liam Healy 2009-05-25 17:01:32EDT cgsm.lisp
;; Time-stamp: <2009-06-08 09:59:10EDT cgsm.lisp>
;; Time-stamp: <2009-08-23 10:24:52EDT cgsm.lisp>
;; $Id: $
(in-package :gsl)
#+linux
(define "_GNU_SOURCE")
(in-package :gsl)
;;; When installed through Mac Ports, GSL .h files will be found
;;; in /opt/local/include.
#+darwin
(cc-flags "-I/opt/local/include/")
(include "gsl/gsl_const_cgsm.h")
......
;; Physical constants in the MKSA system
;; Liam Healy 2009-05-25 17:01:32EDT mksa.lisp
;; Time-stamp: <2009-06-08 09:58:54EDT mksa.lisp>
;; Time-stamp: <2009-08-23 10:24:53EDT mksa.lisp>
;; $Id: $
(in-package :gsl)
#+linux
(define "_GNU_SOURCE")
(in-package :gsl)
;;; When installed through Mac Ports, GSL .h files will be found
;;; in /opt/local/include.
#+darwin
(cc-flags "-I/opt/local/include/")
(include "gsl/gsl_const_mksa.h")
......
;; Define the structure for series
;; Liam Healy 2009-06-06 11:08:11EDT series-struct.lisp
;; Time-stamp: <2009-06-06 16:44:41EDT series-struct.lisp>
;; Time-stamp: <2009-08-23 10:22:16EDT series-struct.lisp>
(in-package :gsl)
#+linux
(define "_GNU_SOURCE")
(in-package :gsl)
;;; When installed through Mac Ports, GSL .h files will be found
;;; in /opt/local/include.
#+darwin
(cc-flags "-I/opt/local/include/")
(include "gsl/gsl_sum.h")
......
;; Define the structures for solvers
;; Liam Healy 2009-06-06 16:46:38EDT solver-struct.lisp
;; Time-stamp: <2009-06-06 17:09:33EDT solver-struct.lisp>
;; Time-stamp: <2009-08-23 10:22:16EDT solver-struct.lisp>
(in-package :gsl)
#+linux
(define "_GNU_SOURCE")
(in-package :gsl)
;;; When installed through Mac Ports, GSL .h files will be found
;;; in /opt/local/include.
#+darwin
(cc-flags "-I/opt/local/include/")
(include "gsl/gsl_multifit_nlin.h")
......
;; CFFI-Grovel definitions for unix systems.
;; Liam Healy
;; Time-stamp: <2009-06-06 10:54:09EDT sf-result.lisp>
;; Time-stamp: <2009-08-23 10:17:08EDT sf-result.lisp>
(in-package :gsl)
#+linux
(define "_GNU_SOURCE")
(in-package :gsl)
;;; When installed through Mac Ports, GSL .h files will be found
;;; in /opt/local/include.
#+darwin
(cc-flags "-I/opt/local/include/")
(include "gsl/gsl_sf_result.h")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment