Mercurial > mplayer.hg
annotate osdep/Makefile @ 11330:a974c00c779d
Removed temporary .cpp file used during the Matroska test. Updated the libebml and libmatroska requirements to at least v0.6.0 for both. There have been changes in the lacing code, and users WILL come and complain why mplayer, linked against older versions, will have issues playing newer files.
author | mosu |
---|---|
date | Thu, 30 Oct 2003 14:57:06 +0000 |
parents | 139b44930abc |
children | ab3590ad2101 |
rev | line source |
---|---|
2444 | 1 |
2 include ../config.mak | |
3 | |
4 LIBNAME = libosdep.a | |
5 | |
9830 | 6 SRCS= shmem.c strsep.c vsscanf.c scandir.c gettimeofday.c # timer.c |
2444 | 7 |
8 ifeq ($(TARGET_ARCH_X86),yes) | |
9 ifeq ($(TARGET_OS),Linux) | |
10 SRCS += lrmi.c vbelib.c | |
11 endif | |
12 endif | |
13 | |
9830 | 14 getch = getch2.c |
15 timer = timer-lx.c | |
10148
139b44930abc
Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents:
9983
diff
changeset
|
16 ifeq ($(TARGET_OS),Darwin) |
139b44930abc
Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents:
9983
diff
changeset
|
17 timer = timer-darwin.c |
9830 | 18 endif |
19 ifeq ($(TARGET_CYGWIN),yes) | |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
20 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
|
21 endif |
9830 | 22 ifeq ($(TARGET_MINGW32),yes) |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
23 timer = timer-win2.c |
9830 | 24 getch = getch2-win.c |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
25 SRCS += glob-win.c |
9830 | 26 endif |
27 SRCS += $(timer) | |
28 SRCS += $(getch) | |
9465
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
29 |
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
30 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
|
31 |
9329 | 32 CFLAGS = $(OPTFLAGS) -I. -I.. $(EXTRA_INC) |
2444 | 33 # -I/usr/X11R6/include/ |
34 | |
35 .SUFFIXES: .c .o | |
36 | |
37 # .PHONY: all clean | |
38 | |
39 .c.o: | |
40 $(CC) -c $(CFLAGS) -o $@ $< | |
41 | |
42 $(LIBNAME): $(OBJS) | |
43 $(AR) r $(LIBNAME) $(OBJS) | |
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 |