Mercurial > mplayer.hg
annotate osdep/Makefile @ 9881:60d1ccf22469
automatic svgalib_helper detection
author | alex |
---|---|
date | Tue, 08 Apr 2003 17:11:19 +0000 |
parents | e2134d2f18fb |
children | 14c92818ab75 |
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) | |
20 timer = timer-win.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) |
23 timer = timer-win.c | |
24 getch = getch2-win.c | |
25 endif | |
26 SRCS += $(timer) | |
27 SRCS += $(getch) | |
9465
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
28 |
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
29 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
|
30 |
9329 | 31 CFLAGS = $(OPTFLAGS) -I. -I.. $(EXTRA_INC) |
2444 | 32 # -I/usr/X11R6/include/ |
33 | |
34 .SUFFIXES: .c .o | |
35 | |
36 # .PHONY: all clean | |
37 | |
38 .c.o: | |
39 $(CC) -c $(CFLAGS) -o $@ $< | |
40 | |
41 $(LIBNAME): $(OBJS) | |
42 $(AR) r $(LIBNAME) $(OBJS) | |
43 | |
44 all: $(LIBNAME) | |
45 | |
46 clean: | |
47 rm -f *.o *.a *~ | |
48 | |
49 distclean: | |
50 rm -f Makefile.bak *.o *.a *~ .depend | |
51 | |
52 dep: depend | |
53 | |
54 depend: | |
55 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
56 | |
57 # | |
58 # include dependency files if they exist | |
59 # | |
60 ifneq ($(wildcard .depend),) | |
61 include .depend | |
62 endif |