comparison osdep/Makefile @ 21189:40bb3d20a10b

Move osdep/mplayer.rc handling to the osdep Makefile.
author diego
date Sat, 25 Nov 2006 09:49:18 +0000
parents d9cedf7b8069
children 1feb8af493d6
comparison
equal deleted inserted replaced
21188:4906844e35c8 21189:40bb3d20a10b
17 17
18 getch = getch2.c 18 getch = getch2.c
19 timer = timer-lx.c 19 timer = timer-lx.c
20 ifeq ($(MACOSX_FINDER_SUPPORT),yes) 20 ifeq ($(MACOSX_FINDER_SUPPORT),yes)
21 SRCS += macosx_finder_args.c 21 SRCS += macosx_finder_args.c
22 endif
23 ifeq ($(TARGET_WIN32),yes)
24 SRCS += osdep/mplayer-rc.c
22 endif 25 endif
23 ifeq ($(TARGET_OS),Darwin) 26 ifeq ($(TARGET_OS),Darwin)
24 timer = timer-darwin.c 27 timer = timer-darwin.c
25 endif 28 endif
26 ifeq ($(TARGET_OS),CYGWIN) 29 ifeq ($(TARGET_OS),CYGWIN)
44 # .PHONY: all clean 47 # .PHONY: all clean
45 48
46 .c.o: 49 .c.o:
47 $(CC) -c $(CFLAGS) -o $@ $< 50 $(CC) -c $(CFLAGS) -o $@ $<
48 51
52 mplayer-rc.o: mplayer.rc
53 windres -o $@ $<
54
49 $(LIBNAME): $(OBJS) 55 $(LIBNAME): $(OBJS)
50 $(AR) r $(LIBNAME) $(OBJS) 56 $(AR) r $(LIBNAME) $(OBJS)
51 $(RANLIB) $(LIBNAME) 57 $(RANLIB) $(LIBNAME)
52 58
53 all: $(LIBNAME) 59 all: $(LIBNAME)