Mercurial > mplayer.hg
annotate osdep/Makefile @ 13828:b4ad5f0b550d
Fix erroneus extern declarations, fix wrong signedness of some vars
author | atmos4 |
---|---|
date | Sun, 31 Oct 2004 18:01:14 +0000 |
parents | c0bde085511c |
children | 07dadc3066f3 |
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 | |
10148
139b44930abc
Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents:
9983
diff
changeset
|
18 ifeq ($(TARGET_OS),Darwin) |
139b44930abc
Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents:
9983
diff
changeset
|
19 timer = timer-darwin.c |
9830 | 20 endif |
12706 | 21 ifeq ($(TARGET_OS),CYGWIN) |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
22 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
|
23 endif |
12706 | 24 ifeq ($(TARGET_OS),MINGW32) |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
25 timer = timer-win2.c |
9830 | 26 getch = getch2-win.c |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
27 SRCS += glob-win.c |
9830 | 28 endif |
29 SRCS += $(timer) | |
30 SRCS += $(getch) | |
9465
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
31 |
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
32 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
|
33 |
9329 | 34 CFLAGS = $(OPTFLAGS) -I. -I.. $(EXTRA_INC) |
2444 | 35 # -I/usr/X11R6/include/ |
36 | |
37 .SUFFIXES: .c .o | |
38 | |
39 # .PHONY: all clean | |
40 | |
41 .c.o: | |
42 $(CC) -c $(CFLAGS) -o $@ $< | |
43 | |
44 $(LIBNAME): $(OBJS) | |
45 $(AR) r $(LIBNAME) $(OBJS) | |
12632 | 46 $(RANLIB) $(LIBNAME) |
2444 | 47 |
48 all: $(LIBNAME) | |
49 | |
50 clean: | |
51 rm -f *.o *.a *~ | |
52 | |
53 distclean: | |
54 rm -f Makefile.bak *.o *.a *~ .depend | |
55 | |
56 dep: depend | |
57 | |
58 depend: | |
59 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
60 | |
61 # | |
62 # include dependency files if they exist | |
63 # | |
64 ifneq ($(wildcard .depend),) | |
65 include .depend | |
66 endif |