summaryrefslogtreecommitdiffstats
path: root/osdep/Makefile
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-01-10 19:07:42 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-01-10 19:07:42 +0000
commitb2c4df0543c3de1725763511eca658a055209f36 (patch)
tree618dd9e22574f0928d6c6bf09d28cf7096955e75 /osdep/Makefile
parent4cb9cfc6eead9bb182159d20a425baaaf01d9927 (diff)
downloadmpv-b2c4df0543c3de1725763511eca658a055209f36.tar.bz2
mpv-b2c4df0543c3de1725763511eca658a055209f36.tar.xz
Move #ifdef directives around complete files into the build system.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21873 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'osdep/Makefile')
-rw-r--r--osdep/Makefile23
1 files changed, 13 insertions, 10 deletions
diff --git a/osdep/Makefile b/osdep/Makefile
index 0040ffd4ad..9865581623 100644
--- a/osdep/Makefile
+++ b/osdep/Makefile
@@ -3,18 +3,21 @@ include ../config.mak
LIBNAME = libosdep.a
-SRCS= shmem.c \
- strsep.c \
- strl.c \
- vsscanf.c \
- scandir.c \
- gettimeofday.c \
+SRCS= strl.c \
fseeko.c \
- swab.c \
- setenv.c \
- mmap_anon.c \
+SRCS-$(HAVE_SYS_MMAN_H) += mmap_anon.c
SRCS-$(MACOSX_FINDER_SUPPORT) += macosx_finder_args.c
+ifneq ($(TARGET_OS),MINGW32)
+SRCS-$(STREAM_CACHE) += shmem.c
+endif
+
+SRCS-$(NEED_GETTIMEOFDAY) += gettimeofday.c
+SRCS-$(NEED_SCANDIR) += scandir.c
+SRCS-$(NEED_SETENV) += setenv.c
+SRCS-$(NEED_STRSEP) += strsep.c
+SRCS-$(NEED_SWAB) += swab.c
+SRCS-$(NEED_VSSCANF) += vsscanf.c
getch = getch2.c
timer = timer-lx.c
@@ -26,7 +29,7 @@ timer = timer-darwin.c
endif
ifeq ($(TARGET_OS),MINGW32)
getch = getch2-win.c
-SRCS += glob-win.c
+SRCS-$(NEED_GLOB) += glob-win.c
endif
SRCS += $(timer)
SRCS += $(getch)