| 1 |
|
| 2 |
# Jamfile for plot library and test program |
| 3 |
|
| 4 |
#PREF_CCFLAGS = $(CCOPTFLAG) ; # Turn optimisation on |
| 5 |
PREF_CCFLAGS = $(CCDEBUGFLAG) ; # Debugging flags |
| 6 |
PREF_LINKFLAGS = $(LINKDEBUGFLAG) ; |
| 7 |
|
| 8 |
# Compile .c as .m |
| 9 |
if $(OS) = MACOSX { |
| 10 |
ObjectCcFlags plot : -ObjC ; |
| 11 |
ObjectCcFlags plot_plot : -ObjC ; |
| 12 |
} |
| 13 |
|
| 14 |
# Stop MS compiler running out of heap space |
| 15 |
if $(MSVCNT) { |
| 16 |
CCFLAGS += "/Zm400" ; |
| 17 |
} |
| 18 |
|
| 19 |
# PLOT library |
| 20 |
Library libplot : plot.c : : : ../h ../numlib ../spectro ; |
| 21 |
if $(UNIX) && $(OS) != MACOSX { |
| 22 |
ObjectHdrs plot : $(LibWinH) ; |
| 23 |
} |
| 24 |
|
| 25 |
# VRML plot library |
| 26 |
Library libvrml : vrml.c : : : ../h ../icc ../cgats ../numlib ../gamut ; |
| 27 |
|
| 28 |
|
| 29 |
# X3DOM files x3dom.css & x3dom.js are from /src/x3dom/dist after using |
| 30 |
# /src/x3dom/src/Makefile python script to assemble them. |
| 31 |
if [ GLOB $(PATH) : xxd xxd.exe ] { |
| 32 |
Echo "xxd seems to be available" ; |
| 33 |
|
| 34 |
GenFileNNDnc x3dom.css.h : xxd -i "<" [ NormPaths x3dom.css ] ">" [ NormPaths x3dom.css.h ] ; |
| 35 |
GenFileNNDnc x3dom.js.h : xxd -i "<" [ NormPaths x3dom.js ] ">" [ NormPaths x3dom.js.h ] ; |
| 36 |
} |
| 37 |
|
| 38 |
# Individual stand alone test of plot library |
| 39 |
LINKFLAGS += $(GUILINKFLAGS) ; |
| 40 |
MainVariant plot : plot.c : : STANDALONE_TEST : ../h ../numlib ../spectro : : ../spectro/libconv.lib ../numlib/libnum.lib ../numlib/libui.lib ; |
| 41 |
|
| 42 |
#MainsFromSources ttt.c : : : ../numlib ; |
| 43 |
#Main ttt : ttt.c : : : ../numlib : : ../numlib/libnum libplot : ; |
| 44 |
|
| 45 |
#MainsFromSources t.c ; |
| 46 |
|