annotate osdep/Makefile @ 21194:e85426c3beb4

all should be the first target.
author diego
date Sat, 25 Nov 2006 11:26:53 +0000
parents 1bcff3db7a7c
children 68df3b19a160
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
1
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
2 include ../config.mak
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
3
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
4 LIBNAME = libosdep.a
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
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 \
21187
d9cedf7b8069 added mmap_anon to osdep lib. Used in loader for now
nplourde
parents: 21080
diff changeset
15 mmap_anon.c \
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
16
9830
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
17 getch = getch2.c
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
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
21189
40bb3d20a10b Move osdep/mplayer.rc handling to the osdep Makefile.
diego
parents: 21187
diff changeset
22 ifeq ($(TARGET_WIN32),yes)
21192
1bcff3db7a7c 10l copy + paste typo
diego
parents: 21191
diff changeset
23 SRCS += mplayer-rc.c
21189
40bb3d20a10b Move osdep/mplayer.rc handling to the osdep Makefile.
diego
parents: 21187
diff changeset
24 endif
10148
139b44930abc Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents: 9983
diff changeset
25 ifeq ($(TARGET_OS),Darwin)
139b44930abc Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents: 9983
diff changeset
26 timer = timer-darwin.c
9830
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
27 endif
12706
51d61721906b mingw crosscompiling step 1
faust3
parents: 12646
diff changeset
28 ifeq ($(TARGET_OS),CYGWIN)
9983
14c92818ab75 alternative timer and glob emulation code for mingw32 port
faust3
parents: 9830
diff changeset
29 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
30 endif
12706
51d61721906b mingw crosscompiling step 1
faust3
parents: 12646
diff changeset
31 ifeq ($(TARGET_OS),MINGW32)
9983
14c92818ab75 alternative timer and glob emulation code for mingw32 port
faust3
parents: 9830
diff changeset
32 timer = timer-win2.c
9830
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
33 getch = getch2-win.c
9983
14c92818ab75 alternative timer and glob emulation code for mingw32 port
faust3
parents: 9830
diff changeset
34 SRCS += glob-win.c
9830
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
35 endif
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
36 SRCS += $(timer)
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
37 SRCS += $(getch)
9465
350b660ef93c precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents: 9380
diff changeset
38
350b660ef93c precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents: 9380
diff changeset
39 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
40
19420
4f71ed7cb512 Move all internal -I parameters to the front of CFLAGS to avoid using external
diego
parents: 19037
diff changeset
41 CFLAGS = -I. -I.. $(OPTFLAGS)
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
42
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
43 .SUFFIXES: .c .o
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
44
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
45 .c.o:
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
46 $(CC) -c $(CFLAGS) -o $@ $<
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
47
21194
e85426c3beb4 all should be the first target.
diego
parents: 21192
diff changeset
48 all: $(LIBNAME)
e85426c3beb4 all should be the first target.
diego
parents: 21192
diff changeset
49
21189
40bb3d20a10b Move osdep/mplayer.rc handling to the osdep Makefile.
diego
parents: 21187
diff changeset
50 mplayer-rc.o: mplayer.rc
40bb3d20a10b Move osdep/mplayer.rc handling to the osdep Makefile.
diego
parents: 21187
diff changeset
51 windres -o $@ $<
40bb3d20a10b Move osdep/mplayer.rc handling to the osdep Makefile.
diego
parents: 21187
diff changeset
52
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
53 $(LIBNAME): $(OBJS)
21191
932ad0594e86 Simplify LIBNAME target with $@ and $^.
diego
parents: 21190
diff changeset
54 $(AR) r $@ $^
932ad0594e86 Simplify LIBNAME target with $@ and $^.
diego
parents: 21190
diff changeset
55 $(RANLIB) $@
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
56
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
57 clean:
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
58 rm -f *.o *.a *~
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
59
17488
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 17245
diff changeset
60 distclean: clean
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 17245
diff changeset
61 rm -f .depend
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
62
21080
618d1857f4c4 Unify dep/depend targets.
diego
parents: 19420
diff changeset
63 dep depend:
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
64 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
65
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
66 #
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
67 # include dependency files if they exist
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
68 #
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
69 ifneq ($(wildcard .depend),)
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
70 include .depend
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
71 endif