annotate libmpdvdkit2/Makefile @ 18339:7ad6ddbe4260

sync
author luran
date Sat, 29 Apr 2006 07:35:00 +0000
parents cddd588f8d8a
children d13175d249f2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
1
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
2 ifneq ($(wildcard ../config.mak),)
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
3 include ../config.mak
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
4 endif
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
5
15873
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
6 SRCS = css.c \
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
7 device.c \
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
8 dvd_input.c \
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
9 dvd_reader.c \
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
10 dvd_udf.c \
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
11 error.c \
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
12 ifo_print.c \
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
13 ifo_read.c \
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
14 ioctl.c \
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
15 libdvdcss.c \
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
16 nav_print.c \
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
17 nav_read.c \
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 15873
diff changeset
18 md5.c \
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
19
16713
117708385e35 whitespace cosmetics
diego
parents: 15874
diff changeset
20 #bsdi_ioctl.c
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
21
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
22 OBJS = $(SRCS:.c=.o)
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
23
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
24 LIB=libmpdvdkit
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
25
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
26 .SUFFIXES: .c .o
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
27
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
28 ifeq ($(OPTFLAGS),)
16713
117708385e35 whitespace cosmetics
diego
parents: 15874
diff changeset
29 OPTFLAGS = -mcpu=pentium -march=pentium -O4
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
30 else
16713
117708385e35 whitespace cosmetics
diego
parents: 15874
diff changeset
31 OPTFLAGS += -DHAVE_MPLAYER
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
32 endif
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
33
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
34 # \ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
35
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
36 # -funroll-loops removed, triggered gcc 3.0.4 (3.x?) bug
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
37 CFLAGS= -I. $(OPTFLAGS) $(EXTRA_INC)\
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 15873
diff changeset
38 -DSYS_LINUX -D__USE_UNIX98 -D_REENTRANT -D_GNU_SOURCE \
16714
2ab52c9b72b9 Replace unconditional #defines by build system trickery.
diego
parents: 16713
diff changeset
39 -DHAVE_DVDCSS_DVDCSS_H -DSTDC_HEADERS -DHAVE_LIMITS_H \
2ab52c9b72b9 Replace unconditional #defines by build system trickery.
diego
parents: 16713
diff changeset
40 -DHAVE_ERRNO_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H \
2ab52c9b72b9 Replace unconditional #defines by build system trickery.
diego
parents: 16713
diff changeset
41
2ab52c9b72b9 Replace unconditional #defines by build system trickery.
diego
parents: 16713
diff changeset
42 ifeq ($(TARGET_OS),CYGWIN)
2ab52c9b72b9 Replace unconditional #defines by build system trickery.
diego
parents: 16713
diff changeset
43 CFLAGS+=-DSYS_CYGWIN
2ab52c9b72b9 Replace unconditional #defines by build system trickery.
diego
parents: 16713
diff changeset
44 endif
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
45
17187
e2b0c2841643 libdvdread configure script defines __DARWIN__ on darwin to trigger
diego
parents: 16714
diff changeset
46 ifeq ($(TARGET_OS),Darwin)
e2b0c2841643 libdvdread configure script defines __DARWIN__ on darwin to trigger
diego
parents: 16714
diff changeset
47 CFLAGS+=-D__DARWIN__
e2b0c2841643 libdvdread configure script defines __DARWIN__ on darwin to trigger
diego
parents: 16714
diff changeset
48 endif
e2b0c2841643 libdvdread configure script defines __DARWIN__ on darwin to trigger
diego
parents: 16714
diff changeset
49
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
50 .c.o:
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
51 $(CC) $(CFLAGS) -c -o $@ $<
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
52
16713
117708385e35 whitespace cosmetics
diego
parents: 15874
diff changeset
53 all: $(LIB).a
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
54 default: $(LIB).a
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
55
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
56 $(LIB).a: $(OBJS)
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
57 $(AR) rc $(LIB).a $(OBJS)
12632
80973aa180a5 ranlib cleanup by Dan Christiansen
alex
parents: 8981
diff changeset
58 $(RANLIB) $(LIB).a
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
59
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
60 clean:
17488
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 17187
diff changeset
61 rm -f *.o *.a *~ *.so
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
62
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
63 distclean: clean
17488
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 17187
diff changeset
64 rm -f .depend
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
65
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
66 dep: depend
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
67
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
68 depend: .depend
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
69
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
70 .depend: Makefile config.h
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
71 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
72
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
73 #
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
74 # include dependency files if they exist
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
75 #
16713
117708385e35 whitespace cosmetics
diego
parents: 15874
diff changeset
76 ifneq ($(wildcard .depend),)
117708385e35 whitespace cosmetics
diego
parents: 15874
diff changeset
77 include .depend
117708385e35 whitespace cosmetics
diego
parents: 15874
diff changeset
78 endif