Debian Codegraph @

imdi/Jamfile

raw
1
2 # JAM style makefile for integer interpolation code, cctiff etc.
3
4 #PREF_CCFLAGS += $(CCOPTFLAG) ; # Turn optimisation on
5 PREF_CCFLAGS += $(CCDEBUGFLAG) ; # Debugging flags
6 #PREF_CCFLAGS += $(CCPROFFLAG) ; # Profile flags
7 PREF_LINKFLAGS += $(LINKDEBUGFLAG) ; # Link debugging flags
8 #PREF_LINKFLAGS += $(LINKPROFFLAG) ; # Profile flags
9 #PREF_CCFLAGS += $(CCHEAPDEBUG) ; # Heap Debugging flags
10
11 #Products
12 Libraries = libimdi ;
13 Executables = cctiff greytiff ;
14 Headers = imdi.h ;
15
16 #Install
17 InstallBin $(DESTDIR)$(PREFIX)/bin : $(Executables) ;
18 #InstallFile $(DESTDIR)$(PREFIX)/h : $(Headers) ;
19 #InstallLib $(DESTDIR)$(PREFIX)/lib : $(Libraries) ;
20
21 HDRS = ../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 #}
29 if $(NT) && $(MINGW64) {
30 IMDI_MAKE_OPT = -f ; # Force 64 bits
31 }
32
33 # imdi low level cgen test code
34 Main ctest : ctest.c cgen.c ;
35
36 # make imdi code program
37 Main imdi_make : imdi_make.c imdi_gen.c cgen.c ;
38
39 HDRS = ../h ../numlib ;
40 LINKLIBS = ../numlib/libnum ;
41
42 # GenFile source.c : program args ; make custom file
43 # Generate all the kernel files
44 GenFileND imdi_k.h : imdi_make $(IMDI_MAKE_OPT) -d [ NormPaths $(DOT) ] ;
45
46 # imdi library
47 Library libimdi : imdi.c imdi_tab.c ;
48
49 HDRS += ../icc ../rspl ../gamut ../cgats ../spectro ;
50 LINKLIBS = $(LINKLIBS) libimdi ../icc/libicc ../numlib/libnum ;
51
52 # imdi test code
53 Main itest : itest.c refi.c : : : ../rspl : : ../rspl/librspl ../plot/libplot
54 ../plot/libvrml ../numlib/libui ;
55
56 # TIFF file color correction utlity
57 Main 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 ;
64 Main 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
76 if $(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