Mercurial > mplayer.hg
annotate 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 |
rev | line source |
---|---|
2444 | 1 |
2 include ../config.mak | |
3 | |
4 LIBNAME = libosdep.a | |
5 | |
17943
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
6 SRCS= shmem.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
7 strsep.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
8 strl.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
9 vsscanf.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
10 scandir.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
11 gettimeofday.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
12 fseeko.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
13 swab.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
14 setenv.c \ |
21187
d9cedf7b8069
added mmap_anon to osdep lib. Used in loader for now
nplourde
parents:
21080
diff
changeset
|
15 mmap_anon.c \ |
17943
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
16 # timer.c \ |
2444 | 17 |
9830 | 18 getch = getch2.c |
19 timer = timer-lx.c | |
13909
07dadc3066f3
add support for macosx finder argument support (let you bundle mplayer to be a finder compliant .app) patch by Chris Roccati <roccati@pobox.com>
nplourde
parents:
13612
diff
changeset
|
20 ifeq ($(MACOSX_FINDER_SUPPORT),yes) |
07dadc3066f3
add support for macosx finder argument support (let you bundle mplayer to be a finder compliant .app) patch by Chris Roccati <roccati@pobox.com>
nplourde
parents:
13612
diff
changeset
|
21 SRCS += macosx_finder_args.c |
07dadc3066f3
add support for macosx finder argument support (let you bundle mplayer to be a finder compliant .app) patch by Chris Roccati <roccati@pobox.com>
nplourde
parents:
13612
diff
changeset
|
22 endif |
21189
40bb3d20a10b
Move osdep/mplayer.rc handling to the osdep Makefile.
diego
parents:
21187
diff
changeset
|
23 ifeq ($(TARGET_WIN32),yes) |
40bb3d20a10b
Move osdep/mplayer.rc handling to the osdep Makefile.
diego
parents:
21187
diff
changeset
|
24 SRCS += osdep/mplayer-rc.c |
40bb3d20a10b
Move osdep/mplayer.rc handling to the osdep Makefile.
diego
parents:
21187
diff
changeset
|
25 endif |
10148
139b44930abc
Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents:
9983
diff
changeset
|
26 ifeq ($(TARGET_OS),Darwin) |
139b44930abc
Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents:
9983
diff
changeset
|
27 timer = timer-darwin.c |
9830 | 28 endif |
12706 | 29 ifeq ($(TARGET_OS),CYGWIN) |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
30 timer = timer-win2.c |
9465
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
31 endif |
12706 | 32 ifeq ($(TARGET_OS),MINGW32) |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
33 timer = timer-win2.c |
9830 | 34 getch = getch2-win.c |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
35 SRCS += glob-win.c |
9830 | 36 endif |
37 SRCS += $(timer) | |
38 SRCS += $(getch) | |
9465
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
39 |
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
40 OBJS=$(SRCS:.c=.o) |
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
41 |
19420
4f71ed7cb512
Move all internal -I parameters to the front of CFLAGS to avoid using external
diego
parents:
19037
diff
changeset
|
42 CFLAGS = -I. -I.. $(OPTFLAGS) |
2444 | 43 # -I/usr/X11R6/include/ |
44 | |
45 .SUFFIXES: .c .o | |
46 | |
47 # .PHONY: all clean | |
48 | |
49 .c.o: | |
50 $(CC) -c $(CFLAGS) -o $@ $< | |
51 | |
21189
40bb3d20a10b
Move osdep/mplayer.rc handling to the osdep Makefile.
diego
parents:
21187
diff
changeset
|
52 mplayer-rc.o: mplayer.rc |
40bb3d20a10b
Move osdep/mplayer.rc handling to the osdep Makefile.
diego
parents:
21187
diff
changeset
|
53 windres -o $@ $< |
40bb3d20a10b
Move osdep/mplayer.rc handling to the osdep Makefile.
diego
parents:
21187
diff
changeset
|
54 |
2444 | 55 $(LIBNAME): $(OBJS) |
56 $(AR) r $(LIBNAME) $(OBJS) | |
12632 | 57 $(RANLIB) $(LIBNAME) |
2444 | 58 |
59 all: $(LIBNAME) | |
60 | |
61 clean: | |
62 rm -f *.o *.a *~ | |
63 | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17245
diff
changeset
|
64 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17245
diff
changeset
|
65 rm -f .depend |
2444 | 66 |
21080 | 67 dep depend: |
2444 | 68 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
69 | |
70 # | |
71 # include dependency files if they exist | |
72 # | |
73 ifneq ($(wildcard .depend),) | |
74 include .depend | |
75 endif |