Mercurial > mplayer.hg
annotate libdvdread/Makefile @ 20732:411880b516d4
r20650 inverted the gtk1 check before setting charset, this
disabling all charset conversions.
Fix to always use UTF-8 as default now.
author | reimar |
---|---|
date | Tue, 07 Nov 2006 17:21:34 +0000 |
parents | 6cf79142b5a7 |
children | 11731a2cbc11 |
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 | |
21 ifeq ($(OPTFLAGS),) | |
16713 | 22 OPTFLAGS = -mcpu=pentium -march=pentium -O4 |
7031 | 23 else |
16713 | 24 OPTFLAGS += -DHAVE_MPLAYER |
7031 | 25 endif |
26 | |
20613 | 27 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
|
28 -DHAVE_DVDCSS_DVDCSS_H -DSTDC_HEADERS -DHAVE_LIMITS_H \ |
20728
e12d41b21042
Always compile with -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 like upstream.
diego
parents:
20615
diff
changeset
|
29 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 |
17187
e2b0c2841643
libdvdread configure script defines __DARWIN__ on darwin to trigger
diego
parents:
16714
diff
changeset
|
30 |
7031 | 31 .c.o: |
32 $(CC) $(CFLAGS) -c -o $@ $< | |
33 | |
16713 | 34 all: $(LIB).a |
7031 | 35 |
36 $(LIB).a: $(OBJS) | |
37 $(AR) rc $(LIB).a $(OBJS) | |
12632 | 38 $(RANLIB) $(LIB).a |
7031 | 39 |
40 clean: | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17187
diff
changeset
|
41 rm -f *.o *.a *~ *.so |
7031 | 42 |
43 distclean: clean | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17187
diff
changeset
|
44 rm -f .depend |
7031 | 45 |
46 dep: depend | |
47 | |
18483
42e57ea2b91f
Make depend targets consistent: Remove redirection through .depend target.
diego
parents:
18481
diff
changeset
|
48 depend: |
7031 | 49 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
50 | |
51 # | |
52 # include dependency files if they exist | |
53 # | |
16713 | 54 ifneq ($(wildcard .depend),) |
55 include .depend | |
56 endif |