comparison Makefile @ 26320:c0dba62cd135

Merge osdep/Makefile into the top-level Makefile, thus getting rid of recursive make in the osdep/ subdirectory.
author diego
date Tue, 08 Apr 2008 18:25:30 +0000
parents a3d7fc4f186e
children 8306fe01e788
comparison
equal deleted inserted replaced
26319:b90151a7dcbb 26320:c0dba62cd135
31 spudec.c \ 31 spudec.c \
32 sub_cc.c \ 32 sub_cc.c \
33 subopt-helper.c \ 33 subopt-helper.c \
34 subreader.c \ 34 subreader.c \
35 vobsub.c \ 35 vobsub.c \
36 36 osdep/$(GETCH) \
37 osdep/$(TIMER) \
38
39 SRCS_COMMON-$(HAVE_SYS_MMAN_H) += osdep/mmap_anon.c
40 SRCS_COMMON-$(MACOSX_FINDER_SUPPORT) += osdep/macosx_finder_args.c
41 SRCS_COMMON-$(NEED_GETTIMEOFDAY) += osdep/gettimeofday.c
42 SRCS_COMMON-$(NEED_GLOB) += osdep/glob-win.c
43 SRCS_COMMON-$(NEED_SETENV) += osdep/setenv.c
44 SRCS_COMMON-$(NEED_SHMEM) += osdep/shmem.c
45 SRCS_COMMON-$(NEED_STRSEP) += osdep/strsep.c
46 SRCS_COMMON-$(NEED_SWAB) += osdep/swab.c
47 SRCS_COMMON-$(NEED_VSSCANF) += osdep/vsscanf.c
37 SRCS_COMMON-$(UNRAR_EXEC) += unrar_exec.c 48 SRCS_COMMON-$(UNRAR_EXEC) += unrar_exec.c
38 49
39 SRCS_MPLAYER = mplayer.c \ 50 SRCS_MPLAYER = mplayer.c \
40 m_property.c \ 51 m_property.c \
41 mp_fifo.c \ 52 mp_fifo.c \
94 LIBS_MPLAYER-$(GUI) += gui/libgui.a 105 LIBS_MPLAYER-$(GUI) += gui/libgui.a
95 106
96 LIBS_MENCODER = libmpcodecs/libmpencoders.a \ 107 LIBS_MENCODER = libmpcodecs/libmpencoders.a \
97 libmpdemux/libmpmux.a \ 108 libmpdemux/libmpmux.a \
98 109
99 # Having this in libosdep.a is not enough.
100 OBJS_MPLAYER-$(TARGET_WIN32) += osdep/mplayer-rc.o
101
102 ALL_PRG-$(MPLAYER) += mplayer$(EXESUF) 110 ALL_PRG-$(MPLAYER) += mplayer$(EXESUF)
103 ALL_PRG-$(MENCODER) += mencoder$(EXESUF) 111 ALL_PRG-$(MENCODER) += mencoder$(EXESUF)
104 112
105 COMMON_LIBS += $(COMMON_LIBS-yes) 113 COMMON_LIBS += $(COMMON_LIBS-yes)
106 LIBS_MPLAYER += $(LIBS_MPLAYER-yes) 114 LIBS_MPLAYER += $(LIBS_MPLAYER-yes)
107 OBJS_MPLAYER += $(OBJS_MPLAYER-yes) 115 OBJS_MPLAYER += $(OBJS_MPLAYER-yes)
108 ALL_PRG += $(ALL_PRG-yes) 116 ALL_PRG += $(ALL_PRG-yes)
109
110 COMMON_LIBS += osdep/libosdep.a
111 117
112 MPLAYER_DEPS = $(OBJS_MPLAYER) $(OBJS_COMMON) $(LIBS_MPLAYER) $(COMMON_LIBS) 118 MPLAYER_DEPS = $(OBJS_MPLAYER) $(OBJS_COMMON) $(LIBS_MPLAYER) $(COMMON_LIBS)
113 MENCODER_DEPS = $(OBJS_MENCODER) $(OBJS_COMMON) $(LIBS_MENCODER) $(COMMON_LIBS) 119 MENCODER_DEPS = $(OBJS_MENCODER) $(OBJS_COMMON) $(LIBS_MENCODER) $(COMMON_LIBS)
114 120
115 INSTALL_TARGETS-$(MPLAYER) += install-mplayer install-mplayer-man 121 INSTALL_TARGETS-$(MPLAYER) += install-mplayer install-mplayer-man
134 libpostproc \ 140 libpostproc \
135 libswscale \ 141 libswscale \
136 libvo \ 142 libvo \
137 loader \ 143 loader \
138 mp3lib \ 144 mp3lib \
139 osdep \
140 stream \ 145 stream \
141 tremor \ 146 tremor \
142 vidix \ 147 vidix \
143 148
144 DIRS = input \ 149 DIRS = input \
145 libmenu \ 150 libmenu \
151 osdep \
146 152
147 all: $(ALL_PRG) 153 all: $(ALL_PRG)
148 154
149 dep depend:: help_mp.h version.h codecs.conf.h 155 dep depend:: help_mp.h version.h codecs.conf.h
150 @for a in $(PARTS); do $(MAKE) -C $$a dep; done 156 @for a in $(PARTS); do $(MAKE) -C $$a dep; done
223 $(MAKE) -C vidix 229 $(MAKE) -C vidix
224 230
225 gui/libgui.a: 231 gui/libgui.a:
226 $(MAKE) -C gui 232 $(MAKE) -C gui
227 233
228 osdep/libosdep.a:
229 $(MAKE) -C osdep
230
231 osdep/mplayer-rc.o: version.h
232 $(MAKE) -C osdep mplayer-rc.o
233
234 mplayer$(EXESUF): $(MPLAYER_DEPS) 234 mplayer$(EXESUF): $(MPLAYER_DEPS)
235 $(CC) -o $@ $^ $(LDFLAGS_MPLAYER) 235 $(CC) -o $@ $^ $(LDFLAGS_MPLAYER)
236 236
237 mencoder$(EXESUF): $(MENCODER_DEPS) 237 mencoder$(EXESUF): $(MENCODER_DEPS)
238 $(CC) -o $@ $^ $(LDFLAGS_MENCODER) 238 $(CC) -o $@ $^ $(LDFLAGS_MENCODER)
248 codecs2html$(EXESUF): mp_msg.o 248 codecs2html$(EXESUF): mp_msg.o
249 $(CC) -DCODECS2HTML codec-cfg.c $^ -o $@ 249 $(CC) -DCODECS2HTML codec-cfg.c $^ -o $@
250 250
251 codec-cfg-test$(EXESUF): codecs.conf.h codec-cfg.h mp_msg.o osdep/getch2.o 251 codec-cfg-test$(EXESUF): codecs.conf.h codec-cfg.h mp_msg.o osdep/getch2.o
252 $(CC) -I. -DTESTING codec-cfg.c mp_msg.o osdep/getch2.o -ltermcap -o $@ 252 $(CC) -I. -DTESTING codec-cfg.c mp_msg.o osdep/getch2.o -ltermcap -o $@
253
254 osdep/mplayer-rc.o: osdep/mplayer.rc version.h
255 $(WINDRES) -o $@ $<
253 256
254 install: install-dirs $(INSTALL_TARGETS) 257 install: install-dirs $(INSTALL_TARGETS)
255 258
256 install-dirs: 259 install-dirs:
257 $(INSTALL) -d $(BINDIR) 260 $(INSTALL) -d $(BINDIR)
387 .norecurse: 390 .norecurse:
388 391
389 libvo/libvo.a: .norecurse $(wildcard libvo/*.[ch]) 392 libvo/libvo.a: .norecurse $(wildcard libvo/*.[ch])
390 libvo/libosd.a: .norecurse $(wildcard libvo/*.[ch]) 393 libvo/libosd.a: .norecurse $(wildcard libvo/*.[ch])
391 libao2/libao2.a: .norecurse $(wildcard libao2/*.[ch]) 394 libao2/libao2.a: .norecurse $(wildcard libao2/*.[ch])
392 osdep/libosdep.a: .norecurse $(wildcard osdep/*.[ch])
393 395
394 libaf/libaf.a: .norecurse $(wildcard libaf/*.[ch]) 396 libaf/libaf.a: .norecurse $(wildcard libaf/*.[ch])
395 dvdread/libdvdread.a: .norecurse $(wildcard dvdread/*.[ch]) 397 dvdread/libdvdread.a: .norecurse $(wildcard dvdread/*.[ch])
396 libdvdcss/libdvdcss.a: .norecurse $(wildcard libdvdcss/*.[ch]) 398 libdvdcss/libdvdcss.a: .norecurse $(wildcard libdvdcss/*.[ch])
397 399