Mercurial > mplayer.hg
annotate dvdread/Makefile @ 21056:d2d209f455fc
sync w/ r21026
author | gpoirier |
---|---|
date | Sun, 19 Nov 2006 17:55:56 +0000 |
parents | 5f893a1f25f9 |
children | 618d1857f4c4 |
rev | line source |
---|---|
7031 | 1 |
2 ifneq ($(wildcard ../config.mak),) | |
3 include ../config.mak | |
4 endif | |
5 | |
20613 | 6 SRCS = dvd_input.c \ |
15873 | 7 dvd_reader.c \ |
8 dvd_udf.c \ | |
9 ifo_print.c \ | |
10 ifo_read.c \ | |
11 nav_print.c \ | |
12 nav_read.c \ | |
15874 | 13 md5.c \ |
7031 | 14 |
15 OBJS = $(SRCS:.c=.o) | |
16 | |
20615
1a4fcea7ab53
libmpdvdkit2 --> libdvdread, it just contains libdvdread now.
diego
parents:
20614
diff
changeset
|
17 LIB=libdvdread |
7031 | 18 |
19 .SUFFIXES: .c .o | |
20 | |
20805 | 21 CFLAGS= -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE -DSTDC_HEADERS \ |
22 -DHAVE_LIMITS_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 | |
23 | |
24 ifeq ($(DVDCSS_INTERNAL),yes) | |
20982
5f893a1f25f9
Make sure to pick up internal dvdcss.h before a globally installed one.
diego
parents:
20981
diff
changeset
|
25 CFLAGS := -I../libdvdcss -DHAVE_DVDCSS_DVDCSS_H $(CFLAGS) |
20805 | 26 endif |
17187
e2b0c2841643
libdvdread configure script defines __DARWIN__ on darwin to trigger
diego
parents:
16714
diff
changeset
|
27 |
7031 | 28 .c.o: |
29 $(CC) $(CFLAGS) -c -o $@ $< | |
30 | |
16713 | 31 all: $(LIB).a |
7031 | 32 |
33 $(LIB).a: $(OBJS) | |
34 $(AR) rc $(LIB).a $(OBJS) | |
12632 | 35 $(RANLIB) $(LIB).a |
7031 | 36 |
37 clean: | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17187
diff
changeset
|
38 rm -f *.o *.a *~ *.so |
7031 | 39 |
40 distclean: clean | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17187
diff
changeset
|
41 rm -f .depend |
7031 | 42 |
43 dep: depend | |
44 | |
18483
42e57ea2b91f
Make depend targets consistent: Remove redirection through .depend target.
diego
parents:
18481
diff
changeset
|
45 depend: |
7031 | 46 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
47 | |
48 # | |
49 # include dependency files if they exist | |
50 # | |
16713 | 51 ifneq ($(wildcard .depend),) |
52 include .depend | |
53 endif |