Makefrag (1325B)
1 2 JPEG_CFLAGS := 3 4 JPEG_HCFLAGS := $(JPEG_CFLAGS) 5 #JPEG_HCFLAGS := $(JPEG_CFLAGS) -msse2 -mfpmath=sse 6 7 JPEG_SRCS := $(addprefix vxa/jpeg/, \ 8 jcomapi.c \ 9 jdapimin.c \ 10 jdapistd.c \ 11 jdatasrc.c \ 12 jdcoefct.c \ 13 jdcolor.c \ 14 jddctmgr.c \ 15 jdhuff.c \ 16 jdinput.c \ 17 jdmainct.c \ 18 jdmarker.c \ 19 jdmaster.c \ 20 jdmerge.c \ 21 jdphuff.c \ 22 jdpostct.c \ 23 jdsample.c \ 24 jerror.c \ 25 jidctflt.c \ 26 jidctfst.c \ 27 jidctint.c \ 28 jidctred.c \ 29 jmemmgr.c \ 30 jmemnobs.c \ 31 jquant1.c \ 32 jquant2.c \ 33 jutils.c \ 34 wrbmp.c \ 35 ) 36 37 JPEG_DOBJS := vxa/jpeg/djpeg.vo \ 38 $(patsubst %.c,%.vo,$(JPEG_SRCS)) 39 40 JPEG_TARGETS := vxa/jpeg/djpeg vxa/jpeg/hdjpeg 41 42 OBJDIRS += vxa/jpeg 43 CLEAN_FILES += $(JPEG_DOBJS) $(JPEG_TARGETS) 44 45 46 all: $(JPEG_TARGETS) 47 48 vxa/jpeg/djpeg: $(JPEG_DOBJS) $(CLIB_DEPS) 49 $(VX32_LD) -o $@ $(VX32_LDFLAGS) $(JPEG_DOBJS) $(VX32_LDLIBS) 50 51 vxa/jpeg/%.vo: vxa/jpeg/%.c 52 $(VX32_CC) -c -o $@ $(VX32_CFLAGS) $(JPEG_CFLAGS) $< 53 54 55 56 # Host version of jpeg decoder, for comparison and debugging 57 # (not built by default - use 'make jpeg/hdjpeg' to build it.) 58 59 JPEG_HDOBJS := $(patsubst %.vo,%.ho,$(JPEG_DOBJS)) 60 CLEAN_FILES += $(JPEG_HDOBJS) vxa/jpeg/hdjpeg 61 62 vxa/jpeg/hdjpeg: $(JPEG_HDOBJS) 63 $(HOST_CC) -o $@ $(HOST_LDFLAGS) $(JPEG_HDOBJS) -lm 64 65 vxa/jpeg/%.ho: vxa/jpeg/%.c 66 $(HOST_CC) -c -o $@ $(HOST_CFLAGS) $(JPEG_HCFLAGS) $< 67