]> git.sesse.net Git - vlc/blob - plugins/imdct/Makefile
* AC3 IMDCT and downmix functions are now in plugins, --imdct and
[vlc] / plugins / imdct / Makefile
1 ###############################################################################
2 # vlc (VideoLAN Client) imdct module makefile
3 # (c)2001 VideoLAN
4 ###############################################################################
5
6 #
7 # Objects
8 #
9
10 PLUGIN_IMDCT = imdct.o ac3_imdct_c.o ac3_srfft_c.o
11 PLUGIN_IMDCTSSE = imdctsse.o ac3_imdct_sse.o ac3_srfft_sse.o
12 PLUGIN_IMDCTCOMMON = ac3_imdct_common.o
13
14 BUILTIN_IMDCT = $(PLUGIN_IMDCT:%.o=BUILTIN_IMDCT_%.o) \
15                 $(PLUGIN_IMDCTCOMMON:%.o=BUILTIN_IMDCT_%.o)
16 BUILTIN_IMDCTSSE = $(PLUGIN_IMDCTSSE:%.o=BUILTIN_IMDCTSSE_%.o) \
17                 $(PLUGIN_IMDCTCOMMON:%.o=BUILTIN_IMDCTSSE_%.o)
18
19 PLUGIN_C = $(PLUGIN_IMDCT) $(PLUGIN_IMDCTSSE) $(PLUGIN_IMDCTCOMMON)
20 ALL_OBJ = $(PLUGIN_C) $(BUILTIN_IMDCT) $(BUILTIN_IMDCTSSE)
21
22 #
23 # Virtual targets
24 #
25
26 include ../../Makefile.modules
27
28 $(BUILTIN_IMDCT): BUILTIN_IMDCT_%.o: .dep/%.d
29 $(BUILTIN_IMDCT): BUILTIN_IMDCT_%.o: %.c
30         $(CC) $(CFLAGS) -DBUILTIN -DMODULE_NAME=imdct -c -o $@ $<
31
32 $(BUILTIN_IMDCTSSE): BUILTIN_IMDCTSSE_%.o: .dep/%.d
33 $(BUILTIN_IMDCTSSE): BUILTIN_IMDCTSSE_%.o: %.c
34         $(CC) $(CFLAGS) -DBUILTIN -DMODULE_NAME=imdctsse -c -o $@ $<
35
36 #
37 # Real targets
38 #
39
40 ../../lib/imdct.so: $(PLUGIN_IMDCT) $(PLUGIN_IMDCTCOMMON)
41         $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) 
42
43 ../../lib/imdct.a: $(BUILTIN_IMDCT)
44         ar r $@ $^
45         $(RANLIB) $@
46
47 ../../lib/imdctsse.so: $(PLUGIN_IMDCTSSE) $(PLUGIN_IMDCTCOMMON)
48         $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) 
49
50 ../../lib/imdctsse.a: $(BUILTIN_IMDCTSSE)
51         ar r $@ $^
52         $(RANLIB) $@
53