comparison Makefile @ 973:e2c119417470 libavcodec

enabled SSE fft (first code using GCC 3.2 vector builtins on x86 - please tell me if you have better ideas for intrinsic naming or Makefile support)
author bellard
date Tue, 07 Jan 2003 17:48:14 +0000
parents 725ef4ea3ecc
children e05d525505c5
comparison
equal deleted inserted replaced
972:19419cb268fe 973:e2c119417470
48 # i386 mmx specific stuff 48 # i386 mmx specific stuff
49 ifeq ($(TARGET_MMX),yes) 49 ifeq ($(TARGET_MMX),yes)
50 OBJS += i386/fdct_mmx.o i386/cputest.o \ 50 OBJS += i386/fdct_mmx.o i386/cputest.o \
51 i386/dsputil_mmx.o i386/mpegvideo_mmx.o \ 51 i386/dsputil_mmx.o i386/mpegvideo_mmx.o \
52 i386/idct_mmx.o i386/motion_est_mmx.o \ 52 i386/idct_mmx.o i386/motion_est_mmx.o \
53 i386/simple_idct_mmx.o 53 i386/simple_idct_mmx.o i386/fft_sse.o
54 endif 54 endif
55 55
56 # armv4l specific stuff 56 # armv4l specific stuff
57 ifeq ($(TARGET_ARCH_ARMV4L),yes) 57 ifeq ($(TARGET_ARCH_ARMV4L),yes)
58 ASM_OBJS += armv4l/jrevdct_arm.o 58 ASM_OBJS += armv4l/jrevdct_arm.o
108 $(SLIB): $(OBJS) 108 $(SLIB): $(OBJS)
109 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) 109 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS)
110 110
111 dsputil.o: dsputil.c dsputil.h 111 dsputil.o: dsputil.c dsputil.h
112 112
113 # specific sse code
114 %_sse.o : %_sse.c
115 $(CC) $(CFLAGS) -msse -c -o $@ $<
116
117 # specific 3dnow code
118 %_3dnow.o : %_3dnow.c
119 $(CC) $(CFLAGS) -m3dnow -c -o $@ $<
120
121 %.o: %.c 113 %.o: %.c
122 $(CC) $(CFLAGS) -c -o $@ $< 114 $(CC) $(CFLAGS) -c -o $@ $<
123 115
124 %.o: %.S 116 %.o: %.S
125 $(CC) $(CFLAGS) -c -o $@ $< 117 $(CC) $(CFLAGS) -c -o $@ $<
172 $(CC) -o $@ $^ -lm 164 $(CC) -o $@ $^ -lm
173 165
174 motion-test: motion_test.o $(LIB) 166 motion-test: motion_test.o $(LIB)
175 $(CC) -o $@ $^ -lm 167 $(CC) -o $@ $^ -lm
176 168
177 fft-test: fft-test.o fft.o mdct.o 169 fft-test: fft-test.o $(LIB)
178 $(CC) -o $@ $^ -lm 170 $(CC) -o $@ $^ -lm
179 171
180 install: all 172 install: all
181 ifeq ($(BUILD_SHARED),yes) 173 ifeq ($(BUILD_SHARED),yes)
182 install -d $(prefix)/lib 174 install -d $(prefix)/lib