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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
1
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
2 include ../config.mak
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
3
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
4 LIBNAME = libmpcodecs.a
5550
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
5 LIBNAME2 = libmpencoders.a
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
6
15772
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
7 AUDIO_SRCS_LIB=ad_hwac3.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
8 ad_liba52.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
9 ad_mp3lib.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
10
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
11 AUDIO_SRCS_NAT=ad_alaw.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
12 ad_dk3adpcm.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
13 ad_dvdpcm.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
14 ad_imaadpcm.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
15 ad_msadpcm.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
16 ad_msgsm.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
17 ad_pcm.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
18 ad_ra1428.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
19
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
20 AUDIO_SRCS_OPT=ad_acm.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
21 ad_dmo.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
22 ad_dshow.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
23 ad_faad.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
24 ad_ffmpeg.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
25 ad_libdv.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
26 ad_libmad.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
27 ad_libvorbis.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
28 ad_qtaudio.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
29 ad_realaud.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
30 ad_twin.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
31
8024
13e08eff5f90 cosmetics :)
arpi
parents: 8010
diff changeset
32 AUDIO_SRCS=dec_audio.c ad.c $(AUDIO_SRCS_LIB) $(AUDIO_SRCS_NAT) $(AUDIO_SRCS_OPT)
13e08eff5f90 cosmetics :)
arpi
parents: 8010
diff changeset
33
15772
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
34 VIDEO_SRCS_LIB=vd_libmpeg2.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
35 vd_lzo.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
36 vd_nuv.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
37
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
38 VIDEO_SRCS_NAT=vd_hmblck.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
39 vd_mpegpes.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
40 vd_mtga.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
41 vd_null.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
42 vd_raw.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
43 vd_sgi.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
44
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
45 VIDEO_SRCS_OPT=vd_divx4.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
46 vd_dmo.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
47 vd_dshow.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
48 vd_ffmpeg.c\
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
49 vd_libdv.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
50 vd_odivx.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
51 vd_qtvideo.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
52 vd_realvid.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
53 vd_theora.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
54 vd_vfw.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
55 vd_vfwex.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
56 vd_xanim.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
57 vd_xvid4.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
58 vd_xvid.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
59 vd_zrmjpeg.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
60
8024
13e08eff5f90 cosmetics :)
arpi
parents: 8010
diff changeset
61 VIDEO_SRCS=dec_video.c vd.c $(VIDEO_SRCS_NAT) $(VIDEO_SRCS_LIB) $(VIDEO_SRCS_OPT)
13e08eff5f90 cosmetics :)
arpi
parents: 8010
diff changeset
62
15772
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
63 VFILTER_SRCS=vf.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
64 pullup.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
65 vf_1bpp.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
66 vf_2xsai.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
67 vf_bmovl.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
68 vf_boxblur.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
69 vf_crop.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
70 vf_cropdetect.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
71 vf_decimate.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
72 vf_delogo.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
73 vf_denoise3d.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
74 vf_detc.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
75 vf_dint.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
76 vf_divtc.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
77 vf_down3dright.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
78 vf_dsize.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
79 vf_dvbscale.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
80 vf_eq2.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
81 vf_eq.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
82 vf_expand.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
83 vf_field.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
84 vf_fil.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
85 vf_filmdint.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
86 vf_flip.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
87 vf_format.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
88 vf_framestep.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
89 vf_fspp.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
90 vf_halfpack.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
91 vf_harddup.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
92 vf_hqdn3d.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
93 vf_hue.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
94 vf_il.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
95 vf_ilpack.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
96 vf_ivtc.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
97 vf_kerndeint.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
98 vf_lavc.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
99 vf_lavcdeint.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
100 vf_mirror.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
101 vf_noformat.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
102 vf_noise.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
103 vf_palette.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
104 vf_perspective.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
105 vf_phase.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
106 vf_pullup.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
107 vf_qp.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
108 vf_rectangle.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
109 vf_remove_logo.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
110 vf_rgb2bgr.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
111 vf_rgbtest.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
112 vf_rotate.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
113 vf_sab.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
114 vf_scale.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
115 vf_smartblur.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
116 vf_softpulldown.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
117 vf_softskip.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
118 vf_spp.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
119 vf_swapuv.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
120 vf_telecine.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
121 vf_test.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
122 vf_tfields.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
123 vf_tile.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
124 vf_tinterlace.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
125 vf_unsharp.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
126 vf_vo.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
127 vf_yuvcsp.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
128 vf_yuy2.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
129 vf_yvu9.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
130
11141
1ed8e514c725 Fix compilation when libavcodec is missing.
attila
parents: 11004
diff changeset
131 ifeq ($(HAVE_FFPOSTPROCESS),yes)
1ed8e514c725 Fix compilation when libavcodec is missing.
attila
parents: 11004
diff changeset
132 VFILTER_SRCS += vf_pp.c
1ed8e514c725 Fix compilation when libavcodec is missing.
attila
parents: 11004
diff changeset
133 endif
1ed8e514c725 Fix compilation when libavcodec is missing.
attila
parents: 11004
diff changeset
134
15772
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
135 ENCODER_SRCS=ae.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
136 ae_pcm.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
137 ve.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
138 ve_divx4.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
139 ve_lavc.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
140 ve_libdv.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
141 ve_nuv.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
142 ve_qtvideo.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
143 ve_raw.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
144 ve_vfw.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
145 ve_x264.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
146 ve_xvid4.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
147 ve_xvid.c \
8024
13e08eff5f90 cosmetics :)
arpi
parents: 8010
diff changeset
148
15772
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
149 NATIVE_SRCS=native/decode144.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
150 native/decode288.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
151 native/minilzo.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
152 native/nuppelvideo.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
153 native/RTjpegN.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15693
diff changeset
154 native/xa_gsm.c \
5029
ef8a43b74075 Add IJPG decoder.
pontscho
parents: 4998
diff changeset
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
ef8a43b74075 Add IJPG decoder.
pontscho
parents: 4998
diff changeset
164 ifeq ($(PNG),yes)
5344
7198d3eba09f ok, use ad_* stuff
arpi
parents: 5264
diff changeset
165 VIDEO_SRCS += vd_mpng.c
5029
ef8a43b74075 Add IJPG decoder.
pontscho
parents: 4998
diff changeset
166 endif
ef8a43b74075 Add IJPG decoder.
pontscho
parents: 4998
diff changeset
167
ef8a43b74075 Add IJPG decoder.
pontscho
parents: 4998
diff changeset
168 ifeq ($(JPEG),yes)
5344
7198d3eba09f ok, use ad_* stuff
arpi
parents: 5264
diff changeset
169 VIDEO_SRCS += vd_ijpg.c
5029
ef8a43b74075 Add IJPG decoder.
pontscho
parents: 4998
diff changeset
170 endif
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
171
13426
0f92ad66bbb5 encoding to mp2 with libtoolame
nicodvb
parents: 13311
diff changeset
172 ifeq ($(TOOLAME),yes)
15234
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
173 ENCODER_SRCS += ae_toolame.c
13426
0f92ad66bbb5 encoding to mp2 with libtoolame
nicodvb
parents: 13311
diff changeset
174 EXTRA_INC += $(TOOLAME_EXTRAFLAGS)
0f92ad66bbb5 encoding to mp2 with libtoolame
nicodvb
parents: 13311
diff changeset
175 endif
0f92ad66bbb5 encoding to mp2 with libtoolame
nicodvb
parents: 13311
diff changeset
176
15359
af245d15f502 added twolame mp2 audio encoder
nicodvb
parents: 15259
diff changeset
177 ifeq ($(TWOLAME),yes)
af245d15f502 added twolame mp2 audio encoder
nicodvb
parents: 15259
diff changeset
178 ENCODER_SRCS += ae_twolame.c
af245d15f502 added twolame mp2 audio encoder
nicodvb
parents: 15259
diff changeset
179 endif
af245d15f502 added twolame mp2 audio encoder
nicodvb
parents: 15259
diff changeset
180
15234
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
181 ifeq ($(CONFIG_MP3LAME),yes)
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
182 ENCODER_SRCS += ae_lame.c
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
183 endif
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
184
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
185 ifeq ($(CONFIG_LIBAVCODEC),yes)
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
186 ENCODER_SRCS += ae_lavc.c
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
187 endif
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
188
15259
854990f357ee added faac audio encoder
nicodvb
parents: 15234
diff changeset
189 ifeq ($(FAAC),yes)
854990f357ee added faac audio encoder
nicodvb
parents: 15234
diff changeset
190 ENCODER_SRCS += ae_faac.c
854990f357ee added faac audio encoder
nicodvb
parents: 15234
diff changeset
191 endif
854990f357ee added faac audio encoder
nicodvb
parents: 15234
diff changeset
192
5607
1972c3475d93 mp_image.h and img_format.h moved to libmpcodecs
arpi
parents: 5603
diff changeset
193 SRCS=$(AUDIO_SRCS) $(VIDEO_SRCS) $(VFILTER_SRCS) $(NATIVE_SRCS) img_format.c
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
194 OBJS=$(SRCS:.c=.o)
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
195
5550
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
196 SRCS2=$(ENCODER_SRCS)
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
197 OBJS2=$(SRCS2:.c=.o)
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
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
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
200
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
201 .SUFFIXES: .c .o
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
202
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
203 # .PHONY: all clean
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
204
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
205 .c.o:
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
206 $(CC) -c $(CFLAGS) -o $@ $<
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
207
5550
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
208 all: $(LIBNAME) $(LIBNAME2)
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
209
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
210 $(LIBNAME): $(OBJS)
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
211 $(AR) r $(LIBNAME) $(OBJS)
12634
e03ae519f344 ranlib cleanup
alex
parents: 12429
diff changeset
212 $(RANLIB) $(LIBNAME)
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
213
5550
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
214 $(LIBNAME2): $(OBJS2)
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
215 $(AR) r $(LIBNAME2) $(OBJS2)
12634
e03ae519f344 ranlib cleanup
alex
parents: 12429
diff changeset
216 $(RANLIB) $(LIBNAME2)
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
217
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
218 clean:
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
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
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
221
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
222 distclean:
5603
5f4485862a72 native codecs files moved to libmpcodecs/native/
arpi
parents: 5594
diff changeset
223 rm -f Makefile.bak $(OBJS) $(OBJS2) $(LIBNAME) $(LIBNAME2) *~ .depend
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
224
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
225 dep: depend
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
226
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
227 depend:
5550
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
228 $(CC) -MM $(CFLAGS) $(SRCS) $(SRCS2) 1>.depend
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
229
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
230 #
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
231 # include dependency files if they exist
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
232 #
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
233 ifneq ($(wildcard .depend),)
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
234 include .depend
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
235 endif
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
236