| 1 |
|
| 2 |
# Top level Argyll Jamfile. |
| 3 |
|
| 4 |
# Overall optization state and configuration. Overrides sub-Jamfiles |
| 5 |
# See Jamtop and Jambase for other details. |
| 6 |
|
| 7 |
PREF_CCFLAGS += $(CCOPTFLAG) ; # Turn optimisation on |
| 8 |
#PREF_CCFLAGS += $(CCDEBUGFLAG) ; # Debugging flags |
| 9 |
#PREF_CCFLAGS += $(CCHEAPDEBUG) ; # Heap Debugging & Debugging flags |
| 10 |
#PREF_LINKFLAGS += $(LINKOPTFLAG) ; # Link optimization flags |
| 11 |
PREF_LINKFLAGS += $(LINKDEBUGFLAG) ; # Link debugging flags |
| 12 |
#PREF_CCFLAGS += $(CCPROFFLAG) ; # Profile flags |
| 13 |
#PREF_LINKFLAGS += $(LINKPROFFLAG) ; # Profile flags |
| 14 |
|
| 15 |
if [ GLOB . : thirdparty_licenses.txt ] { |
| 16 |
ExeDoc = thirdparty_licenses.txt ; |
| 17 |
InstallFile bin : $(ExeDoc) ; |
| 18 |
} |
| 19 |
|
| 20 |
#Install |
| 21 |
InstallFile $(DESTDIR)$(PREFIX)/bin : com.argyllcms.metainfo.xml ; |
| 22 |
|
| 23 |
# Need compile date ? |
| 24 |
if $(NEED_COMPILE_DATE) = true && [ GLOB $(PATH) : awk awk.exe ] { |
| 25 |
Always compiledate.h ; |
| 26 |
GenFileNND compiledate.h : "awk 'BEGIN {srand();print \"#define COMPILEDATE \" srand()}' > compiledate.h" ; |
| 27 |
} else { |
| 28 |
# make sure compilation fails if there is no awk and compiledate.h is needed |
| 29 |
if [ GLOB . : compiledate.h ] { |
| 30 |
GenFileNND compiledate.rm : $(RM) compiledate.h ; |
| 31 |
} |
| 32 |
} |
| 33 |
|
| 34 |
# Include all the sub-directory Jamfiles |
| 35 |
|
| 36 |
SubInclude numlib ; |
| 37 |
SubInclude plot ; |
| 38 |
SubInclude icc ; |
| 39 |
SubInclude cgats ; |
| 40 |
SubInclude xml ; |
| 41 |
SubInclude yajl ; |
| 42 |
SubInclude rspl ; |
| 43 |
SubInclude gamut ; |
| 44 |
SubInclude xicc ; |
| 45 |
SubInclude imdi ; |
| 46 |
SubInclude spectro ; |
| 47 |
SubInclude target ; |
| 48 |
SubInclude scanin ; |
| 49 |
SubInclude profile ; |
| 50 |
SubInclude link ; |
| 51 |
SubInclude tweak ; |
| 52 |
SubInclude render ; |
| 53 |
SubInclude namedc ; |
| 54 |
SubInclude ccast ; |
| 55 |
|
| 56 |
if ! $(HAVE_TIFF) { |
| 57 |
SubInclude tiff ; |
| 58 |
} |
| 59 |
|
| 60 |
if ! $(HAVE_JPEG) { |
| 61 |
SubInclude jpeg ; |
| 62 |
} |
| 63 |
|
| 64 |
if ! $(HAVE_ZLIB) { |
| 65 |
SubInclude zlib ; |
| 66 |
} |
| 67 |
|
| 68 |
if ! $(HAVE_PNG) { |
| 69 |
SubInclude png ; |
| 70 |
} |
| 71 |
|
| 72 |
if $(NT) { |
| 73 |
SubInclude usb ; |
| 74 |
} |
| 75 |
|
| 76 |
if $(UNIX) && $(OS) != MACOSX { |
| 77 |
SubInclude jcnf ; |
| 78 |
SubInclude ucmm ; |
| 79 |
} |
| 80 |
|