Mercurial > mplayer.hg
annotate osdep/Makefile @ 17044:cb84dbc30d7b
When it comes to CD/DVD handling bsdi has a linux CD/DVD compatibility
library, use this to fix building on this (weird ;)) system.
patch by Steven M. Schultz sms __ at __ 2BSD __ dot __ COM
author | diego |
---|---|
date | Fri, 25 Nov 2005 02:06:47 +0000 |
parents | 578e8b4c3e7f |
children | 44c24de55f9d |
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 |
9830 | 10 getch = getch2.c |
11 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
|
12 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
|
13 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
|
14 endif |
10148
139b44930abc
Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents:
9983
diff
changeset
|
15 ifeq ($(TARGET_OS),Darwin) |
139b44930abc
Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents:
9983
diff
changeset
|
16 timer = timer-darwin.c |
9830 | 17 endif |
12706 | 18 ifeq ($(TARGET_OS),CYGWIN) |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
19 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
|
20 endif |
12706 | 21 ifeq ($(TARGET_OS),MINGW32) |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
22 timer = timer-win2.c |
9830 | 23 getch = getch2-win.c |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
24 SRCS += glob-win.c |
9830 | 25 endif |
26 SRCS += $(timer) | |
27 SRCS += $(getch) | |
9465
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
28 |
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
29 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
|
30 |
9329 | 31 CFLAGS = $(OPTFLAGS) -I. -I.. $(EXTRA_INC) |
2444 | 32 # -I/usr/X11R6/include/ |
33 | |
34 .SUFFIXES: .c .o | |
35 | |
36 # .PHONY: all clean | |
37 | |
38 .c.o: | |
39 $(CC) -c $(CFLAGS) -o $@ $< | |
40 | |
41 $(LIBNAME): $(OBJS) | |
42 $(AR) r $(LIBNAME) $(OBJS) | |
12632 | 43 $(RANLIB) $(LIBNAME) |
2444 | 44 |
45 all: $(LIBNAME) | |
46 | |
47 clean: | |
48 rm -f *.o *.a *~ | |
49 | |
50 distclean: | |
51 rm -f Makefile.bak *.o *.a *~ .depend | |
52 | |
53 dep: depend | |
54 | |
55 depend: | |
56 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
57 | |
58 # | |
59 # include dependency files if they exist | |
60 # | |
61 ifneq ($(wildcard .depend),) | |
62 include .depend | |
63 endif |