annotate Makefile @ 26463:69bee1a22309

Add an unconditional phony recurse rule and make the binaries depend on it. This assures that all directories that use recursive make are descended into. This way cross-directory dependencies are taken into account through the .depend files that record them.
author diego
date Tue, 22 Apr 2008 21:20:42 +0000
parents 4d9fad055ac9
children 252ec5ba2dd3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1 # LINUX Makefile made by A'rpi / Astral
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 # Some cleanup by LGB: * 'make -C dir' instead of 'cd dir;make;cd..'
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3 # * for loops instead of linear sequence of make directories
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 # * some minor problems with make clean and distclean were corrected
492
888a85621f50 preliminary DVD support using libcss
lgb
parents: 465
diff changeset
5 # * DVD support
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7 include config.mak
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8
22541
a7fc43264e8b cosmetics: Move some parts around to make more sense overall.
diego
parents: 22539
diff changeset
9 COMMON_LDFLAGS += $(EXTRA_LIB)\
a7fc43264e8b cosmetics: Move some parts around to make more sense overall.
diego
parents: 22539
diff changeset
10 $(EXTRALIBS) \
a7fc43264e8b cosmetics: Move some parts around to make more sense overall.
diego
parents: 22539
diff changeset
11
a7fc43264e8b cosmetics: Move some parts around to make more sense overall.
diego
parents: 22539
diff changeset
12 LDFLAGS_MPLAYER = $(EXTRALIBS_MPLAYER) \
a7fc43264e8b cosmetics: Move some parts around to make more sense overall.
diego
parents: 22539
diff changeset
13 $(COMMON_LDFLAGS) \
a7fc43264e8b cosmetics: Move some parts around to make more sense overall.
diego
parents: 22539
diff changeset
14
a7fc43264e8b cosmetics: Move some parts around to make more sense overall.
diego
parents: 22539
diff changeset
15 LDFLAGS_MENCODER = $(EXTRALIBS_MENCODER) \
a7fc43264e8b cosmetics: Move some parts around to make more sense overall.
diego
parents: 22539
diff changeset
16 $(COMMON_LDFLAGS) \
a7fc43264e8b cosmetics: Move some parts around to make more sense overall.
diego
parents: 22539
diff changeset
17
15772
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
18 SRCS_COMMON = asxparser.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
19 codec-cfg.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
20 cpudetect.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
21 edl.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
22 find_sub.c \
24242
76f5d8892c04 Clean up the way get_path is handled: Compile get_path.c to an object to link
diego
parents: 23699
diff changeset
23 get_path.c \
15772
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
24 m_config.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
25 m_option.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
26 m_struct.c \
22233
5bf6c178f09a Move some subtitle handling from mplayer.c to mpcommon.c and share it with mencoder.c
reimar
parents: 22055
diff changeset
27 mpcommon.c \
15772
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
28 parser-cfg.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
29 playtree.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
30 playtreeparser.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
31 spudec.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
32 sub_cc.c \
24896
8133163bd1dd Add audio filter scaletempo
uau
parents: 24268
diff changeset
33 subopt-helper.c \
15772
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
34 subreader.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
35 vobsub.c \
26344
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
36 libaf/af.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
37 libaf/af_center.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
38 libaf/af_channels.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
39 libaf/af_comp.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
40 libaf/af_delay.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
41 libaf/af_dummy.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
42 libaf/af_equalizer.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
43 libaf/af_extrastereo.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
44 libaf/af_format.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
45 libaf/af_gate.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
46 libaf/af_hrtf.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
47 libaf/af_karaoke.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
48 libaf/af_pan.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
49 libaf/af_resample.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
50 libaf/af_scaletempo.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
51 libaf/af_sinesuppress.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
52 libaf/af_sub.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
53 libaf/af_surround.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
54 libaf/af_sweep.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
55 libaf/af_tools.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
56 libaf/af_volnorm.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
57 libaf/af_volume.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
58 libaf/filter.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
59 libaf/format.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
60 libaf/reorder_ch.c \
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
61 libaf/window.c \
26320
c0dba62cd135 Merge osdep/Makefile into the top-level Makefile, thus getting rid
diego
parents: 26311
diff changeset
62 osdep/$(GETCH) \
c0dba62cd135 Merge osdep/Makefile into the top-level Makefile, thus getting rid
diego
parents: 26311
diff changeset
63 osdep/$(TIMER) \
15772
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
64
26320
c0dba62cd135 Merge osdep/Makefile into the top-level Makefile, thus getting rid
diego
parents: 26311
diff changeset
65 SRCS_COMMON-$(HAVE_SYS_MMAN_H) += osdep/mmap_anon.c
26344
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
66 SRCS_COMMON-$(HAVE_SYS_MMAN_H) += libaf/af_export.c
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
67 SRCS_COMMON-$(LADSPA) += libaf/af_ladspa.c
26347
1e6b8666f96f 10l: libass compilation should be conditional.
diego
parents: 26344
diff changeset
68 SRCS_COMMON-$(LIBASS) += libass/ass.c \
1e6b8666f96f 10l: libass compilation should be conditional.
diego
parents: 26344
diff changeset
69 libass/ass_bitmap.c \
1e6b8666f96f 10l: libass compilation should be conditional.
diego
parents: 26344
diff changeset
70 libass/ass_cache.c \
1e6b8666f96f 10l: libass compilation should be conditional.
diego
parents: 26344
diff changeset
71 libass/ass_font.c \
1e6b8666f96f 10l: libass compilation should be conditional.
diego
parents: 26344
diff changeset
72 libass/ass_fontconfig.c \
1e6b8666f96f 10l: libass compilation should be conditional.
diego
parents: 26344
diff changeset
73 libass/ass_library.c \
1e6b8666f96f 10l: libass compilation should be conditional.
diego
parents: 26344
diff changeset
74 libass/ass_mp.c \
1e6b8666f96f 10l: libass compilation should be conditional.
diego
parents: 26344
diff changeset
75 libass/ass_render.c \
1e6b8666f96f 10l: libass compilation should be conditional.
diego
parents: 26344
diff changeset
76 libass/ass_utils.c \
1e6b8666f96f 10l: libass compilation should be conditional.
diego
parents: 26344
diff changeset
77
26344
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
78 SRCS_COMMON-$(LIBAVCODEC) += libaf/af_lavcresample.c
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
79 SRCS_COMMON-$(LIBAVCODEC_A) += libaf/af_lavcac3enc.c
26320
c0dba62cd135 Merge osdep/Makefile into the top-level Makefile, thus getting rid
diego
parents: 26311
diff changeset
80 SRCS_COMMON-$(MACOSX_FINDER_SUPPORT) += osdep/macosx_finder_args.c
c0dba62cd135 Merge osdep/Makefile into the top-level Makefile, thus getting rid
diego
parents: 26311
diff changeset
81 SRCS_COMMON-$(NEED_GETTIMEOFDAY) += osdep/gettimeofday.c
c0dba62cd135 Merge osdep/Makefile into the top-level Makefile, thus getting rid
diego
parents: 26311
diff changeset
82 SRCS_COMMON-$(NEED_GLOB) += osdep/glob-win.c
26331
543b9e331d8c Restore osdep/mmap-os2.c compilation, which was accidentally removed.
diego
parents: 26330
diff changeset
83 SRCS_COMMON-$(NEED_MMAP) += osdep/mmap-os2.c
26320
c0dba62cd135 Merge osdep/Makefile into the top-level Makefile, thus getting rid
diego
parents: 26311
diff changeset
84 SRCS_COMMON-$(NEED_SETENV) += osdep/setenv.c
c0dba62cd135 Merge osdep/Makefile into the top-level Makefile, thus getting rid
diego
parents: 26311
diff changeset
85 SRCS_COMMON-$(NEED_SHMEM) += osdep/shmem.c
c0dba62cd135 Merge osdep/Makefile into the top-level Makefile, thus getting rid
diego
parents: 26311
diff changeset
86 SRCS_COMMON-$(NEED_STRSEP) += osdep/strsep.c
c0dba62cd135 Merge osdep/Makefile into the top-level Makefile, thus getting rid
diego
parents: 26311
diff changeset
87 SRCS_COMMON-$(NEED_SWAB) += osdep/swab.c
c0dba62cd135 Merge osdep/Makefile into the top-level Makefile, thus getting rid
diego
parents: 26311
diff changeset
88 SRCS_COMMON-$(NEED_VSSCANF) += osdep/vsscanf.c
26330
230361fe83eb cosmetics: Align columns.
diego
parents: 26324
diff changeset
89 SRCS_COMMON-$(UNRAR_EXEC) += unrar_exec.c
19523
8220d48531ae cosmetics: Move some parts to more sensible places.
diego
parents: 19519
diff changeset
90
21083
4a7a5ce8f212 cosmetics: Move some stuff around for better readability.
diego
parents: 21081
diff changeset
91 SRCS_MPLAYER = mplayer.c \
4a7a5ce8f212 cosmetics: Move some stuff around for better readability.
diego
parents: 21081
diff changeset
92 m_property.c \
22823
98eaf29b5dee Code cleanup: don't include a .c file in mplayer.c and fix a few
rathann
parents: 22798
diff changeset
93 mp_fifo.c \
21083
4a7a5ce8f212 cosmetics: Move some stuff around for better readability.
diego
parents: 21081
diff changeset
94 mp_msg.c \
4a7a5ce8f212 cosmetics: Move some stuff around for better readability.
diego
parents: 21081
diff changeset
95 mixer.c \
4a7a5ce8f212 cosmetics: Move some stuff around for better readability.
diego
parents: 21081
diff changeset
96 parser-mpcmd.c \
22280
a5e5b0c45c03 Split command/property handling from mplayer.c to a new file command.c.
uau
parents: 22233
diff changeset
97 command.c \
26308
51338bf153de Get rid of recursive make for the input/ subdirectory.
diego
parents: 26305
diff changeset
98 input/input.c \
51338bf153de Get rid of recursive make for the input/ subdirectory.
diego
parents: 26305
diff changeset
99
51338bf153de Get rid of recursive make for the input/ subdirectory.
diego
parents: 26305
diff changeset
100 SRCS_MPLAYER-$(APPLE_REMOTE) += input/ar.c
26366
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
101 SRCS_MPLAYER-$(GUI_GTK) += gui/app.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
102 gui/bitmap.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
103 gui/cfg.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
104 gui/interface.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
105 gui/mplayer/gui_common.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
106 gui/mplayer/menu.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
107 gui/mplayer/mw.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
108 gui/mplayer/pb.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
109 gui/mplayer/play.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
110 gui/mplayer/sw.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
111 gui/mplayer/widgets.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
112 gui/mplayer/gtk/about.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
113 gui/mplayer/gtk/eq.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
114 gui/mplayer/gtk/fs.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
115 gui/mplayer/gtk/gtk_common.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
116 gui/mplayer/gtk/gtk_url.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
117 gui/mplayer/gtk/mb.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
118 gui/mplayer/gtk/menu.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
119 gui/mplayer/gtk/opts.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
120 gui/mplayer/gtk/pl.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
121 gui/mplayer/gtk/sb.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
122 gui/skin/cut.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
123 gui/skin/font.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
124 gui/skin/skin.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
125 gui/wm/ws.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
126 gui/wm/wsxdnd.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
127
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
128 SRCS_MPLAYER-$(GUI_WIN32) += gui/bitmap.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
129 gui/win32/dialogs.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
130 gui/win32/gui.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
131 gui/win32/interface.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
132 gui/win32/playlist.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
133 gui/win32/preferences.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
134 gui/win32/skinload.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
135 gui/win32/widgetrender.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
136 gui/win32/wincfg.c \
cc260b44c154 Merge ./gui/Makefile into ./Makefile, one less instance of recursive make.
diego
parents: 26359
diff changeset
137
26308
51338bf153de Get rid of recursive make for the input/ subdirectory.
diego
parents: 26305
diff changeset
138 SRCS_MPLAYER-$(JOYSTICK) += input/joystick.c
26359
4a9b26db833e Ahem, libmenu objects should only be compiled when OSD menu is enabled.
diego
parents: 26351
diff changeset
139 SRCS_MPLAYER-$(LIBMENU) += libmenu/menu.c \
4a9b26db833e Ahem, libmenu objects should only be compiled when OSD menu is enabled.
diego
parents: 26351
diff changeset
140 libmenu/menu_chapsel.c \
4a9b26db833e Ahem, libmenu objects should only be compiled when OSD menu is enabled.
diego
parents: 26351
diff changeset
141 libmenu/menu_cmdlist.c \
4a9b26db833e Ahem, libmenu objects should only be compiled when OSD menu is enabled.
diego
parents: 26351
diff changeset
142 libmenu/menu_console.c \
4a9b26db833e Ahem, libmenu objects should only be compiled when OSD menu is enabled.
diego
parents: 26351
diff changeset
143 libmenu/menu_filesel.c \
4a9b26db833e Ahem, libmenu objects should only be compiled when OSD menu is enabled.
diego
parents: 26351
diff changeset
144 libmenu/menu_list.c \
4a9b26db833e Ahem, libmenu objects should only be compiled when OSD menu is enabled.
diego
parents: 26351
diff changeset
145 libmenu/menu_param.c \
4a9b26db833e Ahem, libmenu objects should only be compiled when OSD menu is enabled.
diego
parents: 26351
diff changeset
146 libmenu/menu_pt.c \
4a9b26db833e Ahem, libmenu objects should only be compiled when OSD menu is enabled.
diego
parents: 26351
diff changeset
147 libmenu/menu_txt.c \
4a9b26db833e Ahem, libmenu objects should only be compiled when OSD menu is enabled.
diego
parents: 26351
diff changeset
148 libmenu/vf_menu.c \
4a9b26db833e Ahem, libmenu objects should only be compiled when OSD menu is enabled.
diego
parents: 26351
diff changeset
149
26402
08117784bc9e Add Makefile variable for DVB OSD menu, saves one ifeq.
diego
parents: 26399
diff changeset
150 SRCS_MPLAYER-$(LIBMENU_DVBIN) += libmenu/menu_dvbin.c
26308
51338bf153de Get rid of recursive make for the input/ subdirectory.
diego
parents: 26305
diff changeset
151 SRCS_MPLAYER-$(LIRC) += input/lirc.c
51338bf153de Get rid of recursive make for the input/ subdirectory.
diego
parents: 26305
diff changeset
152
26399
de755fff9d74 Restore compilation of osdep/mplayer-rc.o.
diego
parents: 26368
diff changeset
153 OBJS_MPLAYER-$(PE_EXECUTABLE) += osdep/mplayer-rc.o
21083
4a7a5ce8f212 cosmetics: Move some stuff around for better readability.
diego
parents: 21081
diff changeset
154
15772
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
155 SRCS_MENCODER = mencoder.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
156 mp_msg-mencoder.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
157 parser-mecmd.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
158 xvid_vbr.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
159
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
160 COMMON_LIBS = libmpcodecs/libmpcodecs.a \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
161 libmpdemux/libmpdemux.a \
19271
64d82a45a05d introduce new 'stream' directory for all stream layer related components and split them from libmpdemux
ben
parents: 19190
diff changeset
162 stream/stream.a \
18861
8579acff875e Move postproc ---> libswscale
lucabe
parents: 18789
diff changeset
163 libswscale/libswscale.a \
21107
790256469dd7 Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents: 21106
diff changeset
164 libvo/libosd.a \
15772
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15359
diff changeset
165
23281
e1935bbb44e2 Compile internal FFmpeg libraries only when configure enabled the static
diego
parents: 23220
diff changeset
166 COMMON_LIBS-$(LIBAVFORMAT_A) += libavformat/libavformat.a
e1935bbb44e2 Compile internal FFmpeg libraries only when configure enabled the static
diego
parents: 23220
diff changeset
167 COMMON_LIBS-$(LIBAVCODEC_A) += libavcodec/libavcodec.a
e1935bbb44e2 Compile internal FFmpeg libraries only when configure enabled the static
diego
parents: 23220
diff changeset
168 COMMON_LIBS-$(LIBAVUTIL_A) += libavutil/libavutil.a
e1935bbb44e2 Compile internal FFmpeg libraries only when configure enabled the static
diego
parents: 23220
diff changeset
169 COMMON_LIBS-$(LIBPOSTPROC_A) += libpostproc/libpostproc.a
22796
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
170 COMMON_LIBS-$(WIN32DLL) += loader/libloader.a
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
171 COMMON_LIBS-$(MP3LIB) += mp3lib/libmp3.a
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
172 COMMON_LIBS-$(LIBA52) += liba52/liba52.a
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
173 COMMON_LIBS-$(LIBMPEG2) += libmpeg2/libmpeg2.a
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
174 COMMON_LIBS-$(FAAD_INTERNAL) += libfaad2/libfaad2.a
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
175 COMMON_LIBS-$(TREMOR_INTERNAL) += tremor/libvorbisidec.a
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
176 COMMON_LIBS-$(DVDREAD_INTERNAL) += dvdread/libdvdread.a
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
177 COMMON_LIBS-$(DVDCSS_INTERNAL) += libdvdcss/libdvdcss.a
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
178
21083
4a7a5ce8f212 cosmetics: Move some stuff around for better readability.
diego
parents: 21081
diff changeset
179 LIBS_MPLAYER = libvo/libvo.a \
4a7a5ce8f212 cosmetics: Move some stuff around for better readability.
diego
parents: 21081
diff changeset
180 libao2/libao2.a \
4a7a5ce8f212 cosmetics: Move some stuff around for better readability.
diego
parents: 21081
diff changeset
181
22900
a9e111b88c4a merged libdha and libvidix, moved all files from libdha to vidix directory
ben
parents: 22857
diff changeset
182 LIBS_MPLAYER-$(VIDIX) += vidix/libvidix.a
22796
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
183
21083
4a7a5ce8f212 cosmetics: Move some stuff around for better readability.
diego
parents: 21081
diff changeset
184 LIBS_MENCODER = libmpcodecs/libmpencoders.a \
21310
3220773a071b Split muxers into a separate library that only MEncoder is linked against.
diego
parents: 21284
diff changeset
185 libmpdemux/libmpmux.a \
21083
4a7a5ce8f212 cosmetics: Move some stuff around for better readability.
diego
parents: 21081
diff changeset
186
22796
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
187 ALL_PRG-$(MPLAYER) += mplayer$(EXESUF)
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
188 ALL_PRG-$(MENCODER) += mencoder$(EXESUF)
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
189
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
190 COMMON_LIBS += $(COMMON_LIBS-yes)
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
191 LIBS_MPLAYER += $(LIBS_MPLAYER-yes)
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
192 OBJS_MPLAYER += $(OBJS_MPLAYER-yes)
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
193 ALL_PRG += $(ALL_PRG-yes)
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
194
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
195 MPLAYER_DEPS = $(OBJS_MPLAYER) $(OBJS_COMMON) $(LIBS_MPLAYER) $(COMMON_LIBS)
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
196 MENCODER_DEPS = $(OBJS_MENCODER) $(OBJS_COMMON) $(LIBS_MENCODER) $(COMMON_LIBS)
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
197
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
198 INSTALL_TARGETS-$(MPLAYER) += install-mplayer install-mplayer-man
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
199 INSTALL_TARGETS-$(MENCODER) += install-mencoder install-mplayer-man
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
200 INSTALL_TARGETS-$(GUI) += install-gui
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
201 INSTALL_TARGETS += $(INSTALL_TARGETS-yes)
7986e3f73008 cosmetics: Reorder parts of the Makefile in order to group parts sensibly together.
diego
parents: 22795
diff changeset
202
23073
c64d3dd0a0fc cosmetics: Sort PARTS.
diego
parents: 23071
diff changeset
203 PARTS = dvdread \
c64d3dd0a0fc cosmetics: Sort PARTS.
diego
parents: 23071
diff changeset
204 liba52 \
15785
1d4f60b08be1 split PARTS into multiple lines also
henry
parents: 15772
diff changeset
205 libao2 \
22795
0285c5f0f53d Unconditionally add all subdirectories to PARTS. This way make clean always
diego
parents: 22793
diff changeset
206 libavcodec \
0285c5f0f53d Unconditionally add all subdirectories to PARTS. This way make clean always
diego
parents: 22793
diff changeset
207 libavformat \
23073
c64d3dd0a0fc cosmetics: Sort PARTS.
diego
parents: 23071
diff changeset
208 libavutil \
c64d3dd0a0fc cosmetics: Sort PARTS.
diego
parents: 23071
diff changeset
209 libdvdcss \
c64d3dd0a0fc cosmetics: Sort PARTS.
diego
parents: 23071
diff changeset
210 libfaad2 \
c64d3dd0a0fc cosmetics: Sort PARTS.
diego
parents: 23071
diff changeset
211 libmpcodecs \
c64d3dd0a0fc cosmetics: Sort PARTS.
diego
parents: 23071
diff changeset
212 libmpdemux \
c64d3dd0a0fc cosmetics: Sort PARTS.
diego
parents: 23071
diff changeset
213 libmpeg2 \
22795
0285c5f0f53d Unconditionally add all subdirectories to PARTS. This way make clean always
diego
parents: 22793
diff changeset
214 libpostproc \
23073
c64d3dd0a0fc cosmetics: Sort PARTS.
diego
parents: 23071
diff changeset
215 libswscale \
c64d3dd0a0fc cosmetics: Sort PARTS.
diego
parents: 23071
diff changeset
216 libvo \
22795
0285c5f0f53d Unconditionally add all subdirectories to PARTS. This way make clean always
diego
parents: 22793
diff changeset
217 loader \
0285c5f0f53d Unconditionally add all subdirectories to PARTS. This way make clean always
diego
parents: 22793
diff changeset
218 mp3lib \
23073
c64d3dd0a0fc cosmetics: Sort PARTS.
diego
parents: 23071
diff changeset
219 stream \
22795
0285c5f0f53d Unconditionally add all subdirectories to PARTS. This way make clean always
diego
parents: 22793
diff changeset
220 tremor \
0285c5f0f53d Unconditionally add all subdirectories to PARTS. This way make clean always
diego
parents: 22793
diff changeset
221 vidix \
15785
1d4f60b08be1 split PARTS into multiple lines also
henry
parents: 15772
diff changeset
222
26410
210f869a7a31 Add gui subdirectories to DIRS instead of manually cleaning them.
diego
parents: 26409
diff changeset
223 DIRS = gui \
210f869a7a31 Add gui subdirectories to DIRS instead of manually cleaning them.
diego
parents: 26409
diff changeset
224 gui/mplayer \
210f869a7a31 Add gui subdirectories to DIRS instead of manually cleaning them.
diego
parents: 26409
diff changeset
225 gui/mplayer/gtk \
210f869a7a31 Add gui subdirectories to DIRS instead of manually cleaning them.
diego
parents: 26409
diff changeset
226 gui/skin \
210f869a7a31 Add gui subdirectories to DIRS instead of manually cleaning them.
diego
parents: 26409
diff changeset
227 gui/wm \
210f869a7a31 Add gui subdirectories to DIRS instead of manually cleaning them.
diego
parents: 26409
diff changeset
228 gui/win32 \
210f869a7a31 Add gui subdirectories to DIRS instead of manually cleaning them.
diego
parents: 26409
diff changeset
229 input \
26344
3278dca99929 Merge libaf/Makefile into Makefile, one less instance of recursive make.
diego
parents: 26331
diff changeset
230 libaf \
26324
7cd64946eb11 Merge libass/Makefile into Makefile, one less recursive make directory.
diego
parents: 26323
diff changeset
231 libass \
26311
a3d7fc4f186e Build all parts in the libmenu subdirectory nonrecursively.
diego
parents: 26308
diff changeset
232 libmenu \
26320
c0dba62cd135 Merge osdep/Makefile into the top-level Makefile, thus getting rid
diego
parents: 26311
diff changeset
233 osdep \
26455
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
234 TOOLS \
7474
aa2274311ebb some makefile cleanup
arpi
parents: 7446
diff changeset
235
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
236 all: recurse $(ALL_PRG)
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
237
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
238 recurse:
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
239 for part in $(PARTS); do $(MAKE) -C $$part; done
7474
aa2274311ebb some makefile cleanup
arpi
parents: 7446
diff changeset
240
26432
7f5696224182 per-file dependencies (for the non-recursive parts)
diego
parents: 26430
diff changeset
241 DEPS = $(SRCS_COMMON:.c=.d) $(SRCS_MPLAYER:.c=.d) $(SRCS_MENCODER:.c=.d)
7f5696224182 per-file dependencies (for the non-recursive parts)
diego
parents: 26430
diff changeset
242 $(DEPS): help_mp.h version.h codecs.conf.h
7f5696224182 per-file dependencies (for the non-recursive parts)
diego
parents: 26430
diff changeset
243 dep depend: $(DEPS)
7f5696224182 per-file dependencies (for the non-recursive parts)
diego
parents: 26430
diff changeset
244 for part in $(PARTS); do $(MAKE) -C $$part .depend; done
23181
802db540ff83 cosmetics: Move depend target (preparation for upcoming change).
diego
parents: 23093
diff changeset
245
23182
8749e6b047ef Reuse common Makefile infrastructure.
diego
parents: 23181
diff changeset
246 include mpcommon.mak
8749e6b047ef Reuse common Makefile infrastructure.
diego
parents: 23181
diff changeset
247
8749e6b047ef Reuse common Makefile infrastructure.
diego
parents: 23181
diff changeset
248 CFLAGS := $(subst -I..,-I.,$(CFLAGS))
8749e6b047ef Reuse common Makefile infrastructure.
diego
parents: 23181
diff changeset
249
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
250 dvdread/libdvdread.a:
20981
22cb9d5f1e21 Rename libdvdread to dvdread. We really only include only the dvdread
diego
parents: 20819
diff changeset
251 $(MAKE) -C dvdread
7130
a27a786e98f9 remove nonsense tabs from makefile so emacs won't complain :)
rfelker
parents: 7122
diff changeset
252
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
253 liba52/liba52.a:
26433
ce655dcca44b cosmetics: Sort recursive rules alphabetically.
diego
parents: 26432
diff changeset
254 $(MAKE) -C liba52
ce655dcca44b cosmetics: Sort recursive rules alphabetically.
diego
parents: 26432
diff changeset
255
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
256 libao2/libao2.a:
26433
ce655dcca44b cosmetics: Sort recursive rules alphabetically.
diego
parents: 26432
diff changeset
257 $(MAKE) -C libao2
ce655dcca44b cosmetics: Sort recursive rules alphabetically.
diego
parents: 26432
diff changeset
258
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
259 libavcodec/libavcodec.a:
26433
ce655dcca44b cosmetics: Sort recursive rules alphabetically.
diego
parents: 26432
diff changeset
260 $(MAKE) -C libavcodec
ce655dcca44b cosmetics: Sort recursive rules alphabetically.
diego
parents: 26432
diff changeset
261
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
262 libavformat/libavformat.a:
26433
ce655dcca44b cosmetics: Sort recursive rules alphabetically.
diego
parents: 26432
diff changeset
263 $(MAKE) -C libavformat
ce655dcca44b cosmetics: Sort recursive rules alphabetically.
diego
parents: 26432
diff changeset
264
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
265 libavutil/libavutil.a:
26433
ce655dcca44b cosmetics: Sort recursive rules alphabetically.
diego
parents: 26432
diff changeset
266 $(MAKE) -C libavutil
ce655dcca44b cosmetics: Sort recursive rules alphabetically.
diego
parents: 26432
diff changeset
267
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
268 libdvdcss/libdvdcss.a:
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents: 20542
diff changeset
269 $(MAKE) -C libdvdcss
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents: 20542
diff changeset
270
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
271 libfaad2/libfaad2.a:
26433
ce655dcca44b cosmetics: Sort recursive rules alphabetically.
diego
parents: 26432
diff changeset
272 $(MAKE) -C libfaad2
ce655dcca44b cosmetics: Sort recursive rules alphabetically.
diego
parents: 26432
diff changeset
273
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
274 libmpcodecs/libmpcodecs.a:
26433
ce655dcca44b cosmetics: Sort recursive rules alphabetically.
diego
parents: 26432
diff changeset
275 $(MAKE) -C libmpcodecs
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
276
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
277 libmpcodecs/libmpencoders.a:
26434
dab16e04c308 Add missing recursive rule for libmpcodecs/libmpencoders.a.
diego
parents: 26433
diff changeset
278 $(MAKE) -C libmpcodecs libmpencoders.a
dab16e04c308 Add missing recursive rule for libmpcodecs/libmpencoders.a.
diego
parents: 26433
diff changeset
279
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
280 libmpdemux/libmpdemux.a:
21310
3220773a071b Split muxers into a separate library that only MEncoder is linked against.
diego
parents: 21284
diff changeset
281 $(MAKE) -C libmpdemux libmpdemux.a
3220773a071b Split muxers into a separate library that only MEncoder is linked against.
diego
parents: 21284
diff changeset
282
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
283 libmpdemux/libmpmux.a:
21310
3220773a071b Split muxers into a separate library that only MEncoder is linked against.
diego
parents: 21284
diff changeset
284 $(MAKE) -C libmpdemux libmpmux.a
2310
9e059416eea6 libdemuxer...
arpi
parents: 2272
diff changeset
285
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
286 libmpeg2/libmpeg2.a:
26433
ce655dcca44b cosmetics: Sort recursive rules alphabetically.
diego
parents: 26432
diff changeset
287 $(MAKE) -C libmpeg2
1279
799fa3cb38e3 ffmpeg support
arpi
parents: 1234
diff changeset
288
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
289 libpostproc/libpostproc.a:
22966
c51b43a4f7d8 Remove redundant setting of variables when compiling FFmpeg libraries,
diego
parents: 22962
diff changeset
290 $(MAKE) -C libpostproc
17596
52fb9a8bf702 add a missing rule for libpostproc.a
henry
parents: 17488
diff changeset
291
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
292 libswscale/libswscale.a:
22966
c51b43a4f7d8 Remove redundant setting of variables when compiling FFmpeg libraries,
diego
parents: 22962
diff changeset
293 $(MAKE) -C libswscale
18861
8579acff875e Move postproc ---> libswscale
lucabe
parents: 18789
diff changeset
294
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
295 libvo/libvo.a:
21257
637fcc472af6 Add explicit dependency information for libosd.a, this fixes MEncoder-only
diego
parents: 21225
diff changeset
296 $(MAKE) -C libvo libvo.a
637fcc472af6 Add explicit dependency information for libosd.a, this fixes MEncoder-only
diego
parents: 21225
diff changeset
297
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
298 libvo/libosd.a:
21257
637fcc472af6 Add explicit dependency information for libosd.a, this fixes MEncoder-only
diego
parents: 21225
diff changeset
299 $(MAKE) -C libvo libosd.a
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
300
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
301 loader/libloader.a:
26433
ce655dcca44b cosmetics: Sort recursive rules alphabetically.
diego
parents: 26432
diff changeset
302 $(MAKE) -C loader
10726
bae3e8c81ada use internal (included) libfaad2
arpi
parents: 10651
diff changeset
303
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
304 mp3lib/libmp3.a:
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
305 $(MAKE) -C mp3lib
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
306
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
307 stream/stream.a:
26433
ce655dcca44b cosmetics: Sort recursive rules alphabetically.
diego
parents: 26432
diff changeset
308 $(MAKE) -C stream
ce655dcca44b cosmetics: Sort recursive rules alphabetically.
diego
parents: 26432
diff changeset
309
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
310 tremor/libvorbisidec.a:
14280
8631a3803289 internal Tremor decoder for Ogg/Vorbis
henry
parents: 14245
diff changeset
311 $(MAKE) -C tremor
8631a3803289 internal Tremor decoder for Ogg/Vorbis
henry
parents: 14245
diff changeset
312
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
313 vidix/libvidix.a:
4030
922241968c63 Embedding vidix
nick
parents: 3969
diff changeset
314 $(MAKE) -C vidix
922241968c63 Embedding vidix
nick
parents: 3969
diff changeset
315
21085
6a152d4ee3ae Rename variables for consistency.
diego
parents: 21084
diff changeset
316 mplayer$(EXESUF): $(MPLAYER_DEPS)
21130
44dcb71f9751 Split libs that are dependencies and those that are just linker flags.
diego
parents: 21128
diff changeset
317 $(CC) -o $@ $^ $(LDFLAGS_MPLAYER)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
318
21085
6a152d4ee3ae Rename variables for consistency.
diego
parents: 21084
diff changeset
319 mencoder$(EXESUF): $(MENCODER_DEPS)
21130
44dcb71f9751 Split libs that are dependencies and those that are just linker flags.
diego
parents: 21128
diff changeset
320 $(CC) -o $@ $^ $(LDFLAGS_MENCODER)
2601
81c0f3e487eb added support for mencoder (compile with 'make mencoder')
alex
parents: 2528
diff changeset
321
20755
b4c865e17155 Create binaries with proper executable suffix under Windows.
diego
parents: 20723
diff changeset
322 codec-cfg$(EXESUF): codec-cfg.c codec-cfg.h help_mp.h
26058
e2ee46838240 Compile codec-cfg binary with -O, avoids problems due to compilers
reimar
parents: 25633
diff changeset
323 $(HOST_CC) -O -I. -DCODECS2HTML $< -o $@
19051
7d1896a52428 Clean up codec-cfg and friends handling.
diego
parents: 19048
diff changeset
324
20791
b5045bb4f1aa 10l: Overlooked one $(EXESUF) addition.
diego
parents: 20755
diff changeset
325 codecs.conf.h: codec-cfg$(EXESUF) etc/codecs.conf
20755
b4c865e17155 Create binaries with proper executable suffix under Windows.
diego
parents: 20723
diff changeset
326 ./codec-cfg$(EXESUF) ./etc/codecs.conf > $@
8467
3ca9cc46df5c Fallback to builtin (generated from etc/codecs.conf at compile time)
arpi
parents: 8353
diff changeset
327
3ca9cc46df5c Fallback to builtin (generated from etc/codecs.conf at compile time)
arpi
parents: 8353
diff changeset
328 codec-cfg.o: codecs.conf.h
3ca9cc46df5c Fallback to builtin (generated from etc/codecs.conf at compile time)
arpi
parents: 8353
diff changeset
329
20755
b4c865e17155 Create binaries with proper executable suffix under Windows.
diego
parents: 20723
diff changeset
330 codecs2html$(EXESUF): mp_msg.o
21956
1344492230fc some simplifications
diego
parents: 21512
diff changeset
331 $(CC) -DCODECS2HTML codec-cfg.c $^ -o $@
17761
7d4c7463e91b Add codecs2html target.
diego
parents: 17733
diff changeset
332
22499
643be517b47a Add codec-cfg-test target.
diego
parents: 22495
diff changeset
333 codec-cfg-test$(EXESUF): codecs.conf.h codec-cfg.h mp_msg.o osdep/getch2.o
643be517b47a Add codec-cfg-test target.
diego
parents: 22495
diff changeset
334 $(CC) -I. -DTESTING codec-cfg.c mp_msg.o osdep/getch2.o -ltermcap -o $@
643be517b47a Add codec-cfg-test target.
diego
parents: 22495
diff changeset
335
26320
c0dba62cd135 Merge osdep/Makefile into the top-level Makefile, thus getting rid
diego
parents: 26311
diff changeset
336 osdep/mplayer-rc.o: osdep/mplayer.rc version.h
c0dba62cd135 Merge osdep/Makefile into the top-level Makefile, thus getting rid
diego
parents: 26311
diff changeset
337 $(WINDRES) -o $@ $<
c0dba62cd135 Merge osdep/Makefile into the top-level Makefile, thus getting rid
diego
parents: 26311
diff changeset
338
22052
d90d335368b1 Replace ifeq structure in the install target by a set of dependent targets.
diego
parents: 21999
diff changeset
339 install: install-dirs $(INSTALL_TARGETS)
d90d335368b1 Replace ifeq structure in the install target by a set of dependent targets.
diego
parents: 21999
diff changeset
340
22054
9be62c47daa5 cosmetics: Reorder install targets.
diego
parents: 22053
diff changeset
341 install-dirs:
9be62c47daa5 cosmetics: Reorder install targets.
diego
parents: 22053
diff changeset
342 $(INSTALL) -d $(BINDIR)
9be62c47daa5 cosmetics: Reorder install targets.
diego
parents: 22053
diff changeset
343 $(INSTALL) -d $(DATADIR)
9be62c47daa5 cosmetics: Reorder install targets.
diego
parents: 22053
diff changeset
344 $(INSTALL) -d $(MANDIR)/man1
9be62c47daa5 cosmetics: Reorder install targets.
diego
parents: 22053
diff changeset
345 $(INSTALL) -d $(CONFDIR)
9be62c47daa5 cosmetics: Reorder install targets.
diego
parents: 22053
diff changeset
346 if test -f $(CONFDIR)/codecs.conf ; then mv -f $(CONFDIR)/codecs.conf $(CONFDIR)/codecs.conf.old ; fi
22052
d90d335368b1 Replace ifeq structure in the install target by a set of dependent targets.
diego
parents: 21999
diff changeset
347
d90d335368b1 Replace ifeq structure in the install target by a set of dependent targets.
diego
parents: 21999
diff changeset
348 install-mplayer: mplayer$(EXESUF)
21959
46e5f1a5e300 Simplify install calls.
diego
parents: 21958
diff changeset
349 $(INSTALL) -m 755 $(INSTALLSTRIP) mplayer$(EXESUF) $(BINDIR)
22052
d90d335368b1 Replace ifeq structure in the install target by a set of dependent targets.
diego
parents: 21999
diff changeset
350
d90d335368b1 Replace ifeq structure in the install target by a set of dependent targets.
diego
parents: 21999
diff changeset
351 install-mplayer-man:
26323
a9911503e195 cosmetics: Rename some shell variables to give them more descriptive names.
diego
parents: 26322
diff changeset
352 for lang in $(MAN_LANG); do \
a9911503e195 cosmetics: Rename some shell variables to give them more descriptive names.
diego
parents: 26322
diff changeset
353 if test "$$lang" = en ; then \
21959
46e5f1a5e300 Simplify install calls.
diego
parents: 21958
diff changeset
354 $(INSTALL) -c -m 644 DOCS/man/en/mplayer.1 $(MANDIR)/man1/ ; \
9470
3c0bc75f380d Latest version has the following features:
arpi
parents: 9466
diff changeset
355 else \
26425
3357581cefa5 10l: Rename remaining instances of $i to $lang.
diego
parents: 26413
diff changeset
356 $(INSTALL) -d $(MANDIR)/$$lang/man1 ; \
3357581cefa5 10l: Rename remaining instances of $i to $lang.
diego
parents: 26413
diff changeset
357 $(INSTALL) -c -m 644 DOCS/man/$$lang/mplayer.1 $(MANDIR)/$$lang/man1/ ; \
9451
b4a565ed2034 patch by "Andriy N. Gritsenko" <andrej@lucky.net>
gabucino
parents: 9447
diff changeset
358 fi ; \
9470
3c0bc75f380d Latest version has the following features:
arpi
parents: 9466
diff changeset
359 done
22052
d90d335368b1 Replace ifeq structure in the install target by a set of dependent targets.
diego
parents: 21999
diff changeset
360
d90d335368b1 Replace ifeq structure in the install target by a set of dependent targets.
diego
parents: 21999
diff changeset
361 install-mencoder: mencoder$(EXESUF)
21959
46e5f1a5e300 Simplify install calls.
diego
parents: 21958
diff changeset
362 $(INSTALL) -m 755 $(INSTALLSTRIP) mencoder$(EXESUF) $(BINDIR)
26323
a9911503e195 cosmetics: Rename some shell variables to give them more descriptive names.
diego
parents: 26322
diff changeset
363 for lang in $(MAN_LANG); do \
a9911503e195 cosmetics: Rename some shell variables to give them more descriptive names.
diego
parents: 26322
diff changeset
364 if test "$$lang" = en ; then \
20007
1699b4b6707e Work around ln limitations on MinGW.
diego
parents: 19964
diff changeset
365 cd $(MANDIR)/man1 && ln -sf mplayer.1 mencoder.1 ; \
9470
3c0bc75f380d Latest version has the following features:
arpi
parents: 9466
diff changeset
366 else \
26351
bc5a23b6ca2d if it's 'for lang in...' it's better off to use $$lang as a variable next ;)
ptt
parents: 26347
diff changeset
367 cd $(MANDIR)/$$lang/man1 && ln -sf mplayer.1 mencoder.1 ; \
9451
b4a565ed2034 patch by "Andriy N. Gritsenko" <andrej@lucky.net>
gabucino
parents: 9447
diff changeset
368 fi ; \
9470
3c0bc75f380d Latest version has the following features:
arpi
parents: 9466
diff changeset
369 done
22052
d90d335368b1 Replace ifeq structure in the install target by a set of dependent targets.
diego
parents: 21999
diff changeset
370
d90d335368b1 Replace ifeq structure in the install target by a set of dependent targets.
diego
parents: 21999
diff changeset
371 install-gui:
21956
1344492230fc some simplifications
diego
parents: 21512
diff changeset
372 -ln -sf mplayer$(EXESUF) $(BINDIR)/gmplayer$(EXESUF)
21957
768d2c37c605 Don't suppress make output during installation.
diego
parents: 21956
diff changeset
373 $(INSTALL) -d $(DATADIR)/skins
22055
aa59f3608728 URL fix
diego
parents: 22054
diff changeset
374 @echo "*** Download skin(s) at http://www.mplayerhq.hu/design7/dload.html"
17974
9a5a62f480e6 Rename the default GUI skins directory from 'Skin' to 'skins', keeping
diego
parents: 17966
diff changeset
375 @echo "*** for GUI, and extract to $(DATADIR)/skins/"
21957
768d2c37c605 Don't suppress make output during installation.
diego
parents: 21956
diff changeset
376 $(INSTALL) -d $(prefix)/share/pixmaps
21959
46e5f1a5e300 Simplify install calls.
diego
parents: 21958
diff changeset
377 $(INSTALL) -m 644 etc/mplayer.xpm $(prefix)/share/pixmaps/
21957
768d2c37c605 Don't suppress make output during installation.
diego
parents: 21956
diff changeset
378 $(INSTALL) -d $(prefix)/share/applications
21959
46e5f1a5e300 Simplify install calls.
diego
parents: 21958
diff changeset
379 $(INSTALL) -m 644 etc/mplayer.desktop $(prefix)/share/applications/
22052
d90d335368b1 Replace ifeq structure in the install target by a set of dependent targets.
diego
parents: 21999
diff changeset
380
2385
78209b784fec Add uninstall target, patch by Clemens W«£chter <clemenswaechter@yahoo.com>
atmos4
parents: 2310
diff changeset
381 uninstall:
20755
b4c865e17155 Create binaries with proper executable suffix under Windows.
diego
parents: 20723
diff changeset
382 -rm -f $(BINDIR)/mplayer$(EXESUF) $(BINDIR)/gmplayer$(EXESUF)
b4c865e17155 Create binaries with proper executable suffix under Windows.
diego
parents: 20723
diff changeset
383 -rm -f $(BINDIR)/mencoder$(EXESUF)
b4c865e17155 Create binaries with proper executable suffix under Windows.
diego
parents: 20723
diff changeset
384 -rm -f $(MANDIR)/man1/mencoder.1 $(MANDIR)/man1/mplayer.1
18038
c9e946b14b44 Add 32x32 XPM icon as mandated by Debian policy.
diego
parents: 18035
diff changeset
385 -rm -f $(prefix)/share/pixmaps/mplayer.xpm
13666
fdda0475b00d Menu entry for all freedesktop.org compliant window managers.
diego
parents: 13612
diff changeset
386 -rm -f $(prefix)/share/applications/mplayer.desktop
26323
a9911503e195 cosmetics: Rename some shell variables to give them more descriptive names.
diego
parents: 26322
diff changeset
387 for lang in $(MAN_LANG); do \
a9911503e195 cosmetics: Rename some shell variables to give them more descriptive names.
diego
parents: 26322
diff changeset
388 if test "$$lang" != "en"; then \
26351
bc5a23b6ca2d if it's 'for lang in...' it's better off to use $$lang as a variable next ;)
ptt
parents: 26347
diff changeset
389 rm -f $(MANDIR)/$$lang/man1/mplayer.1 \
bc5a23b6ca2d if it's 'for lang in...' it's better off to use $$lang as a variable next ;)
ptt
parents: 26347
diff changeset
390 $(MANDIR)/$$lang/man1/mencoder.1 \
bc5a23b6ca2d if it's 'for lang in...' it's better off to use $$lang as a variable next ;)
ptt
parents: 26347
diff changeset
391 $(MANDIR)/$$lang/man1/gmplayer.1 ; \
16991
4beb036cd4fc fix to uninstall section, pointed out by Reshat Sabiq to -users ml sabiq -- at -- csociety -- dot -- org
ptt
parents: 16935
diff changeset
392 fi ; \
13702
3c6a2b6437df make uninstall was leaving vidix, dha, and libmpdvdkit libraries
wight
parents: 13666
diff changeset
393 done
2385
78209b784fec Add uninstall target, patch by Clemens W«£chter <clemenswaechter@yahoo.com>
atmos4
parents: 2310
diff changeset
394
26455
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
395 clean:: toolsclean
22493
9dd4da00b06a 'make clean' should remove generated binaries.
diego
parents: 22492
diff changeset
396 -rm -f mplayer$(EXESUF) mencoder$(EXESUF) codec-cfg$(EXESUF) \
22935
23e746c5c15c 10l typo
diego
parents: 22932
diff changeset
397 codecs2html$(EXESUF) codec-cfg-test$(EXESUF) cpuinfo$(EXESUF) \
25633
7ab58f012dd3 allow generation of ctags and etags
ben
parents: 25440
diff changeset
398 codecs.conf.h help_mp.h version.h TAGS tags
26323
a9911503e195 cosmetics: Rename some shell variables to give them more descriptive names.
diego
parents: 26322
diff changeset
399 for part in $(PARTS); do $(MAKE) -C $$part clean; done
26409
2deb4c25db1c Replace shell for loop by proper make foreach construct.
diego
parents: 26402
diff changeset
400 rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.o /*.a /*.ho /*~, $(addsuffix $(suffix),$(dir))))
19292
20938447bb55 'make clean' now recurses through subdirectories as expected,
diego
parents: 19283
diff changeset
401
23182
8749e6b047ef Reuse common Makefile infrastructure.
diego
parents: 23181
diff changeset
402 distclean:: doxygen_clean
26323
a9911503e195 cosmetics: Rename some shell variables to give them more descriptive names.
diego
parents: 26322
diff changeset
403 for part in $(PARTS); do $(MAKE) -C $$part distclean; done
23182
8749e6b047ef Reuse common Makefile infrastructure.
diego
parents: 23181
diff changeset
404 -rm -f configure.log config.mak config.h
26432
7f5696224182 per-file dependencies (for the non-recursive parts)
diego
parents: 26430
diff changeset
405 rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.d, $(addsuffix $(suffix),$(dir))))
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
406
6948
ab51ddbec0e1 small rule to strip binaries in source dir (24MB mplayer binary is a bit klugdy for non debug-work :)
atmos4
parents: 6784
diff changeset
407 strip:
ab51ddbec0e1 small rule to strip binaries in source dir (24MB mplayer binary is a bit klugdy for non debug-work :)
atmos4
parents: 6784
diff changeset
408 strip -s $(ALL_PRG)
ab51ddbec0e1 small rule to strip binaries in source dir (24MB mplayer binary is a bit klugdy for non debug-work :)
atmos4
parents: 6784
diff changeset
409
25633
7ab58f012dd3 allow generation of ctags and etags
ben
parents: 25440
diff changeset
410 TAGS:
26322
6377c105cb37 cosmetics: Merge shell commands into one line.
diego
parents: 26321
diff changeset
411 rm -f $@; ( find -name '*.[chS]' -print ) | xargs etags -a
25633
7ab58f012dd3 allow generation of ctags and etags
ben
parents: 25440
diff changeset
412
7ab58f012dd3 allow generation of ctags and etags
ben
parents: 25440
diff changeset
413 tags:
26322
6377c105cb37 cosmetics: Merge shell commands into one line.
diego
parents: 26321
diff changeset
414 rm -f $@; ( find -name '*.[chS]' -print ) | xargs ctags -a
25633
7ab58f012dd3 allow generation of ctags and etags
ben
parents: 25440
diff changeset
415
18786
b77cdcb4fb6a CVS --> Subversion + better version.h handling
diego
parents: 18765
diff changeset
416 # ./configure must be rerun if it changed
24268
6b0e5503ca7a Silence make's 'Please run configure again' if it was already run.
cehoyos
parents: 24242
diff changeset
417 config.mak: configure
6958
9cb1efcc5640 'configure changed'-test re-added, noticed by Sylvain Petreolle <spetreolle@yahoo.fr>
arpi
parents: 6948
diff changeset
418 @echo "############################################################"
9cb1efcc5640 'configure changed'-test re-added, noticed by Sylvain Petreolle <spetreolle@yahoo.fr>
arpi
parents: 6948
diff changeset
419 @echo "####### Please run ./configure again - it's changed! #######"
9cb1efcc5640 'configure changed'-test re-added, noticed by Sylvain Petreolle <spetreolle@yahoo.fr>
arpi
parents: 6948
diff changeset
420 @echo "############################################################"
9cb1efcc5640 'configure changed'-test re-added, noticed by Sylvain Petreolle <spetreolle@yahoo.fr>
arpi
parents: 6948
diff changeset
421
18786
b77cdcb4fb6a CVS --> Subversion + better version.h handling
diego
parents: 18765
diff changeset
422 # rebuild at every config.h/config.mak/Makefile change:
b77cdcb4fb6a CVS --> Subversion + better version.h handling
diego
parents: 18765
diff changeset
423 version.h: config.h config.mak Makefile
6147
4ec23f98516e Fix gcc version display for gcc 3.1 (downwards compatible it seems - tested with 2.95.2)
atmos4
parents: 6128
diff changeset
424 ./version.sh `$(CC) -dumpversion`
448
198b46b739d8 qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents: 444
diff changeset
425
13097
c7afdb04c8c8 Adding doxygen stuff.
attila
parents: 13006
diff changeset
426 doxygen:
c7afdb04c8c8 Adding doxygen stuff.
attila
parents: 13006
diff changeset
427 doxygen DOCS/tech/Doxyfile
c7afdb04c8c8 Adding doxygen stuff.
attila
parents: 13006
diff changeset
428
c7afdb04c8c8 Adding doxygen stuff.
attila
parents: 13006
diff changeset
429 doxygen_clean:
c7afdb04c8c8 Adding doxygen stuff.
attila
parents: 13006
diff changeset
430 -rm -rf DOCS/tech/doxygen
c7afdb04c8c8 Adding doxygen stuff.
attila
parents: 13006
diff changeset
431
13703
06cd8401c498 Move help_mp.h generation to Makefile, so it's easier to maintain on
wight
parents: 13702
diff changeset
432 help_mp.h: help/help_mp-en.h $(HELP_FILE)
06cd8401c498 Move help_mp.h generation to Makefile, so it's easier to maintain on
wight
parents: 13702
diff changeset
433 @echo '// WARNING! This is a generated file. Do NOT edit.' > help_mp.h
06cd8401c498 Move help_mp.h generation to Makefile, so it's easier to maintain on
wight
parents: 13702
diff changeset
434 @echo '// See the help/ subdir for the editable files.' >> help_mp.h
26301
f3e785f2816a Add multiple inclusion guards to help_mp.h.
diego
parents: 26287
diff changeset
435 @echo '#ifndef MPLAYER_HELP_MP_H' >> help_mp.h
f3e785f2816a Add multiple inclusion guards to help_mp.h.
diego
parents: 26287
diff changeset
436 @echo '#define MPLAYER_HELP_MP_H' >> help_mp.h
14830
8260cd3c585c --charset configure option to convert help messages charset
reimar
parents: 14281
diff changeset
437 ifeq ($(CHARSET),)
13703
06cd8401c498 Move help_mp.h generation to Makefile, so it's easier to maintain on
wight
parents: 13702
diff changeset
438 @echo '#include "$(HELP_FILE)"' >> help_mp.h
14830
8260cd3c585c --charset configure option to convert help messages charset
reimar
parents: 14281
diff changeset
439 else
20634
32b693286d0b remove charset files (all of them are in UTF-8 now anyway)
kraymer
parents: 20615
diff changeset
440 iconv -f UTF-8 -t $(CHARSET) "$(HELP_FILE)" >> help_mp.h
14830
8260cd3c585c --charset configure option to convert help messages charset
reimar
parents: 14281
diff changeset
441 endif
26301
f3e785f2816a Add multiple inclusion guards to help_mp.h.
diego
parents: 26287
diff changeset
442 @echo '#endif /* MPLAYER_HELP_MP_H */' >> help_mp.h
13703
06cd8401c498 Move help_mp.h generation to Makefile, so it's easier to maintain on
wight
parents: 13702
diff changeset
443
06cd8401c498 Move help_mp.h generation to Makefile, so it's easier to maintain on
wight
parents: 13702
diff changeset
444 ifneq ($(HELP_FILE),help/help_mp-en.h)
06cd8401c498 Move help_mp.h generation to Makefile, so it's easier to maintain on
wight
parents: 13702
diff changeset
445 @echo "Adding untranslated messages to help_mp.h"
06cd8401c498 Move help_mp.h generation to Makefile, so it's easier to maintain on
wight
parents: 13702
diff changeset
446 @echo '// untranslated messages from the English master file:' >> help_mp.h
06cd8401c498 Move help_mp.h generation to Makefile, so it's easier to maintain on
wight
parents: 13702
diff changeset
447 @help/help_diff.sh $(HELP_FILE) < help/help_mp-en.h >> help_mp.h
06cd8401c498 Move help_mp.h generation to Makefile, so it's easier to maintain on
wight
parents: 13702
diff changeset
448 endif
06cd8401c498 Move help_mp.h generation to Makefile, so it's easier to maintain on
wight
parents: 13702
diff changeset
449
26455
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
450
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
451 TOOLS = TOOLS/alaw-gen$(EXESUF) \
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
452 TOOLS/asfinfo$(EXESUF) \
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
453 TOOLS/avi-fix$(EXESUF) \
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
454 TOOLS/avisubdump$(EXESUF) \
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
455 TOOLS/compare$(EXESUF) \
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
456 TOOLS/dump_mp4$(EXESUF) \
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
457 TOOLS/movinfo$(EXESUF) \
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
458 TOOLS/subrip$(EXESUF) \
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
459
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
460 ifdef ARCH_X86
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
461 TOOLS += TOOLS/modify_reg$(EXESUF)
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
462 endif
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
463
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
464 tools: $(TOOLS)
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
465
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
466 TOOLS_COMMON_LIBS = mp_msg.o mp_fifo.o osdep/$(TIMER) osdep/$(GETCH) \
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
467 -ltermcap -lm
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
468
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
469 TOOLS/bmovl-test$(EXESUF): TOOLS/bmovl-test.c -lSDL_image
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
470
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
471 TOOLS/subrip$(EXESUF): TOOLS/subrip.c vobsub.o spudec.o unrar_exec.o \
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
472 libswscale/libswscale.a libavutil/libavutil.a $(TOOLS_COMMON_LIBS)
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
473
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
474 TOOLS/vfw2menc$(EXESUF): TOOLS/vfw2menc.c -lwinmm -lole32
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
475
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
476 #FIXME: Linking is broken, help welcome.
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
477 TOOLS/vivodump$(EXESUF): TOOLS/vivodump.c libmpdemux/libmpdemux.a $(TOOLS_COMMON_LIBS)
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
478
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
479 fastmemcpybench: TOOLS/fastmemcpybench.c
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
480 $(CC) $(CFLAGS) $< -o TOOLS/fastmem-mmx$(EXESUF) -DNAME=\"mmx\" -DHAVE_MMX
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
481 $(CC) $(CFLAGS) $< -o TOOLS/fastmem-k6$(EXESUF) -DNAME=\"k6\ \" -DHAVE_MMX -DHAVE_3DNOW
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
482 $(CC) $(CFLAGS) $< -o TOOLS/fastmem-k7$(EXESUF) -DNAME=\"k7\ \" -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
483 $(CC) $(CFLAGS) $< -o TOOLS/fastmem-sse$(EXESUF) -DNAME=\"sse\" -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
484 $(CC) $(CFLAGS) $< -o TOOLS/fastmem2-mmx$(EXESUF) -DNAME=\"mga-mmx\" -DHAVE_MGA -DHAVE_MMX
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
485 $(CC) $(CFLAGS) $< -o TOOLS/fastmem2-k6$(EXESUF) -DNAME=\"mga-k6\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
486 $(CC) $(CFLAGS) $< -o TOOLS/fastmem2-k7$(EXESUF) -DNAME=\"mga-k7\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
487 $(CC) $(CFLAGS) $< -o TOOLS/fastmem2-sse$(EXESUF) -DNAME=\"mga-sse\" -DHAVE_MGA -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
488
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
489 REAL_SRCS = $(wildcard TOOLS/realcodecs/*.c)
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
490 REAL_TARGETS = $(REAL_SRCS:.c=.so.6.0)
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
491
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
492 realcodecs: $(REAL_TARGETS)
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
493
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
494 fastmemcpybench realcodecs: CFLAGS += -g
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
495
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
496 %.so.6.0: %.o
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
497 ld -shared -o $@ $< -ldl -lc
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
498
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
499 # FIXME: netstream linking is a mess that should be fixed properly some day.
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
500 # It does not work with either GUI, LIVE555, libavformat, cdparanoia enabled.
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
501 NETSTREAM_DEPS = libmpdemux/libmpdemux.a \
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
502 stream/stream.a \
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
503 dvdread/libdvdread.a \
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
504 libdvdcss/libdvdcss.a \
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
505 libavutil/libavutil.a \
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
506 m_option.o \
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
507 m_struct.o \
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
508 $(TOOLS_COMMON_LIBS)
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
509
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
510 TOOLS/netstream$(EXESUF): TOOLS/netstream.o $(NETSTREAM_DEPS)
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
511 $(CC) $(CFLAGS) -o $@ $^
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
512
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
513 toolsclean:
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
514 rm -f $(TOOLS) TOOLS/fastmem*-* TOOLS/netstream$(EXESUF)
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
515 rm -f TOOLS/bmovl-test$(EXESUF) TOOLS/vfw2menc$(EXESUF) $(REAL_TARGETS)
4d9fad055ac9 Merge TOOLS/Makefile into the top-level Makefile.
diego
parents: 26435
diff changeset
516
26463
69bee1a22309 Add an unconditional phony recurse rule and make the binaries depend on it.
diego
parents: 26455
diff changeset
517 .PHONY: all doxygen install* uninstall recurse strip tools