# HG changeset patch # User faust3 # Date 1049484798 0 # Node ID e2134d2f18fb6c8f2ffeb5728e59cf5b43f9050e # Parent 0f2cc9ef24f694df707c242cbe0c222bad7ea039 enable timer-win and getch2-win for mingw32 diff -r 0f2cc9ef24f6 -r e2134d2f18fb osdep/Makefile --- a/osdep/Makefile Fri Apr 04 19:27:46 2003 +0000 +++ b/osdep/Makefile Fri Apr 04 19:33:18 2003 +0000 @@ -3,7 +3,7 @@ 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 @@ 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)