Mercurial > mplayer.hg
annotate libmpdvdkit2/Makefile @ 20613:e68f255d7d64
Move libdvdcss into its own subdirectory.
author | diego |
---|---|
date | Fri, 03 Nov 2006 12:25:56 +0000 |
parents | 784b78f968a2 |
children | d56caf59d253 |
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 |
16713 | 15 #bsdi_ioctl.c |
7031 | 16 |
17 OBJS = $(SRCS:.c=.o) | |
18 | |
19 LIB=libmpdvdkit | |
20 | |
21 .SUFFIXES: .c .o | |
22 | |
23 ifeq ($(OPTFLAGS),) | |
16713 | 24 OPTFLAGS = -mcpu=pentium -march=pentium -O4 |
7031 | 25 else |
16713 | 26 OPTFLAGS += -DHAVE_MPLAYER |
7031 | 27 endif |
28 | |
29 # \ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 | |
30 | |
31 # -funroll-loops removed, triggered gcc 3.0.4 (3.x?) bug | |
20613 | 32 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
|
33 -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
|
34 |
7031 | 35 .c.o: |
36 $(CC) $(CFLAGS) -c -o $@ $< | |
37 | |
16713 | 38 all: $(LIB).a |
7031 | 39 |
40 $(LIB).a: $(OBJS) | |
41 $(AR) rc $(LIB).a $(OBJS) | |
12632 | 42 $(RANLIB) $(LIB).a |
7031 | 43 |
44 clean: | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17187
diff
changeset
|
45 rm -f *.o *.a *~ *.so |
7031 | 46 |
47 distclean: clean | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17187
diff
changeset
|
48 rm -f .depend |
7031 | 49 |
50 dep: depend | |
51 | |
18483
42e57ea2b91f
Make depend targets consistent: Remove redirection through .depend target.
diego
parents:
18481
diff
changeset
|
52 depend: |
7031 | 53 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
54 | |
55 # | |
56 # include dependency files if they exist | |
57 # | |
16713 | 58 ifneq ($(wildcard .depend),) |
59 include .depend | |
60 endif |