Mercurial > mplayer.hg
annotate osdep/Makefile @ 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>
author | nplourde |
---|---|
date | Wed, 10 Nov 2004 16:43:40 +0000 |
parents | c0bde085511c |
children | 578e8b4c3e7f |
rev | line source |
---|---|
2444 | 1 |
2 include ../config.mak | |
3 | |
4 LIBNAME = libosdep.a | |
5 | |
12646 | 6 SRCS= shmem.c strsep.c strl.c vsscanf.c scandir.c gettimeofday.c fseeko.c \ |
13612 | 7 swab.c |
12646 | 8 # timer.c |
2444 | 9 |
10 ifeq ($(TARGET_ARCH_X86),yes) | |
11 ifeq ($(TARGET_OS),Linux) | |
12 SRCS += lrmi.c vbelib.c | |
13 endif | |
14 endif | |
15 | |
9830 | 16 getch = getch2.c |
17 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
|
18 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
|
19 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
|
20 endif |
10148
139b44930abc
Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents:
9983
diff
changeset
|
21 ifeq ($(TARGET_OS),Darwin) |
139b44930abc
Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents:
9983
diff
changeset
|
22 timer = timer-darwin.c |
9830 | 23 endif |
12706 | 24 ifeq ($(TARGET_OS),CYGWIN) |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
25 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
|
26 endif |
12706 | 27 ifeq ($(TARGET_OS),MINGW32) |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
28 timer = timer-win2.c |
9830 | 29 getch = getch2-win.c |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
30 SRCS += glob-win.c |
9830 | 31 endif |
32 SRCS += $(timer) | |
33 SRCS += $(getch) | |
9465
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
34 |
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
35 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
|
36 |
9329 | 37 CFLAGS = $(OPTFLAGS) -I. -I.. $(EXTRA_INC) |
2444 | 38 # -I/usr/X11R6/include/ |
39 | |
40 .SUFFIXES: .c .o | |
41 | |
42 # .PHONY: all clean | |
43 | |
44 .c.o: | |
45 $(CC) -c $(CFLAGS) -o $@ $< | |
46 | |
47 $(LIBNAME): $(OBJS) | |
48 $(AR) r $(LIBNAME) $(OBJS) | |
12632 | 49 $(RANLIB) $(LIBNAME) |
2444 | 50 |
51 all: $(LIBNAME) | |
52 | |
53 clean: | |
54 rm -f *.o *.a *~ | |
55 | |
56 distclean: | |
57 rm -f Makefile.bak *.o *.a *~ .depend | |
58 | |
59 dep: depend | |
60 | |
61 depend: | |
62 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
63 | |
64 # | |
65 # include dependency files if they exist | |
66 # | |
67 ifneq ($(wildcard .depend),) | |
68 include .depend | |
69 endif |