Mercurial > mplayer.hg
annotate osdep/Makefile @ 13394:455a5056801f
New generic 'portable anymap' video output driver. It supports portable
pixmaps and graymaps in both raw and ASCII mode. Besides PPM and PGM, it
can also output PGMYUV files which are PGM files with the U and V plane
appended to the bottom of the Y image (bottom left and bottom right). All
files can be written to the current directory, to a specified output directory
or to multiple subdirectories if the filesystem can't handle the amount of
files in one directory anymore.
Note: This driver is not yet activated and will not be compiled and linked
to libvo. A separate patch will take care of that. This is just for adding
the file to the repository.
author | ivo |
---|---|
date | Mon, 20 Sep 2004 00:54:57 +0000 |
parents | 51d61721906b |
children | c0bde085511c |
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 \ |
7 # timer.c | |
2444 | 8 |
9 ifeq ($(TARGET_ARCH_X86),yes) | |
10 ifeq ($(TARGET_OS),Linux) | |
11 SRCS += lrmi.c vbelib.c | |
12 endif | |
13 endif | |
14 | |
9830 | 15 getch = getch2.c |
16 timer = timer-lx.c | |
10148
139b44930abc
Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents:
9983
diff
changeset
|
17 ifeq ($(TARGET_OS),Darwin) |
139b44930abc
Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents:
9983
diff
changeset
|
18 timer = timer-darwin.c |
9830 | 19 endif |
12706 | 20 ifeq ($(TARGET_OS),CYGWIN) |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
21 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
|
22 endif |
12706 | 23 ifeq ($(TARGET_OS),MINGW32) |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
24 timer = timer-win2.c |
9830 | 25 getch = getch2-win.c |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
26 SRCS += glob-win.c |
9830 | 27 endif |
28 SRCS += $(timer) | |
29 SRCS += $(getch) | |
9465
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
30 |
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
31 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
|
32 |
9329 | 33 CFLAGS = $(OPTFLAGS) -I. -I.. $(EXTRA_INC) |
2444 | 34 # -I/usr/X11R6/include/ |
35 | |
36 .SUFFIXES: .c .o | |
37 | |
38 # .PHONY: all clean | |
39 | |
40 .c.o: | |
41 $(CC) -c $(CFLAGS) -o $@ $< | |
42 | |
43 $(LIBNAME): $(OBJS) | |
44 $(AR) r $(LIBNAME) $(OBJS) | |
12632 | 45 $(RANLIB) $(LIBNAME) |
2444 | 46 |
47 all: $(LIBNAME) | |
48 | |
49 clean: | |
50 rm -f *.o *.a *~ | |
51 | |
52 distclean: | |
53 rm -f Makefile.bak *.o *.a *~ .depend | |
54 | |
55 dep: depend | |
56 | |
57 depend: | |
58 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
59 | |
60 # | |
61 # include dependency files if they exist | |
62 # | |
63 ifneq ($(wildcard .depend),) | |
64 include .depend | |
65 endif |