Makefrag (1265B)
1 2 FLAC_CFLAGS := -Ivxa/flac/include -Ivxa/flac/src/libFLAC/include \ 3 -DVERSION=\"vx32\" 4 5 FLAC_OBJS := \ 6 vxa/flac/dflac.o \ 7 $(addprefix vxa/flac/src/libFLAC/, \ 8 stream_decoder.vo \ 9 ) 10 11 FLAC_EOBJS := 12 13 FLAC_DOBJS := \ 14 vxa/flac/dflac.vo \ 15 $(addprefix vxa/flac/src/flac/, \ 16 decode.vo \ 17 utils.vo \ 18 ) \ 19 $(addprefix vxa/flac/src/libFLAC/, \ 20 bitbuffer.vo \ 21 bitmath.vo \ 22 cpu.vo \ 23 crc.vo \ 24 file_decoder.vo \ 25 fixed.vo \ 26 format.vo \ 27 lpc.vo \ 28 md5.vo \ 29 memory.vo \ 30 seekable_stream_decoder.vo \ 31 stream_decoder.vo \ 32 ) 33 34 OBJDIRS += vxa/flac vxa/flac/src/flac vxa/flac/src/libFLAC 35 CLEAN_FILES += $(FLAC_DOBJS) vxa/flac/dflac 36 37 38 all: vxa/flac/dflac vxa/flac/hdflac 39 40 vxa/flac/dflac: $(FLAC_DOBJS) $(CLIB_DEPS) 41 $(VX32_LD) -o $@ $(VX32_LDFLAGS) $(FLAC_DOBJS) $(VX32_LDLIBS) 42 43 vxa/flac/%.vo: vxa/flac/%.c 44 $(VX32_CC) -c -o $@ $(VX32_CFLAGS) $(FLAC_CFLAGS) $< 45 46 47 # Host version of flac decoder, for comparison and debugging 48 # (not built by default - use 'make flac/hdflac' to build it.) 49 50 FLAC_HDOBJS := $(patsubst %.vo,%.ho,$(FLAC_DOBJS)) 51 CLEAN_FILES += $(FLAC_HDOBJS) vxa/flac/hdflac 52 53 vxa/flac/hdflac: $(FLAC_HDOBJS) 54 $(HOST_CC) -o $@ $(HOST_LDFLAGS) $(FLAC_HDOBJS) -lm 55 56 vxa/flac/%.ho: vxa/flac/%.c 57 $(HOST_CC) -c -o $@ $(HOST_CFLAGS) $(FLAC_CFLAGS) $< 58