Mercurial > mplayer.hg
annotate libmpcodecs/Makefile @ 18765:1ba0aff3ed0a
Remove separation between Win32 DLL and DirectShow support in the build system.
author | diego |
---|---|
date | Wed, 21 Jun 2006 09:45:17 +0000 |
parents | a80c7de8a4ba |
children | a1807995e2ab |
rev | line source |
---|---|
4878 | 1 |
2 include ../config.mak | |
3 | |
4 LIBNAME = libmpcodecs.a | |
5550 | 5 LIBNAME2 = libmpencoders.a |
4878 | 6 |
17524
cc6cf286e337
Only compile libmpencoders if MEncoder has been enabled.
diego
parents:
17523
diff
changeset
|
7 LIBS =$(LIBNAME) |
cc6cf286e337
Only compile libmpencoders if MEncoder has been enabled.
diego
parents:
17523
diff
changeset
|
8 ifeq ($(MENCODER),yes) |
cc6cf286e337
Only compile libmpencoders if MEncoder has been enabled.
diego
parents:
17523
diff
changeset
|
9 LIBS+=$(LIBNAME2) |
cc6cf286e337
Only compile libmpencoders if MEncoder has been enabled.
diego
parents:
17523
diff
changeset
|
10 endif |
cc6cf286e337
Only compile libmpencoders if MEncoder has been enabled.
diego
parents:
17523
diff
changeset
|
11 |
15772 | 12 AUDIO_SRCS_LIB=ad_hwac3.c \ |
13 ad_liba52.c \ | |
14 ad_mp3lib.c \ | |
17397
2e20dd653147
ad_hwmpa: pass-through fake audio codec for hardware mpeg decoders
nicodvb
parents:
17387
diff
changeset
|
15 ad_hwmpa.c \ |
15772 | 16 |
17 AUDIO_SRCS_NAT=ad_alaw.c \ | |
18 ad_dk3adpcm.c \ | |
19 ad_dvdpcm.c \ | |
20 ad_imaadpcm.c \ | |
21 ad_msadpcm.c \ | |
22 ad_msgsm.c \ | |
23 ad_pcm.c \ | |
24 | |
25 AUDIO_SRCS_OPT=ad_acm.c \ | |
26 ad_faad.c \ | |
27 ad_libdv.c \ | |
28 ad_libmad.c \ | |
29 ad_libvorbis.c \ | |
30 ad_qtaudio.c \ | |
31 ad_realaud.c \ | |
32 ad_twin.c \ | |
33 | |
17523
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
34 ifeq ($(CONFIG_LIBAVCODEC),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
35 AUDIO_SRCS_OPT+=ad_ffmpeg.c |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
36 endif |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
37 ifeq ($(CONFIG_LIBAVCODEC_SO),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
38 AUDIO_SRCS_OPT+=ad_ffmpeg.c |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
39 endif |
18765
1ba0aff3ed0a
Remove separation between Win32 DLL and DirectShow support in the build system.
diego
parents:
18608
diff
changeset
|
40 ifeq ($(WIN32DLL),yes) |
1ba0aff3ed0a
Remove separation between Win32 DLL and DirectShow support in the build system.
diego
parents:
18608
diff
changeset
|
41 AUDIO_SRCS_OPT+=ad_dshow.c ad_dmo.c |
1ba0aff3ed0a
Remove separation between Win32 DLL and DirectShow support in the build system.
diego
parents:
18608
diff
changeset
|
42 endif |
17523
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
43 |
16521
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
44 AUDIO_SRCS=dec_audio.c \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
45 ad.c \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
46 $(AUDIO_SRCS_LIB) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
47 $(AUDIO_SRCS_NAT) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
48 $(AUDIO_SRCS_OPT) \ |
8024 | 49 |
15772 | 50 VIDEO_SRCS_LIB=vd_libmpeg2.c \ |
51 vd_lzo.c \ | |
52 vd_nuv.c \ | |
53 | |
54 VIDEO_SRCS_NAT=vd_hmblck.c \ | |
55 vd_mpegpes.c \ | |
56 vd_mtga.c \ | |
57 vd_null.c \ | |
58 vd_raw.c \ | |
59 vd_sgi.c \ | |
60 | |
61 VIDEO_SRCS_OPT=vd_divx4.c \ | |
62 vd_libdv.c \ | |
63 vd_odivx.c \ | |
64 vd_qtvideo.c \ | |
65 vd_realvid.c \ | |
66 vd_theora.c \ | |
67 vd_vfw.c \ | |
68 vd_vfwex.c \ | |
69 vd_xanim.c \ | |
70 vd_xvid4.c \ | |
71 vd_xvid.c \ | |
72 vd_zrmjpeg.c \ | |
73 | |
17523
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
74 ifeq ($(CONFIG_LIBAVCODEC),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
75 VIDEO_SRCS_OPT+=vd_ffmpeg.c |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
76 endif |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
77 ifeq ($(CONFIG_LIBAVCODEC_SO),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
78 VIDEO_SRCS_OPT+=vd_ffmpeg.c |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
79 endif |
18765
1ba0aff3ed0a
Remove separation between Win32 DLL and DirectShow support in the build system.
diego
parents:
18608
diff
changeset
|
80 ifeq ($(WIN32DLL),yes) |
1ba0aff3ed0a
Remove separation between Win32 DLL and DirectShow support in the build system.
diego
parents:
18608
diff
changeset
|
81 VIDEO_SRCS_OPT+=vd_dmo.c vd_dshow.c |
1ba0aff3ed0a
Remove separation between Win32 DLL and DirectShow support in the build system.
diego
parents:
18608
diff
changeset
|
82 endif |
17523
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
83 |
16521
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
84 VIDEO_SRCS=dec_video.c \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
85 vd.c \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
86 $(VIDEO_SRCS_NAT) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
87 $(VIDEO_SRCS_LIB) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
88 $(VIDEO_SRCS_OPT) \ |
8024 | 89 |
15772 | 90 VFILTER_SRCS=vf.c \ |
91 pullup.c \ | |
92 vf_1bpp.c \ | |
93 vf_2xsai.c \ | |
94 vf_bmovl.c \ | |
95 vf_boxblur.c \ | |
96 vf_crop.c \ | |
97 vf_cropdetect.c \ | |
98 vf_decimate.c \ | |
99 vf_delogo.c \ | |
100 vf_denoise3d.c \ | |
101 vf_detc.c \ | |
102 vf_dint.c \ | |
103 vf_divtc.c \ | |
104 vf_down3dright.c \ | |
105 vf_dsize.c \ | |
106 vf_dvbscale.c \ | |
107 vf_eq2.c \ | |
108 vf_eq.c \ | |
109 vf_expand.c \ | |
110 vf_field.c \ | |
111 vf_fil.c \ | |
112 vf_filmdint.c \ | |
113 vf_flip.c \ | |
114 vf_format.c \ | |
115 vf_framestep.c \ | |
116 vf_halfpack.c \ | |
117 vf_harddup.c \ | |
118 vf_hqdn3d.c \ | |
119 vf_hue.c \ | |
120 vf_il.c \ | |
121 vf_ilpack.c \ | |
122 vf_ivtc.c \ | |
123 vf_kerndeint.c \ | |
124 vf_mirror.c \ | |
125 vf_noformat.c \ | |
126 vf_noise.c \ | |
127 vf_palette.c \ | |
128 vf_perspective.c \ | |
129 vf_phase.c \ | |
15944
1a0c715343d2
pp7 filter (spp=6 filter with 7 point dct where only the center sample is used after idct)
michael
parents:
15772
diff
changeset
|
130 vf_pp7.c \ |
15772 | 131 vf_pullup.c \ |
132 vf_rectangle.c \ | |
133 vf_remove_logo.c \ | |
134 vf_rgb2bgr.c \ | |
135 vf_rgbtest.c \ | |
136 vf_rotate.c \ | |
137 vf_sab.c \ | |
138 vf_scale.c \ | |
139 vf_smartblur.c \ | |
140 vf_softpulldown.c \ | |
141 vf_softskip.c \ | |
142 vf_swapuv.c \ | |
143 vf_telecine.c \ | |
144 vf_test.c \ | |
145 vf_tfields.c \ | |
146 vf_tile.c \ | |
147 vf_tinterlace.c \ | |
148 vf_unsharp.c \ | |
149 vf_vo.c \ | |
150 vf_yuvcsp.c \ | |
151 vf_yuy2.c \ | |
152 vf_yvu9.c \ | |
16447 | 153 vf_screenshot.c \ |
18608 | 154 vf_yadif.c \ |
15772 | 155 |
17882
8dd9503e4d19
compile in the filters that depend on libavcodec/dsputil.h only when mplayer is configured to use the imported libavcodec
nicodvb
parents:
17524
diff
changeset
|
156 VFILTER_LAVC_SRCS += vf_lavc.c \ |
17523
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
157 vf_lavcdeint.c \ |
17882
8dd9503e4d19
compile in the filters that depend on libavcodec/dsputil.h only when mplayer is configured to use the imported libavcodec
nicodvb
parents:
17524
diff
changeset
|
158 |
8dd9503e4d19
compile in the filters that depend on libavcodec/dsputil.h only when mplayer is configured to use the imported libavcodec
nicodvb
parents:
17524
diff
changeset
|
159 VFILTER_LAVC_DSPUTIL_SRCS += vf_uspp.c \ |
8dd9503e4d19
compile in the filters that depend on libavcodec/dsputil.h only when mplayer is configured to use the imported libavcodec
nicodvb
parents:
17524
diff
changeset
|
160 vf_fspp.c \ |
8dd9503e4d19
compile in the filters that depend on libavcodec/dsputil.h only when mplayer is configured to use the imported libavcodec
nicodvb
parents:
17524
diff
changeset
|
161 vf_qp.c \ |
8dd9503e4d19
compile in the filters that depend on libavcodec/dsputil.h only when mplayer is configured to use the imported libavcodec
nicodvb
parents:
17524
diff
changeset
|
162 vf_spp.c \ |
18590 | 163 vf_mcdeint.c \ |
17523
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
164 |
17463 | 165 ifeq ($(CONFIG_LIBPOSTPROC),yes) |
166 VFILTER_SRCS += vf_pp.c | |
167 endif | |
168 ifeq ($(CONFIG_LIBPOSTPROC_SO),yes) | |
11141 | 169 VFILTER_SRCS += vf_pp.c |
170 endif | |
171 | |
17523
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
172 ifeq ($(CONFIG_LIBAVCODEC),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
173 VFILTER_SRCS += $(VFILTER_LAVC_SRCS) |
17882
8dd9503e4d19
compile in the filters that depend on libavcodec/dsputil.h only when mplayer is configured to use the imported libavcodec
nicodvb
parents:
17524
diff
changeset
|
174 VFILTER_SRCS += $(VFILTER_LAVC_DSPUTIL_SRCS) |
17523
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
175 endif |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
176 ifeq ($(CONFIG_LIBAVCODEC_SO),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
177 VFILTER_SRCS += $(VFILTER_LAVC_SRCS) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
178 endif |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
179 |
15772 | 180 ENCODER_SRCS=ae.c \ |
181 ae_pcm.c \ | |
182 ve.c \ | |
183 ve_divx4.c \ | |
184 ve_libdv.c \ | |
185 ve_nuv.c \ | |
186 ve_qtvideo.c \ | |
187 ve_raw.c \ | |
188 ve_vfw.c \ | |
189 ve_xvid4.c \ | |
190 ve_xvid.c \ | |
8024 | 191 |
17523
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
192 ifeq ($(CONFIG_LIBAVCODEC),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
193 ENCODER_SRCS+=ve_lavc.c |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
194 endif |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
195 ifeq ($(CONFIG_LIBAVCODEC_SO),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
196 ENCODER_SRCS+=ve_lavc.c |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
197 endif |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
198 |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
199 ifeq ($(X264),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
200 ENCODER_SRCS+=ve_x264.c |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
201 endif |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
202 |
17151
9a6b48d19e12
Remove MPlayer native 14_4 and 28_8 codecs (they are in lavc)
rtognimp
parents:
16946
diff
changeset
|
203 NATIVE_SRCS=native/minilzo.c \ |
15772 | 204 native/nuppelvideo.c \ |
205 native/RTjpegN.c \ | |
206 native/xa_gsm.c \ | |
5029 | 207 |
5840
4e3cf9473628
Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents:
5774
diff
changeset
|
208 ifeq ($(FAME),yes) |
4e3cf9473628
Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents:
5774
diff
changeset
|
209 VFILTER_SRCS += vf_fame.c |
4e3cf9473628
Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents:
5774
diff
changeset
|
210 endif |
4e3cf9473628
Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents:
5774
diff
changeset
|
211 |
11662
173f22eb0505
vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents:
11600
diff
changeset
|
212 ifeq ($(ZORAN),yes) |
173f22eb0505
vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents:
11600
diff
changeset
|
213 VFILTER_SRCS += vf_zrmjpeg.c |
173f22eb0505
vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents:
11600
diff
changeset
|
214 endif |
173f22eb0505
vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents:
11600
diff
changeset
|
215 |
5029 | 216 ifeq ($(PNG),yes) |
5344 | 217 VIDEO_SRCS += vd_mpng.c |
5029 | 218 endif |
219 | |
220 ifeq ($(JPEG),yes) | |
5344 | 221 VIDEO_SRCS += vd_ijpg.c |
5029 | 222 endif |
4878 | 223 |
13426 | 224 ifeq ($(TOOLAME),yes) |
15234 | 225 ENCODER_SRCS += ae_toolame.c |
13426 | 226 EXTRA_INC += $(TOOLAME_EXTRAFLAGS) |
227 endif | |
228 | |
15359 | 229 ifeq ($(TWOLAME),yes) |
230 ENCODER_SRCS += ae_twolame.c | |
231 endif | |
232 | |
15234 | 233 ifeq ($(CONFIG_MP3LAME),yes) |
234 ENCODER_SRCS += ae_lame.c | |
235 endif | |
236 | |
16165 | 237 LIBAV_INC = |
238 ifeq ($(CONFIG_LIBAVUTIL),yes) | |
239 LIBAV_INC += -I../libavutil | |
240 endif | |
15234 | 241 ifeq ($(CONFIG_LIBAVCODEC),yes) |
16165 | 242 LIBAV_INC += -I../libavcodec |
15234 | 243 ENCODER_SRCS += ae_lavc.c |
244 endif | |
17387 | 245 ifeq ($(CONFIG_LIBAVCODEC_SO),yes) |
16251 | 246 ENCODER_SRCS += ae_lavc.c |
247 endif | |
248 | |
15958
087142ef3a2d
musepack demuxing and decoding support (demuxing is v7 bitstream only).
reimar
parents:
15944
diff
changeset
|
249 ifeq ($(MUSEPACK),yes) |
087142ef3a2d
musepack demuxing and decoding support (demuxing is v7 bitstream only).
reimar
parents:
15944
diff
changeset
|
250 AUDIO_SRCS += ad_mpc.c |
087142ef3a2d
musepack demuxing and decoding support (demuxing is v7 bitstream only).
reimar
parents:
15944
diff
changeset
|
251 endif |
087142ef3a2d
musepack demuxing and decoding support (demuxing is v7 bitstream only).
reimar
parents:
15944
diff
changeset
|
252 |
16915
6b1d1e4adaea
Speex support. Seeking and pts generation does not work.
reimar
parents:
16521
diff
changeset
|
253 ifeq ($(SPEEX),yes) |
6b1d1e4adaea
Speex support. Seeking and pts generation does not work.
reimar
parents:
16521
diff
changeset
|
254 AUDIO_SRCS += ad_speex.c |
6b1d1e4adaea
Speex support. Seeking and pts generation does not work.
reimar
parents:
16521
diff
changeset
|
255 endif |
6b1d1e4adaea
Speex support. Seeking and pts generation does not work.
reimar
parents:
16521
diff
changeset
|
256 |
15259 | 257 ifeq ($(FAAC),yes) |
258 ENCODER_SRCS += ae_faac.c | |
259 endif | |
260 | |
16521
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
261 SRCS=$(AUDIO_SRCS) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
262 $(VIDEO_SRCS) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
263 $(VFILTER_SRCS) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
264 $(NATIVE_SRCS) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
265 img_format.c \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
266 |
4878 | 267 OBJS=$(SRCS:.c=.o) |
268 | |
5550 | 269 SRCS2=$(ENCODER_SRCS) |
270 OBJS2=$(SRCS2:.c=.o) | |
271 | |
16521
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
272 CFLAGS = $(OPTFLAGS) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
273 -I. -I.. \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
274 -Inative \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
275 -I../libmpdemux \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
276 -I../loader \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
277 $(LIBAV_INC) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
278 $(EXTRA_INC) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
279 $(X264_INC) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
280 $(XVID_INC) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
281 -D_GNU_SOURCE \ |
4878 | 282 |
283 .SUFFIXES: .c .o | |
284 | |
285 # .PHONY: all clean | |
286 | |
287 .c.o: | |
288 $(CC) -c $(CFLAGS) -o $@ $< | |
289 | |
17524
cc6cf286e337
Only compile libmpencoders if MEncoder has been enabled.
diego
parents:
17523
diff
changeset
|
290 all: $(LIBS) |
5550 | 291 |
4878 | 292 $(LIBNAME): $(OBJS) |
293 $(AR) r $(LIBNAME) $(OBJS) | |
12634 | 294 $(RANLIB) $(LIBNAME) |
4878 | 295 |
5550 | 296 $(LIBNAME2): $(OBJS2) |
297 $(AR) r $(LIBNAME2) $(OBJS2) | |
12634 | 298 $(RANLIB) $(LIBNAME2) |
4878 | 299 |
300 clean: | |
301 rm -f *.o *.a *~ | |
14138
40ac42c6dd6d
make clean should also clean the native subdirectory.
diego
parents:
13426
diff
changeset
|
302 rm -f native/*.o native/*.a native/*~ |
4878 | 303 |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17463
diff
changeset
|
304 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17463
diff
changeset
|
305 rm -f .depend |
4878 | 306 |
307 dep: depend | |
308 | |
309 depend: | |
5550 | 310 $(CC) -MM $(CFLAGS) $(SRCS) $(SRCS2) 1>.depend |
4878 | 311 |
312 # | |
313 # include dependency files if they exist | |
314 # | |
315 ifneq ($(wildcard .depend),) | |
316 include .depend | |
317 endif | |
318 |