Makefrag (1477B)
1 2 JP2_CFLAGS := -Ivxa/jp2/include 3 4 JP2_HCFLAGS := $(JP2_CFLAGS) 5 #JP2_HCFLAGS := $(JP2_CFLAGS) -msse2 -mfpmath=sse 6 7 JP2_DSRCS := \ 8 $(addprefix vxa/jp2/base/, \ 9 jas_cm.c \ 10 jas_debug.c \ 11 jas_icc.c \ 12 jas_iccdata.c \ 13 jas_image.c \ 14 jas_malloc.c \ 15 jas_seq.c \ 16 jas_stream.c \ 17 jas_string.c \ 18 jas_tvp.c \ 19 ) \ 20 vxa/jp2/jp2/jp2_cod.c \ 21 vxa/jp2/jp2/jp2_dec.c \ 22 $(addprefix vxa/jp2/jpc/, \ 23 jpc_bs.c \ 24 jpc_cs.c \ 25 jpc_dec.c \ 26 jpc_math.c \ 27 jpc_mct.c \ 28 jpc_mqcod.c \ 29 jpc_mqdec.c \ 30 jpc_qmfb.c \ 31 jpc_t1cod.c \ 32 jpc_t1dec.c \ 33 jpc_t2cod.c \ 34 jpc_t2dec.c \ 35 jpc_tagtree.c \ 36 jpc_tsfb.c \ 37 jpc_util.c \ 38 ) \ 39 vxa/jp2/bmp/bmp_cod.c \ 40 vxa/jp2/bmp/bmp_enc.c 41 42 JP2_DOBJS := vxa/jp2/djp2.vo \ 43 $(patsubst %.c,%.vo,$(JP2_DSRCS)) 44 45 OBJDIRS += vxa/jp2 vxa/jp2/base vxa/jp2/jp2 vxa/jp2/jpc vxa/jp2/bmp 46 CLEAN_FILES += $(JP2_DOBJS) vxa/jp2/djp2 47 48 49 all: vxa/jp2/djp2 vxa/jp2/hdjp2 50 51 52 # VXA decoder 53 vxa/jp2/djp2: $(JP2_DOBJS) $(CLIB_DEPS) 54 $(VX32_LD) -o $@ $(VX32_LDFLAGS) $(JP2_DOBJS) $(VX32_LDLIBS) 55 56 vxa/jp2/%.vo: vxa/jp2/%.c 57 $(VX32_CC) -c -o $@ $(VX32_CFLAGS) $(JP2_CFLAGS) $< 58 59 60 # Host version of jp2 decoder, for comparison and debugging 61 # (not built by default - use 'make jp2/hdjp2' to build it.) 62 63 JP2_HDOBJS := $(patsubst %.vo,%.ho,$(JP2_DOBJS)) 64 CLEAN_FILES += $(JP2_HDOBJS) vxa/jp2/hdjp2 65 66 vxa/jp2/hdjp2: $(JP2_HDOBJS) 67 $(HOST_CC) -o $@ $(HOST_LDFLAGS) $(JP2_HDOBJS) -lm 68 69 vxa/jp2/%.ho: vxa/jp2/%.c 70 $(HOST_CC) -c -o $@ $(HOST_CFLAGS) $(JP2_HCFLAGS) -DHOST $< 71