Mercurial > mplayer.hg
annotate libmpcodecs/Makefile @ 15816:5aa87072ef31
set HAVE_LRINTF and C99/GNU_SOURCE during internal FAAD compile test
author | henry |
---|---|
date | Sat, 25 Jun 2005 18:33:44 +0000 |
parents | d3d30585a9d2 |
children | 1a0c715343d2 |
rev | line source |
---|---|
4878 | 1 |
2 include ../config.mak | |
3 | |
4 LIBNAME = libmpcodecs.a | |
5550 | 5 LIBNAME2 = libmpencoders.a |
4878 | 6 |
15772 | 7 AUDIO_SRCS_LIB=ad_hwac3.c \ |
8 ad_liba52.c \ | |
9 ad_mp3lib.c \ | |
10 | |
11 AUDIO_SRCS_NAT=ad_alaw.c \ | |
12 ad_dk3adpcm.c \ | |
13 ad_dvdpcm.c \ | |
14 ad_imaadpcm.c \ | |
15 ad_msadpcm.c \ | |
16 ad_msgsm.c \ | |
17 ad_pcm.c \ | |
18 ad_ra1428.c \ | |
19 | |
20 AUDIO_SRCS_OPT=ad_acm.c \ | |
21 ad_dmo.c \ | |
22 ad_dshow.c \ | |
23 ad_faad.c \ | |
24 ad_ffmpeg.c \ | |
25 ad_libdv.c \ | |
26 ad_libmad.c \ | |
27 ad_libvorbis.c \ | |
28 ad_qtaudio.c \ | |
29 ad_realaud.c \ | |
30 ad_twin.c \ | |
31 | |
8024 | 32 AUDIO_SRCS=dec_audio.c ad.c $(AUDIO_SRCS_LIB) $(AUDIO_SRCS_NAT) $(AUDIO_SRCS_OPT) |
33 | |
15772 | 34 VIDEO_SRCS_LIB=vd_libmpeg2.c \ |
35 vd_lzo.c \ | |
36 vd_nuv.c \ | |
37 | |
38 VIDEO_SRCS_NAT=vd_hmblck.c \ | |
39 vd_mpegpes.c \ | |
40 vd_mtga.c \ | |
41 vd_null.c \ | |
42 vd_raw.c \ | |
43 vd_sgi.c \ | |
44 | |
45 VIDEO_SRCS_OPT=vd_divx4.c \ | |
46 vd_dmo.c \ | |
47 vd_dshow.c \ | |
48 vd_ffmpeg.c\ | |
49 vd_libdv.c \ | |
50 vd_odivx.c \ | |
51 vd_qtvideo.c \ | |
52 vd_realvid.c \ | |
53 vd_theora.c \ | |
54 vd_vfw.c \ | |
55 vd_vfwex.c \ | |
56 vd_xanim.c \ | |
57 vd_xvid4.c \ | |
58 vd_xvid.c \ | |
59 vd_zrmjpeg.c \ | |
60 | |
8024 | 61 VIDEO_SRCS=dec_video.c vd.c $(VIDEO_SRCS_NAT) $(VIDEO_SRCS_LIB) $(VIDEO_SRCS_OPT) |
62 | |
15772 | 63 VFILTER_SRCS=vf.c \ |
64 pullup.c \ | |
65 vf_1bpp.c \ | |
66 vf_2xsai.c \ | |
67 vf_bmovl.c \ | |
68 vf_boxblur.c \ | |
69 vf_crop.c \ | |
70 vf_cropdetect.c \ | |
71 vf_decimate.c \ | |
72 vf_delogo.c \ | |
73 vf_denoise3d.c \ | |
74 vf_detc.c \ | |
75 vf_dint.c \ | |
76 vf_divtc.c \ | |
77 vf_down3dright.c \ | |
78 vf_dsize.c \ | |
79 vf_dvbscale.c \ | |
80 vf_eq2.c \ | |
81 vf_eq.c \ | |
82 vf_expand.c \ | |
83 vf_field.c \ | |
84 vf_fil.c \ | |
85 vf_filmdint.c \ | |
86 vf_flip.c \ | |
87 vf_format.c \ | |
88 vf_framestep.c \ | |
89 vf_fspp.c \ | |
90 vf_halfpack.c \ | |
91 vf_harddup.c \ | |
92 vf_hqdn3d.c \ | |
93 vf_hue.c \ | |
94 vf_il.c \ | |
95 vf_ilpack.c \ | |
96 vf_ivtc.c \ | |
97 vf_kerndeint.c \ | |
98 vf_lavc.c \ | |
99 vf_lavcdeint.c \ | |
100 vf_mirror.c \ | |
101 vf_noformat.c \ | |
102 vf_noise.c \ | |
103 vf_palette.c \ | |
104 vf_perspective.c \ | |
105 vf_phase.c \ | |
106 vf_pullup.c \ | |
107 vf_qp.c \ | |
108 vf_rectangle.c \ | |
109 vf_remove_logo.c \ | |
110 vf_rgb2bgr.c \ | |
111 vf_rgbtest.c \ | |
112 vf_rotate.c \ | |
113 vf_sab.c \ | |
114 vf_scale.c \ | |
115 vf_smartblur.c \ | |
116 vf_softpulldown.c \ | |
117 vf_softskip.c \ | |
118 vf_spp.c \ | |
119 vf_swapuv.c \ | |
120 vf_telecine.c \ | |
121 vf_test.c \ | |
122 vf_tfields.c \ | |
123 vf_tile.c \ | |
124 vf_tinterlace.c \ | |
125 vf_unsharp.c \ | |
126 vf_vo.c \ | |
127 vf_yuvcsp.c \ | |
128 vf_yuy2.c \ | |
129 vf_yvu9.c \ | |
130 | |
11141 | 131 ifeq ($(HAVE_FFPOSTPROCESS),yes) |
132 VFILTER_SRCS += vf_pp.c | |
133 endif | |
134 | |
15772 | 135 ENCODER_SRCS=ae.c \ |
136 ae_pcm.c \ | |
137 ve.c \ | |
138 ve_divx4.c \ | |
139 ve_lavc.c \ | |
140 ve_libdv.c \ | |
141 ve_nuv.c \ | |
142 ve_qtvideo.c \ | |
143 ve_raw.c \ | |
144 ve_vfw.c \ | |
145 ve_x264.c \ | |
146 ve_xvid4.c \ | |
147 ve_xvid.c \ | |
8024 | 148 |
15772 | 149 NATIVE_SRCS=native/decode144.c \ |
150 native/decode288.c \ | |
151 native/minilzo.c \ | |
152 native/nuppelvideo.c \ | |
153 native/RTjpegN.c \ | |
154 native/xa_gsm.c \ | |
5029 | 155 |
5840
4e3cf9473628
Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents:
5774
diff
changeset
|
156 ifeq ($(FAME),yes) |
4e3cf9473628
Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents:
5774
diff
changeset
|
157 VFILTER_SRCS += vf_fame.c |
4e3cf9473628
Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents:
5774
diff
changeset
|
158 endif |
4e3cf9473628
Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents:
5774
diff
changeset
|
159 |
11662
173f22eb0505
vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents:
11600
diff
changeset
|
160 ifeq ($(ZORAN),yes) |
173f22eb0505
vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents:
11600
diff
changeset
|
161 VFILTER_SRCS += vf_zrmjpeg.c |
173f22eb0505
vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents:
11600
diff
changeset
|
162 endif |
173f22eb0505
vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents:
11600
diff
changeset
|
163 |
5029 | 164 ifeq ($(PNG),yes) |
5344 | 165 VIDEO_SRCS += vd_mpng.c |
5029 | 166 endif |
167 | |
168 ifeq ($(JPEG),yes) | |
5344 | 169 VIDEO_SRCS += vd_ijpg.c |
5029 | 170 endif |
4878 | 171 |
13426 | 172 ifeq ($(TOOLAME),yes) |
15234 | 173 ENCODER_SRCS += ae_toolame.c |
13426 | 174 EXTRA_INC += $(TOOLAME_EXTRAFLAGS) |
175 endif | |
176 | |
15359 | 177 ifeq ($(TWOLAME),yes) |
178 ENCODER_SRCS += ae_twolame.c | |
179 endif | |
180 | |
15234 | 181 ifeq ($(CONFIG_MP3LAME),yes) |
182 ENCODER_SRCS += ae_lame.c | |
183 endif | |
184 | |
185 ifeq ($(CONFIG_LIBAVCODEC),yes) | |
186 ENCODER_SRCS += ae_lavc.c | |
187 endif | |
188 | |
15259 | 189 ifeq ($(FAAC),yes) |
190 ENCODER_SRCS += ae_faac.c | |
191 endif | |
192 | |
5607 | 193 SRCS=$(AUDIO_SRCS) $(VIDEO_SRCS) $(VFILTER_SRCS) $(NATIVE_SRCS) img_format.c |
4878 | 194 OBJS=$(SRCS:.c=.o) |
195 | |
5550 | 196 SRCS2=$(ENCODER_SRCS) |
197 OBJS2=$(SRCS2:.c=.o) | |
198 | |
13311
8bf56817f2e5
Make --with-x264incdir work, patch by Jan Knutar <jknutar at nic.fi>
diego
parents:
13166
diff
changeset
|
199 CFLAGS = $(OPTFLAGS) -I. -Inative -I.. -I../libmpdemux -I../loader $(EXTRA_INC) $(X264_INC) -D_GNU_SOURCE |
4878 | 200 |
201 .SUFFIXES: .c .o | |
202 | |
203 # .PHONY: all clean | |
204 | |
205 .c.o: | |
206 $(CC) -c $(CFLAGS) -o $@ $< | |
207 | |
5550 | 208 all: $(LIBNAME) $(LIBNAME2) |
209 | |
4878 | 210 $(LIBNAME): $(OBJS) |
211 $(AR) r $(LIBNAME) $(OBJS) | |
12634 | 212 $(RANLIB) $(LIBNAME) |
4878 | 213 |
5550 | 214 $(LIBNAME2): $(OBJS2) |
215 $(AR) r $(LIBNAME2) $(OBJS2) | |
12634 | 216 $(RANLIB) $(LIBNAME2) |
4878 | 217 |
218 clean: | |
219 rm -f *.o *.a *~ | |
14138
40ac42c6dd6d
make clean should also clean the native subdirectory.
diego
parents:
13426
diff
changeset
|
220 rm -f native/*.o native/*.a native/*~ |
4878 | 221 |
222 distclean: | |
5603 | 223 rm -f Makefile.bak $(OBJS) $(OBJS2) $(LIBNAME) $(LIBNAME2) *~ .depend |
4878 | 224 |
225 dep: depend | |
226 | |
227 depend: | |
5550 | 228 $(CC) -MM $(CFLAGS) $(SRCS) $(SRCS2) 1>.depend |
4878 | 229 |
230 # | |
231 # include dependency files if they exist | |
232 # | |
233 ifneq ($(wildcard .depend),) | |
234 include .depend | |
235 endif | |
236 |