1 2# JAM style makefile for integer interpolation code, cctiff etc. 3 4#PREF_CCFLAGS += $(CCOPTFLAG) ; # Turn optimisation on 5PREF_CCFLAGS += $(CCDEBUGFLAG) ; # Debugging flags 6#PREF_CCFLAGS += $(CCPROFFLAG) ; # Profile flags 7PREF_LINKFLAGS += $(LINKDEBUGFLAG) ; # Link debugging flags 8#PREF_LINKFLAGS += $(LINKPROFFLAG) ; # Profile flags 9#PREF_CCFLAGS += $(CCHEAPDEBUG) ; # Heap Debugging flags 10 11#Products 12Libraries = libimdi ; 13Executables = cctiff greytiff ; 14Headers = imdi.h ; 15 16#Install 17InstallBin $(DESTDIR)$(PREFIX)/bin : $(Executables) ; 18#InstallFile $(DESTDIR)$(PREFIX)/h : $(Headers) ; 19#InstallLib $(DESTDIR)$(PREFIX)/lib : $(Libraries) ; 20 21HDRS = ../h ; 22 23# Hack! Make cross compile of MingW64 on 32 bit host work. 24# (This doesn't work - 32 bit libraries are not provided :-() 25#if $(NT) && $(MINGW64) { 26# ObjectCcFlags ctest imdi_make imdi_gen cgen : -m32 ; 27# MainLinkFlags ctest imdi_make : -m32 -L $(MINGW64_LIB32) ; 28#} 29if $(NT) && $(MINGW64) { 30 IMDI_MAKE_OPT = -f ; # Force 64 bits 31} 32 33# imdi low level cgen test code 34Main ctest : ctest.c cgen.c ; 35 36# make imdi code program 37Main imdi_make : imdi_make.c imdi_gen.c cgen.c ; 38 39HDRS = ../h ../numlib ; 40LINKLIBS = ../numlib/libnum ; 41 42# GenFile source.c : program args ; make custom file 43# Generate all the kernel files 44GenFileND imdi_k.h : imdi_make $(IMDI_MAKE_OPT) -d [ NormPaths $(DOT) ] ; 45 46# imdi library 47Library libimdi : imdi.c imdi_tab.c ; 48 49HDRS += ../icc ../rspl ../gamut ../cgats ../spectro ; 50LINKLIBS = $(LINKLIBS) libimdi ../icc/libicc ../numlib/libnum ; 51 52# imdi test code 53Main itest : itest.c refi.c : : : ../rspl : : ../rspl/librspl ../plot/libplot 54 ../plot/libvrml ../numlib/libui ; 55 56# TIFF file color correction utlity 57Main cctiff : cctiff.c : : : ../xicc $(TIFFINC) $(JPEGINC) : : ../xicc/libxicc ../rspl/librspl ../cgats/libcgats ../plot/libplot ../plot/libvrml ../numlib/libui $(TIFFLIB) $(JPEGLIB) ; 58 59# Old TIFF file color correction utlity 60#Main cctiffo : cctiffo.c : : : $(TIFFINC) : : $(TIFFLIB) ; 61 62# TIFF file monochrome conversion utlity 63#Main greytiff : greytiff.c ; 64Main greytiff : greytiff.c : : : ../spectro ../xicc ../gamut ../rspl ../cgats $(TIFFINC) 65 : : ../xicc/libxicc ../gamut/libgamut ../rspl/librspl ../cgats/libcgats 66 ../plot/libplot ../plot/libvrml ../numlib/libui $(TIFFLIB) $(JPEGLIB) ; 67 68# ssort generation code 69#Main ssort : ssort.c ; 70 71#Main shsort : shsort.c ; 72 73# code generated by shsort 74#Main ttt : ttt.c ; 75 76if $(BUILD_JUNK) { 77 78 Main f2test : f2test.c : : : ../spectro ../xicc ../gamut ../rspl ../cgats $(TIFFINC) 79 : : ../xicc/libxicc ../gamut/libgamut ../rspl/librspl ../cgats/libcgats 80 ../plot/libplot ../plot/libvrml $(TIFFLIB) $(JPEGLIB) ; 81 82 83 CCFLAGS += -msse3 ; 84 85 Main tvec : tvec.c ; 86 Main tvec2 : tvec2.c ; 87 88 # test code 89 Main tsort : tsort.c ; 90} 91 92