Mercurial > mplayer.hg
annotate osdep/Makefile @ 10077:c1c35a94f695
Correct dumping hint (vc dummy faster than null).
author | ranma |
---|---|
date | Mon, 05 May 2003 23:43:30 +0000 |
parents | 14c92818ab75 |
children | 139b44930abc |
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 | |
9465
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
16 ifeq ($(MACOSX),yes) |
9830 | 17 timer = timer-macosx.c |
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 |