Mercurial > mplayer.hg
comparison libdvdread/Makefile @ 20615:1a4fcea7ab53
libmpdvdkit2 --> libdvdread, it just contains libdvdread now.
author | diego |
---|---|
date | Fri, 03 Nov 2006 13:48:52 +0000 |
parents | libmpdvdkit2/Makefile@d56caf59d253 |
children | e12d41b21042 |
comparison
equal
deleted
inserted
replaced
20614:d56caf59d253 | 20615:1a4fcea7ab53 |
---|---|
1 | |
2 ifneq ($(wildcard ../config.mak),) | |
3 include ../config.mak | |
4 endif | |
5 | |
6 SRCS = dvd_input.c \ | |
7 dvd_reader.c \ | |
8 dvd_udf.c \ | |
9 ifo_print.c \ | |
10 ifo_read.c \ | |
11 nav_print.c \ | |
12 nav_read.c \ | |
13 md5.c \ | |
14 | |
15 OBJS = $(SRCS:.c=.o) | |
16 | |
17 LIB=libdvdread | |
18 | |
19 .SUFFIXES: .c .o | |
20 | |
21 ifeq ($(OPTFLAGS),) | |
22 OPTFLAGS = -mcpu=pentium -march=pentium -O4 | |
23 else | |
24 OPTFLAGS += -DHAVE_MPLAYER | |
25 endif | |
26 | |
27 # \ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 | |
28 | |
29 # -funroll-loops removed, triggered gcc 3.0.4 (3.x?) bug | |
30 CFLAGS= -I../libdvdcss -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE \ | |
31 -DHAVE_DVDCSS_DVDCSS_H -DSTDC_HEADERS -DHAVE_LIMITS_H \ | |
32 | |
33 .c.o: | |
34 $(CC) $(CFLAGS) -c -o $@ $< | |
35 | |
36 all: $(LIB).a | |
37 | |
38 $(LIB).a: $(OBJS) | |
39 $(AR) rc $(LIB).a $(OBJS) | |
40 $(RANLIB) $(LIB).a | |
41 | |
42 clean: | |
43 rm -f *.o *.a *~ *.so | |
44 | |
45 distclean: clean | |
46 rm -f .depend | |
47 | |
48 dep: depend | |
49 | |
50 depend: | |
51 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
52 | |
53 # | |
54 # include dependency files if they exist | |
55 # | |
56 ifneq ($(wildcard .depend),) | |
57 include .depend | |
58 endif |