comparison osdep/Makefile @ 22528:8bcff5c7e387

Give more descriptive names to the source and library variables and split between common, MPlayer-specific and MEncoder-specific parts.
author diego
date Tue, 13 Mar 2007 12:10:57 +0000
parents 9879c4598744
children 090ec2169aee
comparison
equal deleted inserted replaced
22527:5dc92a83d58a 22528:8bcff5c7e387
1 1
2 include ../config.mak 2 include ../config.mak
3 3
4 LIBNAME = libosdep.a 4 LIBNAME_COMMON = libosdep.a
5 5
6 SRCS-$(HAVE_SYS_MMAN_H) += mmap_anon.c 6 SRCS_COMMON-$(HAVE_SYS_MMAN_H) += mmap_anon.c
7 SRCS-$(MACOSX_FINDER_SUPPORT) += macosx_finder_args.c 7 SRCS_COMMON-$(MACOSX_FINDER_SUPPORT) += macosx_finder_args.c
8 SRCS-$(STREAM_CACHE) += shmem.c 8 SRCS_COMMON-$(STREAM_CACHE) += shmem.c
9 9
10 SRCS-$(NEED_FSEEKO) += fseeko.c 10 SRCS_COMMON-$(NEED_FSEEKO) += fseeko.c
11 SRCS-$(NEED_FTELLO) += ftello.c 11 SRCS_COMMON-$(NEED_FTELLO) += ftello.c
12 SRCS-$(NEED_GETTIMEOFDAY) += gettimeofday.c 12 SRCS_COMMON-$(NEED_GETTIMEOFDAY) += gettimeofday.c
13 SRCS-$(NEED_GLOB) += glob-win.c 13 SRCS_COMMON-$(NEED_GLOB) += glob-win.c
14 SRCS-$(NEED_SCANDIR) += scandir.c 14 SRCS_COMMON-$(NEED_SCANDIR) += scandir.c
15 SRCS-$(NEED_SETENV) += setenv.c 15 SRCS_COMMON-$(NEED_SETENV) += setenv.c
16 SRCS-$(NEED_STRLCAT) += strlcat.c 16 SRCS_COMMON-$(NEED_STRLCAT) += strlcat.c
17 SRCS-$(NEED_STRLCPY) += strlcpy.c 17 SRCS_COMMON-$(NEED_STRLCPY) += strlcpy.c
18 SRCS-$(NEED_STRSEP) += strsep.c 18 SRCS_COMMON-$(NEED_STRSEP) += strsep.c
19 SRCS-$(NEED_SWAB) += swab.c 19 SRCS_COMMON-$(NEED_SWAB) += swab.c
20 SRCS-$(NEED_VSSCANF) += vsscanf.c 20 SRCS_COMMON-$(NEED_VSSCANF) += vsscanf.c
21 21
22 getch = getch2.c 22 getch = getch2.c
23 timer = timer-lx.c 23 timer = timer-lx.c
24 ifeq ($(TARGET_WIN32),yes) 24 ifeq ($(TARGET_WIN32),yes)
25 timer = timer-win2.c 25 timer = timer-win2.c
28 timer = timer-darwin.c 28 timer = timer-darwin.c
29 endif 29 endif
30 ifeq ($(TARGET_OS),MINGW32) 30 ifeq ($(TARGET_OS),MINGW32)
31 getch = getch2-win.c 31 getch = getch2-win.c
32 endif 32 endif
33 SRCS += $(timer) 33 SRCS_COMMON += $(timer)
34 SRCS += $(getch) 34 SRCS_COMMON += $(getch)
35 35
36 include ../mpcommon.mak 36 include ../mpcommon.mak
37 37
38 mplayer-rc.o: mplayer.rc 38 mplayer-rc.o: mplayer.rc
39 windres -o $@ $< 39 windres -o $@ $<