Makefrag (1166B)
1 2 ZLIB_CFLAGS := 3 4 ZLIB_EOBJS := \ 5 $(addprefix vxa/zlib/, \ 6 ezlib.vo \ 7 compress.vo \ 8 deflate.vo \ 9 trees.vo \ 10 adler32.vo \ 11 crc32.vo \ 12 zutil.vo \ 13 ) 14 15 # VX32 decoder 16 ZLIB_DOBJS := \ 17 $(addprefix vxa/zlib/, \ 18 dzlib.vo \ 19 inflate.vo \ 20 inftrees.vo \ 21 inffast.vo \ 22 adler32.vo \ 23 crc32.vo \ 24 zutil.vo \ 25 ) 26 27 28 ZLIB_TARGETS := vxa/zlib/ezlib vxa/zlib/dzlib vxa/zlib/hdzlib 29 30 OBJDIRS += vxa/zlib 31 CLEAN_FILES += $(ZLIB_EOBJS) $(ZLIB_DOBJS) $(ZLIB_TARGETS) 32 33 34 all: $(ZLIB_TARGETS) 35 36 37 # VXA encoder and decoder 38 vxa/zlib/ezlib: $(ZLIB_EOBJS) $(CLIB_DEPS) 39 $(VX32_LD) -o $@ $(VX32_LDFLAGS) $(ZLIB_EOBJS) $(VX32_LDLIBS) 40 41 vxa/zlib/dzlib: $(ZLIB_DOBJS) $(CLIB_DEPS) 42 $(VX32_LD) -s -o $@ $(VX32_LDFLAGS) $(ZLIB_DOBJS) $(VX32_LDLIBS) 43 44 vxa/zlib/%.vo: vxa/zlib/%.c 45 $(VX32_CC) -c -o $@ $(VX32_CFLAGS) $(ZLIB_CFLAGS) $< 46 47 48 # Host version of standalone zlib decoder, for comparison and debugging. 49 ZLIB_HDOBJS := $(patsubst %.vo,%.ho,$(ZLIB_DOBJS)) 50 CLEAN_FILES += $(ZLIB_HDOBJS) vxa/zlib/hdzlib 51 52 vxa/zlib/hdzlib: $(ZLIB_HDOBJS) 53 $(HOST_CC) -o $@ $(HOST_LDFLAGS) $(ZLIB_HDOBJS) 54 55 vxa/zlib/%.ho: vxa/zlib/%.c 56 $(HOST_CC) -c -o vxa/zlib/$*.ho $(HOST_CFLAGS) $(ZLIB_CFLAGS) $< 57