aboutsummaryrefslogtreecommitdiffhomepage
path: root/osdep/Makefile
blob: 3f22bcacad874b20b4d1be6904ee3b5dac51e078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
include ../config.mak

LIBNAME_COMMON = libosdep.a

SRCS_COMMON-$(HAVE_SYS_MMAN_H)       += mmap_anon.c
SRCS_COMMON-$(MACOSX_FINDER_SUPPORT) += macosx_finder_args.c

SRCS_COMMON-$(NEED_GETTIMEOFDAY)     += gettimeofday.c
SRCS_COMMON-$(NEED_GLOB)             += glob-win.c
SRCS_COMMON-$(NEED_SETENV)           += setenv.c
SRCS_COMMON-$(NEED_SHMEM)            += shmem.c
SRCS_COMMON-$(NEED_STRSEP)           += strsep.c
SRCS_COMMON-$(NEED_SWAB)             += swab.c
SRCS_COMMON-$(NEED_VSSCANF)          += vsscanf.c

getch = getch2.c
timer = timer-linux.c
ifeq ($(TARGET_WIN32),yes)
timer = timer-win2.c
endif
ifeq ($(TARGET_OS),Darwin)
timer = timer-darwin.c
endif
ifeq ($(TARGET_OS),MINGW32)
getch = getch2-win.c
endif
SRCS_COMMON += $(timer)
SRCS_COMMON += $(getch)

include ../mpcommon.mak

mplayer-rc.o: mplayer.rc
	$(WINDRES) -o $@ $<