annotate osdep/Makefile @ 15694:22024992b231

10l for me
author henry
date Wed, 08 Jun 2005 07:05:49 +0000
parents 07dadc3066f3
children 578e8b4c3e7f
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
12646
9a495bdc3a1e string handling security fixes
diego
parents: 12632
diff changeset
6 SRCS= shmem.c strsep.c strl.c vsscanf.c scandir.c gettimeofday.c fseeko.c \
13612
c0bde085511c Zeta OS support, mostly working.
reimar
parents: 12706
diff changeset
7 swab.c
12646
9a495bdc3a1e string handling security fixes
diego
parents: 12632
diff changeset
8 # timer.c
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
9
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
10 ifeq ($(TARGET_ARCH_X86),yes)
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
11 ifeq ($(TARGET_OS),Linux)
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
12 SRCS += lrmi.c vbelib.c
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
13 endif
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
14 endif
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
15
9830
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
16 getch = getch2.c
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
17 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
18 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
19 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
20 endif
10148
139b44930abc Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents: 9983
diff changeset
21 ifeq ($(TARGET_OS),Darwin)
139b44930abc Precise timer for Darwin (it's more accurate than timer-macosx.c)
alex
parents: 9983
diff changeset
22 timer = timer-darwin.c
9830
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
23 endif
12706
51d61721906b mingw crosscompiling step 1
faust3
parents: 12646
diff changeset
24 ifeq ($(TARGET_OS),CYGWIN)
9983
14c92818ab75 alternative timer and glob emulation code for mingw32 port
faust3
parents: 9830
diff changeset
25 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
26 endif
12706
51d61721906b mingw crosscompiling step 1
faust3
parents: 12646
diff changeset
27 ifeq ($(TARGET_OS),MINGW32)
9983
14c92818ab75 alternative timer and glob emulation code for mingw32 port
faust3
parents: 9830
diff changeset
28 timer = timer-win2.c
9830
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
29 getch = getch2-win.c
9983
14c92818ab75 alternative timer and glob emulation code for mingw32 port
faust3
parents: 9830
diff changeset
30 SRCS += glob-win.c
9830
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
31 endif
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
32 SRCS += $(timer)
e2134d2f18fb enable timer-win and getch2-win for mingw32
faust3
parents: 9465
diff changeset
33 SRCS += $(getch)
9465
350b660ef93c precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents: 9380
diff changeset
34
350b660ef93c precise macosx timer by Dan Christiansen <danchr@daimi.au.dk> and 10l fix by me
alex
parents: 9380
diff changeset
35 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
36
9329
113095b8258b required for i18n+-lintl (found by Nexus)
arpi
parents: 8290
diff changeset
37 CFLAGS = $(OPTFLAGS) -I. -I.. $(EXTRA_INC)
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
38 # -I/usr/X11R6/include/
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
39
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
40 .SUFFIXES: .c .o
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
41
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
42 # .PHONY: all clean
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
43
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
44 .c.o:
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
45 $(CC) -c $(CFLAGS) -o $@ $<
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
46
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
47 $(LIBNAME): $(OBJS)
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
48 $(AR) r $(LIBNAME) $(OBJS)
12632
80973aa180a5 ranlib cleanup by Dan Christiansen
alex
parents: 12071
diff changeset
49 $(RANLIB) $(LIBNAME)
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
50
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
51 all: $(LIBNAME)
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
52
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
53 clean:
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
54 rm -f *.o *.a *~
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
55
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
56 distclean:
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
57 rm -f Makefile.bak *.o *.a *~ .depend
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
58
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
59 dep: depend
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
60
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
61 depend:
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
62 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
63
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
64 #
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
65 # include dependency files if they exist
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
66 #
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
67 ifneq ($(wildcard .depend),)
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
68 include .depend
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
69 endif