Make windres binary name configurable, useful for cross-compiling.
[mplayer/greg.git] / osdep / Makefile
blob3f22bcacad874b20b4d1be6904ee3b5dac51e078
1 include ../config.mak
3 LIBNAME_COMMON = libosdep.a
5 SRCS_COMMON-$(HAVE_SYS_MMAN_H) += mmap_anon.c
6 SRCS_COMMON-$(MACOSX_FINDER_SUPPORT) += macosx_finder_args.c
8 SRCS_COMMON-$(NEED_GETTIMEOFDAY) += gettimeofday.c
9 SRCS_COMMON-$(NEED_GLOB) += glob-win.c
10 SRCS_COMMON-$(NEED_SETENV) += setenv.c
11 SRCS_COMMON-$(NEED_SHMEM) += shmem.c
12 SRCS_COMMON-$(NEED_STRSEP) += strsep.c
13 SRCS_COMMON-$(NEED_SWAB) += swab.c
14 SRCS_COMMON-$(NEED_VSSCANF) += vsscanf.c
16 getch = getch2.c
17 timer = timer-linux.c
18 ifeq ($(TARGET_WIN32),yes)
19 timer = timer-win2.c
20 endif
21 ifeq ($(TARGET_OS),Darwin)
22 timer = timer-darwin.c
23 endif
24 ifeq ($(TARGET_OS),MINGW32)
25 getch = getch2-win.c
26 endif
27 SRCS_COMMON += $(timer)
28 SRCS_COMMON += $(getch)
30 include ../mpcommon.mak
32 mplayer-rc.o: mplayer.rc
33 $(WINDRES) -o $@ $<