#!/bin/sh
# Linker commands to generate cas under Mac OS X
c++ -m64 -o icas -g -I.. Graph.o icas.o History.o Input.o Xcas1.o Equation.o Graph3d.o Print.o Editeur.o Tableur.o Help1.o Cfg.o Flv_CStyle.o Flve_Check_Button.o Flve_Input.o Flv_Style.o Flv_Data_Source.o Flve_Combo.o Flv_List.o Flv_Table.o gl2ps.o /Applications/usr/lib/libgiac.dylib /usr/local/lib/libntl.a  /usr/local/lib/libpari.a /usr/local/lib/libmpfr.a /usr/local/lib/libgmp.a /usr/local/lib/libfltk_images.a /usr/local/lib/libfltk.a /usr/local/lib/libfltk_gl.a /usr/local/lib/libfltk_forms.a /usr/local/lib/libfltk_png.a /usr/local/lib/libfltk_jpeg.a /usr/local/lib/libgsl.a /usr/local/lib/libgslcblas.a /usr/local/lib/libreadline.a /usr/local/lib/libhistory.a /usr/local/lib/libintl.a /usr/local/lib/libgettextpo.a -liconv -lncurses -lm -lz -L/usr/local/lib/ -framework AGL -framework OpenGL -framework ApplicationServices -lpthread  -framework Cocoa -framework Accelerate
# with apple own implementation of lapack, seems however slower than atlas (and that builtin)
# c++ -m32 -isysroot /Developer/SDKs/MacOSX10.6.sdk -o icas -g -I.. first.o input_lexer.o Graph.o icas.o History.o Input.o Xcas1.o Equation.o Graph3d.o Print.o Editeur.o Tableur.o Help1.o Cfg.o Flv_CStyle.o Flve_Check_Button.o Flve_Input.o Flv_Style.o Flv_Data_Source.o Flve_Combo.o Flv_List.o Flv_Table.o unary.o gen.o identificateur.o usual.o pari.o cocoa.o TmpLESystemSolver.o TmpFGLM.o prog.o rpn.o plot.o plot3d.o help.o isom.o gauss.o alg_ext.o ifactor.o global.o tex.o vecteur.o csturm.o subst.o series.o lin.o intg.o intgab.o risch.o solve.o derive.o ezgcd.o modpoly.o modfactor.o index.o symbolic.o  input_parser.o desolve.o quater.o permu.o misc.o moyal.o maple.o ti89.o mathml.o gausspol.o sym2poly.o threaded.o tinymt32.o gl2ps.o /usr/local/lib/libntl.a  /usr/local/lib/libpari.a /usr/local/lib/libmpfr.a /usr/local/lib/libcocoa.a /usr/local/lib/libgmp.a /usr/local/lib/libfltk_images.a /usr/local/lib/libfltk.a /usr/local/lib/libfltk_gl.a /usr/local/lib/libfltk_forms.a /usr/local/lib/libfltk_png.a /usr/local/lib/libfltk_jpeg.a /usr/local/lib/libgsl.a /usr/local/lib/libgslcblas.a /usr/local/lib/libreadline.a /usr/local/lib/libhistory.a /usr/local/lib/libintl.a /usr/local/lib/libgettextpo.a -liconv -lncurses -lm -lz -framework AGL -framework OpenGL -framework ApplicationServices -lpthread  -framework Cocoa -framework Accelerate
#strip icas
# /Developer/Tools/Rez -t APPL /usr/local/include/FL/mac.r -o icas
#fltk-config --post icas
