vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

Makefrag (1411B)


      1 
      2 VORBIS_CFLAGS := -Ivxa/vorbis -Ivxa/vorbis/libogg/include \
      3 		-Ivxa/vorbis/libvorbis/include
      4 
      5 VORBIS_HCFLAGS := $(VORBIS_CFLAGS)
      6 #VORBIS_HCFLAGS := $(VORBIS_CFLAGS) -msse2 -mfpmath=sse
      7 
      8 VORBIS_DOBJS := \
      9 	vxa/vorbis/dvorbis.vo \
     10 	$(addprefix vxa/vorbis/libogg/src/, \
     11 		bitwise.vo \
     12 		framing.vo \
     13 	) \
     14 	$(addprefix vxa/vorbis/libvorbis/lib/, \
     15 		analysis.vo \
     16 		bitrate.vo \
     17 		block.vo \
     18 		codebook.vo \
     19 		envelope.vo \
     20 		floor0.vo \
     21 		floor1.vo \
     22 		info.vo \
     23 		lpc.vo \
     24 		lsp.vo \
     25 		mapping0.vo \
     26 		mdct.vo \
     27 		psy.vo \
     28 		registry.vo \
     29 		res0.vo \
     30 		sharedbook.vo \
     31 		smallft.vo \
     32 		synthesis.vo \
     33 		vorbisfile.vo \
     34 		window.vo \
     35 	)
     36 
     37 OBJDIRS += vorbis vorbis/libogg/src vorbis/libvorbis/lib
     38 CLEAN_FILES += $(VORBIS_DOBJS) vorbis/dvorbis
     39 
     40 
     41 all: vxa/vorbis/dvorbis vxa/vorbis/hdvorbis
     42 
     43 vxa/vorbis/dvorbis: $(VORBIS_DOBJS) $(CLIB_DEPS)
     44 	$(VX32_LD) -o $@ $(VX32_LDFLAGS) $(VORBIS_DOBJS) $(VX32_LDLIBS)
     45 
     46 vxa/vorbis/%.vo: vxa/vorbis/%.c
     47 	$(VX32_CC) -c -o $@ $(VX32_CFLAGS) $(VORBIS_CFLAGS) $<
     48 
     49 
     50 # Host version of vorbis decoder, for comparison and debugging
     51 # (not built by default - use 'make vorbis/hdvorbis' to build it.)
     52 
     53 VORBIS_HDOBJS := $(patsubst %.vo,%.ho,$(VORBIS_DOBJS))
     54 CLEAN_FILES += $(VORBIS_HDOBJS) vorbis/hdvorbis
     55 
     56 vxa/vorbis/hdvorbis: $(VORBIS_HDOBJS)
     57 	$(HOST_CC) -o $@ $(HOST_LDFLAGS) $(VORBIS_HDOBJS) -lm
     58 
     59 vxa/vorbis/%.ho: vxa/vorbis/%.c
     60 	$(HOST_CC) -c -o $@ $(VORBIS_HCFLAGS) $(HOST_CFLAGS) $<
     61