Mercurial > mplayer.hg
annotate osdep/Makefile @ 21080:618d1857f4c4
Unify dep/depend targets.
author | diego |
---|---|
date | Mon, 20 Nov 2006 11:18:01 +0000 |
parents | 4f71ed7cb512 |
children | d9cedf7b8069 |
rev | line source |
---|---|
2444 | 1 |
2 include ../config.mak | |
3 | |
4 LIBNAME = libosdep.a | |
5 | |
17943
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
6 SRCS= shmem.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
7 strsep.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
8 strl.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
9 vsscanf.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
10 scandir.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
11 gettimeofday.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
12 fseeko.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
13 swab.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
14 setenv.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
15 # timer.c \ |
2444 | 16 |
9830 | 17 getch = getch2.c |
18 timer = timer-lx.c | |
13909
07dadc3066f3
add support for macosx finder argument support (let you bundle mplayer to be a finder compliant .app) patch by Chris Roccati <roccati@pobox.com>
nplourde
parents:
13612
diff
changeset
|
19 ifeq ($(MACOSX_FINDER_SUPPORT),yes) |
07dadc3066f3
add support for macosx finder argument support (let you bundle mplayer to be a finder compliant .app) patch by Chris Roccati <roccati@pobox.com>
nplourde
parents:
13612
diff
changeset
|
20 SRCS += macosx_finder_args.c |
07dadc3066f3
add support for macosx finder argument support (let you bundle mplayer to be a finder compliant .app) patch by Chris Roccati <roccati@pobox.com>
nplourde
parents:
13612
diff
changeset
|
21 endif |
10148
139b44930abc
Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents:
9983
diff
changeset
|
22 ifeq ($(TARGET_OS),Darwin) |
139b44930abc
Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents:
9983
diff
changeset
|
23 timer = timer-darwin.c |
9830 | 24 endif |
12706 | 25 ifeq ($(TARGET_OS),CYGWIN) |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
26 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
|
27 endif |
12706 | 28 ifeq ($(TARGET_OS),MINGW32) |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
29 timer = timer-win2.c |
9830 | 30 getch = getch2-win.c |
9983
14c92818ab75
alternative timer and glob emulation code for mingw32 port
faust3
parents:
9830
diff
changeset
|
31 SRCS += glob-win.c |
9830 | 32 endif |
33 SRCS += $(timer) | |
34 SRCS += $(getch) | |
9465
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
35 |
350b660ef93c
precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents:
9380
diff
changeset
|
36 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
|
37 |
19420
4f71ed7cb512
Move all internal -I parameters to the front of CFLAGS to avoid using external
diego
parents:
19037
diff
changeset
|
38 CFLAGS = -I. -I.. $(OPTFLAGS) |
2444 | 39 # -I/usr/X11R6/include/ |
40 | |
41 .SUFFIXES: .c .o | |
42 | |
43 # .PHONY: all clean | |
44 | |
45 .c.o: | |
46 $(CC) -c $(CFLAGS) -o $@ $< | |
47 | |
48 $(LIBNAME): $(OBJS) | |
49 $(AR) r $(LIBNAME) $(OBJS) | |
12632 | 50 $(RANLIB) $(LIBNAME) |
2444 | 51 |
52 all: $(LIBNAME) | |
53 | |
54 clean: | |
55 rm -f *.o *.a *~ | |
56 | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17245
diff
changeset
|
57 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17245
diff
changeset
|
58 rm -f .depend |
2444 | 59 |
21080 | 60 dep depend: |
2444 | 61 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
62 | |
63 # | |
64 # include dependency files if they exist | |
65 # | |
66 ifneq ($(wildcard .depend),) | |
67 include .depend | |
68 endif |