aboutsummaryrefslogtreecommitdiffhomepage
path: root/osdep
diff options
context:
space:
mode:
authorGravatar faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-04 19:33:18 +0000
committerGravatar faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-04 19:33:18 +0000
commit3a6df1e21e164925f13ba6fdfc26e3add607a882 (patch)
tree704f0a7112a782ab1e80b73c3c2502a544f0f434 /osdep
parenta8dd582c4570ad649c237a9cdbf44ee12ce32ec7 (diff)
enable timer-win and getch2-win for mingw32
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9831 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'osdep')
-rw-r--r--osdep/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/osdep/Makefile b/osdep/Makefile
index 0309d7ebad..c1a1c4da69 100644
--- a/osdep/Makefile
+++ b/osdep/Makefile
@@ -3,7 +3,7 @@ include ../config.mak
LIBNAME = libosdep.a
-SRCS=getch2.c shmem.c strsep.c vsscanf.c scandir.c # timer.c
+SRCS= shmem.c strsep.c vsscanf.c scandir.c gettimeofday.c # timer.c
ifeq ($(TARGET_ARCH_X86),yes)
ifeq ($(TARGET_OS),Linux)
@@ -11,11 +11,20 @@ SRCS += lrmi.c vbelib.c
endif
endif
+getch = getch2.c
+timer = timer-lx.c
ifeq ($(MACOSX),yes)
-SRCS += timer-macosx.c
-else
-SRCS += timer-lx.c
+timer = timer-macosx.c
endif
+ifeq ($(TARGET_CYGWIN),yes)
+timer = timer-win.c
+endif
+ifeq ($(TARGET_MINGW32),yes)
+timer = timer-win.c
+getch = getch2-win.c
+endif
+SRCS += $(timer)
+SRCS += $(getch)
OBJS=$(SRCS:.c=.o)