]> git.sesse.net Git - vlc/blob - Makefile
* Makefile, configure.in, configure, MODULES: added a52_system input module.
[vlc] / Makefile
1 ###############################################################################
2 # vlc (VideoLAN Client) main Makefile - (c)1998 VideoLAN
3 ###############################################################################
4
5 ifeq ($(shell [ ! -r Makefile.opts ] && echo 1),)
6     include Makefile.opts
7 endif
8 ifeq ($(shell [ ! -r Makefile.config ] && echo 1),)
9     include Makefile.config
10 endif
11
12 ###############################################################################
13 # Objects and files
14 ###############################################################################
15
16
17 # All possible plugin directories, needed for make clean
18 #
19 PLUGINS_DIR :=  a52 \
20                 a52_system \
21                 aa \
22                 ac3_adec \
23                 ac3_spdif \
24                 access \
25                 alsa \
26                 arts \
27                 avi \
28                 beos \
29                 chroma \
30                 directx \
31                 downmix \
32                 dsp \
33                 dummy \
34                 dvd \
35                 dvdread \
36                 esd \
37                 fb \
38                 ffmpeg \
39                 filter \
40                 fx \
41                 ggi \
42                 glide \
43                 gtk \
44                 idct \
45                 imdct \
46                 kde \
47                 lirc \
48                 lpcm_adec \
49                 macosx \
50                 mad \
51                 memcpy \
52                 mga \
53                 motion \
54                 mpeg_system \
55                 mpeg_adec \
56                 mpeg_vdec \
57                 network \
58                 ogg \
59                 qnx \
60                 qt \
61                 satellite \
62                 sdl \
63                 spudec \
64                 text \
65                 vcd \
66                 win32 \
67                 x11
68
69 PLUGINS_TARGETS := a52/a52 \
70                 aa/aa \
71                 a52_system/a52_system \
72                 ac3_adec/ac3_adec \
73                 ac3_spdif/ac3_spdif \
74                 access/file \
75                 access/udp \
76                 access/http \
77                 alsa/alsa \
78                 arts/arts \
79                 avi/avi \
80                 beos/beos \
81                 chroma/chroma_i420_rgb \
82                 chroma/chroma_i420_rgb_mmx \
83                 chroma/chroma_i420_yuy2 \
84                 chroma/chroma_i420_yuy2_mmx \
85                 chroma/chroma_i422_yuy2 \
86                 chroma/chroma_i422_yuy2_mmx \
87                 chroma/chroma_i420_ymga \
88                 chroma/chroma_i420_ymga_mmx \
89                 directx/directx \
90                 downmix/downmix \
91                 downmix/downmixsse \
92                 downmix/downmix3dn \
93                 dsp/dsp \
94                 dummy/dummy \
95                 dummy/null \
96                 dvd/dvd \
97                 dvdread/dvdread \
98                 esd/esd \
99                 fb/fb \
100                 ffmpeg/ffmpeg \
101                 filter/filter_clone \
102                 filter/filter_crop \
103                 filter/filter_deinterlace \
104                 filter/filter_distort \
105                 filter/filter_invert \
106                 filter/filter_transform \
107                 filter/filter_wall \
108                 filter/filter_clone \
109                 fx/fx_scope \
110                 ggi/ggi \
111                 glide/glide \
112                 gtk/gnome \
113                 gtk/gtk \
114                 idct/idct \
115                 idct/idctclassic \
116                 idct/idctmmx \
117                 idct/idctmmxext \
118                 idct/idctaltivec \
119                 imdct/imdct \
120                 imdct/imdct3dn \
121                 imdct/imdctsse \
122                 kde/kde \
123                 lirc/lirc \
124                 lpcm_adec/lpcm_adec \
125                 macosx/macosx \
126                 mad/mad \
127                 memcpy/memcpy \
128                 memcpy/memcpymmx \
129                 memcpy/memcpymmxext \
130                 memcpy/memcpy3dn \
131                 memcpy/memcpyaltivec \
132                 mga/mga \
133                 mga/xmga \
134                 motion/motion \
135                 motion/motionmmx \
136                 motion/motionmmxext \
137                 motion/motion3dnow \
138                 motion/motionaltivec \
139                 mpeg_system/mpeg_audio \
140                 mpeg_system/mpeg_es \
141                 mpeg_system/mpeg_ps \
142                 mpeg_system/mpeg_ts \
143                 mpeg_system/mpeg_ts_dvbpsi \
144                 mpeg_adec/mpeg_adec \
145                 mpeg_vdec/mpeg_vdec \
146                 network/ipv4 \
147                 network/ipv6 \
148                 ogg/vorbis \
149                 qnx/qnx \
150                 qt/qt \
151                 satellite/satellite \
152                 sdl/sdl \
153                 spudec/spudec \
154                 text/logger \
155                 text/ncurses \
156                 text/rc \
157                 vcd/vcd \
158                 win32/waveout \
159                 win32/intfwin \
160                 x11/x11 \
161                 x11/xvideo
162
163 #
164 # C Objects
165
166 VLC := vlc
167 LIBVLC := libvlc
168 INTERFACE := interface intf_eject
169 PLAYLIST := playlist
170 INPUT := input input_ext-plugins input_ext-dec input_ext-intf input_dec input_programs input_clock mpeg_system
171 VIDEO_OUTPUT := video_output video_text vout_pictures vout_subpictures
172 AUDIO_OUTPUT := audio_output aout_ext-dec aout_pcm aout_spdif
173 MISC := mtime modules threads cpu configuration netutils iso_lang messages objects
174
175 LIBVLC_OBJ :=   $(LIBVLC:%=src/%.o) \
176                 $(INTERFACE:%=src/interface/%.o) \
177                 $(PLAYLIST:%=src/playlist/%.o) \
178                 $(INPUT:%=src/input/%.o) \
179                 $(VIDEO_OUTPUT:%=src/video_output/%.o) \
180                 $(AUDIO_OUTPUT:%=src/audio_output/%.o) \
181                 $(MISC:%=src/misc/%.o)
182
183 VLC_OBJ := $(VLC:%=src/%.o)
184
185 C_OBJ := $(VLC_OBJ) $(LIBVLC_OBJ)
186
187 #
188 # Misc Objects
189
190 ifeq ($(NEED_GETOPT),1)
191 LIBVLC_OBJ += extras/GNUgetopt/getopt.o extras/GNUgetopt/getopt1.o 
192 endif
193
194 ifeq ($(NEED_SYMBOLS),1)
195 LIBVLC_OBJ += src/misc/symbols.o
196 endif
197
198 ifeq ($(SYS),beos)
199 CPP_OBJ :=      src/misc/beos_specific.o
200 endif
201
202 ifneq (,$(findstring darwin,$(SYS)))
203 LIBVLC_OBJ +=   src/misc/darwin_specific.o
204 endif
205
206 ifneq (,$(findstring mingw32,$(SYS)))
207 LIBVLC_OBJ +=   src/misc/win32_specific.o
208 RESOURCE_OBJ := share/vlc_win32_rc.o
209 endif
210
211 LIBVLC_OBJ += $(CPP_OBJ) $(M_OBJ) $(BUILTIN_OBJ)
212 VLC_OBJ += $(RESOURCE_OBJ)
213
214 #
215 # Generated header
216 #
217 H_OBJ :=        src/misc/modules_builtin.h
218
219 #
220 # Other lists of files
221 #
222 C_DEP := $(C_OBJ:%.o=.dep/%.d)
223 CPP_DEP := $(CPP_OBJ:%.o=.dep/%.dpp)
224
225 #
226 # Translate plugin names
227 #
228 ifneq (,$(PLUGINS))
229 PLUGIN_OBJ := $(shell for i in $(PLUGINS) ; do echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.*/\('$$i'\) .*@plugins/\1.so@' -e 's@^ .*@@' ; done)
230 endif
231 ifneq (,$(BUILTINS))
232 BUILTIN_OBJ := $(shell for i in $(BUILTINS) ; do echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.*/\('$$i'\) .*@plugins/\1.a@' -e 's@^ .*@@' ; done)
233 endif
234
235 #
236 # Misc variables
237 #
238 VERSION := $(shell grep '^ *VERSION=' configure.in | head -1 | sed 's/"//g' | cut -f2 -d=)
239
240 # All symbols must be exported
241 export
242
243 ###############################################################################
244 # Targets
245 ###############################################################################
246
247 #
248 # Virtual targets
249 #
250 all: Makefile.opts vlc ${ALIASES} vlc.app plugins po
251
252 Makefile.opts:
253         @echo "**** No configuration found, please run ./configure"
254         @exit 1
255 #       ./configure
256 #       $(MAKE) $(MAKECMDGOALS)
257 #       exit    
258
259 show:
260         @echo CC: $(CC)
261         @echo CFLAGS: $(CFLAGS)
262         @echo LDFLAGS: $(LDFLAGS)
263         @echo plugins_CFLAGS: $(plugins_CFLAGS)
264         @echo plugins_LDFLAGS: $(plugins_LDFLAGS)
265         @echo builtins_CFLAGS: $(builtins_CFLAGS)
266         @echo builtins_LDFLAGS: $(builtins_LDFLAGS)
267         @echo C_OBJ: $(C_OBJ)
268         @echo CPP_OBJ: $(CPP_OBJ)
269         @echo PLUGIN_OBJ: $(PLUGIN_OBJ)
270         @echo BUILTIN_OBJ: $(BUILTIN_OBJ)
271
272 #
273 # Cleaning rules
274 #
275 clean: plugins-clean po-clean vlc-clean
276         rm -f src/*/*.o extras/*/*.o
277         rm -f lib/*.so* lib/*.a
278         rm -f plugins/*.so plugins/*.a plugins/*.lib plugins/*.tds
279         rm -Rf extras/MacOSX/build
280
281 po-clean:
282         -cd po && $(MAKE) clean
283
284 plugins-clean:
285         for dir in $(PLUGINS_DIR) ; do \
286                 ( cd plugins/$${dir} \
287                         && $(MAKE) -f ../../Makefile.modules clean ) ; done
288         rm -f plugins/*/*.o plugins/*/*.lo plugins/*/*.moc plugins/*/*.bak
289
290 vlc-clean:
291         rm -f $(C_OBJ) $(CPP_OBJ)
292         rm -f vlc gnome-vlc gvlc kvlc qvlc vlc.exe
293         rm -Rf vlc.app
294
295 distclean: clean
296         -cd po && $(MAKE) maintainer-clean
297         rm -f **/*.o **/*~ *.log
298         rm -f Makefile.opts Makefile.config
299         rm -f include/defs.h include/modules_builtin.h
300         rm -f src/misc/modules_builtin.h
301         rm -f config*status config*cache config*log conftest*
302         rm -f gmon.out core build-stamp
303         rm -Rf .dep
304         rm -f .gdb_history
305
306 #
307 # Install/uninstall rules
308 #
309 install: vlc-install plugins-install po-install
310
311 uninstall: vlc-uninstall plugins-uninstall po-uninstall
312
313 vlc-install:
314         mkdir -p $(DESTDIR)$(bindir)
315         $(INSTALL) vlc $(DESTDIR)$(bindir)
316 ifneq (,$(ALIASES))
317         for alias in $(ALIASES) ; do if test $$alias ; then rm -f $(DESTDIR)$(bindir)/$$alias && ln -s vlc $(DESTDIR)$(bindir)/$$alias ; fi ; done
318 endif
319         mkdir -p $(DESTDIR)$(datadir)/vlc
320         $(INSTALL) -m 644 share/*.psf $(DESTDIR)$(datadir)/vlc
321         $(INSTALL) -m 644 share/*.png $(DESTDIR)$(datadir)/vlc
322         $(INSTALL) -m 644 share/*.xpm $(DESTDIR)$(datadir)/vlc
323
324 vlc-uninstall:
325         rm -f $(DESTDIR)$(bindir)/vlc
326 ifneq (,$(ALIASES))
327         for alias in $(ALIASES) ; do if test $$alias ; then rm -f $(DESTDIR)$(bindir)/$$alias ; fi ; done
328 endif
329         rm -f $(DESTDIR)$(datadir)/vlc/*.psf
330         rm -f $(DESTDIR)$(datadir)/vlc/*.png
331         rm -f $(DESTDIR)$(datadir)/vlc/*.xpm
332
333 plugins-install:
334         mkdir -p $(DESTDIR)$(libdir)/vlc
335 ifneq (,$(PLUGINS))
336         $(INSTALL) -m 644 $(PLUGINS:%=plugins/%.so) $(DESTDIR)$(libdir)/vlc
337 endif
338
339 plugins-uninstall:
340         rm -f $(DESTDIR)$(libdir)/vlc/*.so
341
342 po-install:
343         -cd po && $(MAKE) install
344
345 po-uninstall:
346         -cd po && $(MAKE) uninstall
347
348 #
349 # Package generation rules
350 #
351 dist:
352         # Check that tmp isn't in the way
353         @if test -e tmp; then \
354                 echo "Error: please remove ./tmp, it is in the way"; false; \
355         else \
356                 echo "OK."; mkdir tmp; \
357         fi
358         # Copy directory structure in tmp
359         find -type d | grep -v '\(\.dep\|snapshot\|CVS\)' | while read i ; \
360                 do mkdir -p tmp/vlc/$$i ; \
361         done
362         rm -Rf tmp/vlc/tmp
363         find debian -mindepth 1 -maxdepth 1 -type d | \
364                 while read i ; do rm -Rf tmp/vlc/$$i ; done
365         # Copy .c .h .in .cpp .m and .glade files
366         find include src plugins -type f -name '*.[bcdhigmrst]*' | while read i ; \
367                 do cp $$i tmp/vlc/$$i ; done
368         # Grmbl... special case...
369         for i in API BUGS DESIGN TODO ; \
370                 do cp plugins/mad/$$i tmp/vlc/plugins/mad ; done
371         # Copy plugin Makefiles
372         find plugins -type f -name Makefile | while read i ; \
373                 do cp $$i tmp/vlc/$$i ; done
374         # Copy extra programs and documentation
375         cp -a extras/* tmp/vlc/extras
376         cp -a doc/* tmp/vlc/doc
377         find tmp/vlc/extras tmp/vlc/doc \
378                 -type d -name CVS -o -name '.*' -o -name '*.[o]' | \
379                         while read i ; do rm -Rf $$i ; done
380         # Copy gettext stuff
381         cp po/ChangeLog po/vlc.pot po/*.po tmp/vlc/po
382         for i in Makefile.in.in POTFILES.in ; do cp po/$$i tmp/vlc/po ; done
383         # Copy misc files
384         cp FAQ AUTHORS COPYING TODO todo.pl ChangeLog* README* INSTALL* \
385                 ABOUT-NLS BUGS MODULES vlc.spec \
386                 Makefile Makefile.*.in Makefile.dep Makefile.modules \
387                 configure configure.in install-sh install-win32 macosx-dmg \
388                 config.sub config.guess aclocal.m4 mkinstalldirs \
389                         tmp/vlc/
390         # Copy Debian control files
391         for file in debian/*dirs debian/*docs debian/*menu debian/*desktop \
392                 debian/*copyright ; do cp $$file tmp/vlc/debian ; done
393         for file in control changelog rules ; do \
394                 cp debian/$$file tmp/vlc/debian/ ; done
395         # Copy ipkg control files
396         for file in control rules patch ; do \
397                 cp ipkg/$$file tmp/vlc/ipkg/ ; done
398         # Copy fonts and icons
399         for file in share/*vlc* share/*psf; do \
400                 cp $$file tmp/vlc/share ; done
401         # Build archives
402         F=vlc-${VERSION}; \
403         mv tmp/vlc tmp/$$F; (cd tmp ; \
404                 cd $$F && $(MAKE) distclean && cd .. ; \
405                 tar czf ../$$F.tar.gz $$F);
406         # Clean up
407         rm -Rf tmp
408
409 package-win32:
410         # XXX: this rule is probably only useful to you if you have exactly
411         # the same setup as me. Contact sam@zoy.org if you need to use it.
412         #
413         # Check that tmp isn't in the way
414         @if test -e tmp; then \
415                 echo "Error: please remove ./tmp, it is in the way"; false; \
416         else \
417                 echo "OK."; mkdir tmp; \
418         fi
419         # Create installation script
420         cp install-win32 tmp/nsi
421         # Copy relevant files
422         cp vlc.exe tmp/ 
423         $(STRIP) tmp/vlc.exe
424         cp INSTALL.win32 tmp/INSTALL.txt ; unix2dos tmp/INSTALL.txt
425         for file in AUTHORS COPYING ChangeLog README FAQ TODO ; \
426                         do cp $$file tmp/$${file}.txt ; \
427                         unix2dos tmp/$${file}.txt ; done
428         mkdir tmp/plugins
429         cp $(PLUGINS:%=plugins/%.so) tmp/plugins/ 
430         # don't include these two
431         #rm -f tmp/plugins/gtk.so tmp/plugins/sdl.so
432 ifneq (,$(PLUGINS))
433         for i in $(PLUGINS) ; do if test $$i != intfwin ; then $(STRIP) tmp/plugins/$$i.so ; fi ; done
434 endif
435         mkdir tmp/share
436         for file in default8x16.psf default8x9.psf ; \
437                 do cp share/$$file tmp/share/ ; done
438         # Create package 
439         wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe -- /DVERSION=${VERSION} /CD tmp/nsi
440         # Clean up
441         rm -Rf tmp
442
443 package-beos:
444         # Check that tmp isn't in the way
445         @if test -e tmp; then \
446                 echo "Error: please remove ./tmp, it is in the way"; false; \
447         else \
448                 echo "OK."; mkdir tmp; \
449         fi
450         
451         # Create dir
452         mkdir -p tmp/vlc/share
453         # Copy relevant files
454         cp vlc tmp/vlc/
455         strip tmp/vlc/vlc
456         cp AUTHORS COPYING ChangeLog README FAQ TODO tmp/vlc/
457         for file in default8x16.psf default8x9.psf ; \
458                 do cp share/$$file tmp/vlc/share/ ; done
459         mkdir tmp/vlc/plugins
460         cp $(PLUGINS:%=plugins/%.so) tmp/vlc/plugins/ 
461         strip $(PLUGINS:%=tmp/vlc/plugins/%.so)
462         # Create package 
463         mv tmp/vlc tmp/vlc-${VERSION}
464         (cd tmp ; find vlc-${VERSION} | \
465         zip -9 -@ vlc-${VERSION}-BeOS-x86.zip )
466         mv tmp/vlc-${VERSION}-BeOS-x86.zip .
467         # Clean up
468         rm -Rf tmp
469
470 package-macosx:
471         # Check that tmp isn't in the way
472         @if test -e tmp; then \
473                 echo "Error: please remove ./tmp, it is in the way"; false; \
474         else \
475                 echo "OK."; mkdir tmp; \
476         fi
477
478         # Copy relevant files 
479         cp -R vlc.app tmp/
480         cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf FAQ TODO tmp/
481
482         # Create disk image 
483         ./macosx-dmg 0 "vlc-${VERSION}" tmp/* 
484
485         # Clean up
486         rm -Rf tmp
487
488 #
489 # Gtk/Gnome/* aliases and OS X application
490 #
491 gnome-vlc gvlc kvlc qvlc: vlc
492         rm -f $@ && ln -s vlc $@
493
494 .PHONY: vlc.app
495 vlc.app: vlc plugins
496 ifneq (,$(findstring darwin,$(SYS)))
497         rm -Rf vlc.app
498         cd extras/MacOSX ; pbxbuild | grep -v '^ ' | grep -v '^\t' | grep -v "^$$"
499         cp -r extras/MacOSX/build/vlc.bundle ./vlc.app
500         $(INSTALL) -d vlc.app/Contents/MacOS/share
501         $(INSTALL) -d vlc.app/Contents/MacOS/plugins
502         $(INSTALL) vlc vlc.app/Contents/MacOS/
503 ifneq (,$(PLUGINS))
504         $(INSTALL) $(PLUGINS:%=plugins/%.so) vlc.app/Contents/MacOS/plugins
505 endif
506         $(INSTALL) -m 644 share/*.psf vlc.app/Contents/MacOS/share
507 endif
508
509 FORCE:
510
511 #
512 # Generic rules (see below)
513 #
514 src/misc/modules_builtin.h: Makefile.opts Makefile
515         @echo "make[$(MAKELEVEL)]: Creating \`$@'"
516         @rm -f $@ && cp $@.in $@
517 ifneq (,$(BUILTINS))
518         @for i in $(BUILTINS) ; do \
519                 echo "int InitModule__MODULE_"$$i"( module_t* );" >>$@; \
520                 echo "int ActivateModule__MODULE_"$$i"( module_t* );" >>$@; \
521                 echo "int DeactivateModule__MODULE_"$$i"( module_t* );" >>$@; \
522         done
523         @echo "" >> $@ ;
524 endif
525         @echo "#define ALLOCATE_ALL_BUILTINS() \\" >> $@ ;
526         @echo "    do \\" >> $@ ;
527         @echo "    { \\" >> $@ ;
528 ifneq (,$(BUILTINS))
529         @for i in $(BUILTINS) ; do \
530                 echo "        ALLOCATE_BUILTIN("$$i"); \\" >> $@ ; \
531         done
532 endif
533         @echo "    } while( 0 );" >> $@ ;
534         @echo "" >> $@ ;
535
536 $(C_DEP): %.d: FORCE
537         @$(MAKE) -s --no-print-directory -f Makefile.dep $@
538
539 $(CPP_DEP): %.dpp: FORCE
540         @$(MAKE) -s --no-print-directory -f Makefile.dep $@
541
542 $(C_OBJ): %.o: Makefile.opts Makefile.dep Makefile
543 $(C_OBJ): %.o: $(H_OBJ)
544 $(C_OBJ): %.o: .dep/%.d
545 $(C_OBJ): %.o: %.c
546         $(CC) $(CFLAGS) $(vlc_CFLAGS) -c -o $@ $<
547
548 $(CPP_OBJ): %.o: Makefile.opts Makefile.dep Makefile
549 $(CPP_OBJ): %.o: $(H_OBJ)
550 $(CPP_OBJ): %.o: .dep/%.dpp
551 $(CPP_OBJ): %.o: %.cpp
552         $(CC) $(CFLAGS) $(vlc_CFLAGS) -c -o $@ $<
553
554 $(M_OBJ): %.o: Makefile.opts Makefile.dep Makefile
555 $(M_OBJ): %.o: $(H_OBJ)
556 $(M_OBJ): %.o: .dep/%.dm
557 $(M_OBJ): %.o: %.m
558         $(CC) $(CFLAGS) $(vlc_CFLAGS) -c -o $@ $<
559
560 $(RESOURCE_OBJ): %.o: Makefile.dep Makefile
561 ifneq (,(findstring mingw32,$(SYS)))
562 $(RESOURCE_OBJ): %.o: %.rc
563         $(WINDRES) -i $< -o $@
564 endif
565
566 #
567 # Main application target
568 #
569 vlc: Makefile.config Makefile.opts Makefile.dep Makefile $(VLC_OBJ) lib/libvlc.a $(BUILTIN_OBJ)
570         $(CC) $(CFLAGS) -o $@ $(VLC_OBJ) lib/libvlc.a $(BUILTIN_OBJ) $(LDFLAGS) $(vlc_LDFLAGS) $(builtins_LDFLAGS)
571 ifeq ($(SYS),beos)
572         xres -o $@ ./share/vlc_beos.rsrc
573         mimeset -f $@
574 endif
575
576 # here are the rules for a dynamic link of libvlc:
577 #vlc: Makefile.opts Makefile.dep Makefile $(VLC_OBJ) lib/libvlc.so $(BUILTIN_OBJ)
578 #       $(CC) $(CFLAGS) -o $@ $(VLC_OBJ) $(BUILTIN_OBJ) $(LDFLAGS) $(builtins_LDFLAGS) -L./lib -lvlc
579
580 #
581 # Main library target
582 #
583 lib/libvlc.a: Makefile.opts Makefile.dep Makefile $(LIBVLC_OBJ)
584         rm -f $@
585         ar rc $@ $(LIBVLC_OBJ)
586         $(RANLIB) $@
587
588 #lib/libvlc.so: Makefile.opts Makefile.dep Makefile $(LIBVLC_OBJ)
589 #       $(CC) -shared $(LIBVLC_OBJ) $(LDFLAGS) $(vlc_LDFLAGS) -o $@
590 #       chmod a-x $@
591
592 #
593 # Plugins target
594 #
595 plugins: Makefile.modules Makefile.opts Makefile.dep Makefile $(PLUGIN_OBJ)
596 $(PLUGIN_OBJ): $(H_OBJ) FORCE
597         @cd $(shell echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.* \([^/]*/\)'$(@:plugins/%.so=%)' .*@plugins/\1@' -e 's@^ .*@@') && $(MAKE) -f ../../Makefile.modules $(@:plugins/%=../%)
598
599 #
600 # Built-in modules target
601 #
602 builtins: Makefile.modules Makefile.opts Makefile.dep Makefile $(BUILTIN_OBJ)
603 $(BUILTIN_OBJ): $(H_OBJ) FORCE
604         @cd $(shell echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.* \([^/]*/\)'$(@:plugins/%.a=%)' .*@plugins/\1@' -e 's@^ .*@@') && $(MAKE) -f ../../Makefile.modules $(@:plugins/%=../%)
605
606 #
607 # gettext target
608 #
609 po: FORCE
610         @cd po && $(MAKE)
611