Mercurial > mplayer.hg
annotate osdep/Makefile @ 9802:abfe0bcd68bf
sync
author | nicolas |
---|---|
date | Wed, 02 Apr 2003 20:28:41 +0000 |
parents | 350b660ef93c |
children | e2134d2f18fb |
rev | line source |
---|---|
2444 | 1 |
2 include ../config.mak | |
3 | |
4 LIBNAME = libosdep.a | |
5 | |
9465
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
6 SRCS=getch2.c shmem.c strsep.c vsscanf.c scandir.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 | |
9465
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
14 ifeq ($(MACOSX),yes) |
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
15 SRCS += timer-macosx.c |
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
16 else |
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
17 SRCS += timer-lx.c |
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
18 endif |
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
19 |
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
20 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
|
21 |
9329 | 22 CFLAGS = $(OPTFLAGS) -I. -I.. $(EXTRA_INC) |
2444 | 23 # -I/usr/X11R6/include/ |
24 | |
25 .SUFFIXES: .c .o | |
26 | |
27 # .PHONY: all clean | |
28 | |
29 .c.o: | |
30 $(CC) -c $(CFLAGS) -o $@ $< | |
31 | |
32 $(LIBNAME): $(OBJS) | |
33 $(AR) r $(LIBNAME) $(OBJS) | |
34 | |
35 all: $(LIBNAME) | |
36 | |
37 clean: | |
38 rm -f *.o *.a *~ | |
39 | |
40 distclean: | |
41 rm -f Makefile.bak *.o *.a *~ .depend | |
42 | |
43 dep: depend | |
44 | |
45 depend: | |
46 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
47 | |
48 # | |
49 # include dependency files if they exist | |
50 # | |
51 ifneq ($(wildcard .depend),) | |
52 include .depend | |
53 endif |