annotate libdvdread/Makefile @ 20683:4f3e4ba365f8

Missing <option> tag
author torinthiel
date Sun, 05 Nov 2006 15:06:02 +0000
parents 1a4fcea7ab53
children e12d41b21042
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
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents: 20612
diff changeset
6 SRCS = dvd_input.c \
15873
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
7 dvd_reader.c \
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
8 dvd_udf.c \
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
9 ifo_print.c \
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
10 ifo_read.c \
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
11 nav_print.c \
276da0bb6207 Be more patch-friendly
aurel
parents: 12632
diff changeset
12 nav_read.c \
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 15873
diff changeset
13 md5.c \
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
14
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
15 OBJS = $(SRCS:.c=.o)
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
16
20615
1a4fcea7ab53 libmpdvdkit2 --> libdvdread, it just contains libdvdread now.
diego
parents: 20614
diff changeset
17 LIB=libdvdread
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
18
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
19 .SUFFIXES: .c .o
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
20
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
21 ifeq ($(OPTFLAGS),)
16713
117708385e35 whitespace cosmetics
diego
parents: 15874
diff changeset
22 OPTFLAGS = -mcpu=pentium -march=pentium -O4
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
23 else
16713
117708385e35 whitespace cosmetics
diego
parents: 15874
diff changeset
24 OPTFLAGS += -DHAVE_MPLAYER
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
25 endif
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
26
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
27 # \ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
28
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
29 # -funroll-loops removed, triggered gcc 3.0.4 (3.x?) bug
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents: 20612
diff changeset
30 CFLAGS= -I../libdvdcss -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE \
16714
2ab52c9b72b9 Replace unconditional #defines by build system trickery.
diego
parents: 16713
diff changeset
31 -DHAVE_DVDCSS_DVDCSS_H -DSTDC_HEADERS -DHAVE_LIMITS_H \
17187
e2b0c2841643 libdvdread configure script defines __DARWIN__ on darwin to trigger
diego
parents: 16714
diff changeset
32
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
33 .c.o:
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
34 $(CC) $(CFLAGS) -c -o $@ $<
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
35
16713
117708385e35 whitespace cosmetics
diego
parents: 15874
diff changeset
36 all: $(LIB).a
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
37
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
38 $(LIB).a: $(OBJS)
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
39 $(AR) rc $(LIB).a $(OBJS)
12632
80973aa180a5 ranlib cleanup by Dan Christiansen
alex
parents: 8981
diff changeset
40 $(RANLIB) $(LIB).a
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
41
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
42 clean:
17488
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 17187
diff changeset
43 rm -f *.o *.a *~ *.so
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
44
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
45 distclean: clean
17488
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 17187
diff changeset
46 rm -f .depend
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
47
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
48 dep: depend
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
49
18483
42e57ea2b91f Make depend targets consistent: Remove redirection through .depend target.
diego
parents: 18481
diff changeset
50 depend:
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
51 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
52
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
53 #
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
54 # include dependency files if they exist
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
55 #
16713
117708385e35 whitespace cosmetics
diego
parents: 15874
diff changeset
56 ifneq ($(wildcard .depend),)
117708385e35 whitespace cosmetics
diego
parents: 15874
diff changeset
57 include .depend
117708385e35 whitespace cosmetics
diego
parents: 15874
diff changeset
58 endif