7031
|
1
|
|
2 ifneq ($(wildcard ../config.mak),)
|
|
3 include ../config.mak
|
|
4 endif
|
|
5
|
15873
|
6 SRCS = css.c \
|
|
7 device.c \
|
|
8 dvd_input.c \
|
|
9 dvd_reader.c \
|
|
10 dvd_udf.c \
|
|
11 error.c \
|
|
12 ifo_print.c \
|
|
13 ifo_read.c \
|
|
14 ioctl.c \
|
|
15 libdvdcss.c \
|
|
16 nav_print.c \
|
|
17 nav_read.c \
|
15874
|
18 md5.c \
|
7031
|
19
|
|
20 #bsdi_ioctl.c
|
|
21
|
|
22 OBJS = $(SRCS:.c=.o)
|
|
23
|
|
24 LIB=libmpdvdkit
|
|
25
|
|
26 .SUFFIXES: .c .o
|
|
27
|
|
28 ifeq ($(OPTFLAGS),)
|
|
29 OPTFLAGS = -mcpu=pentium -march=pentium -O4
|
|
30 else
|
|
31 OPTFLAGS += -DHAVE_MPLAYER
|
|
32 endif
|
|
33
|
|
34 # \ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
|
35
|
|
36 # -funroll-loops removed, triggered gcc 3.0.4 (3.x?) bug
|
|
37 CFLAGS= -I. $(OPTFLAGS) $(EXTRA_INC)\
|
15874
|
38 -DSYS_LINUX -D__USE_UNIX98 -D_REENTRANT -D_GNU_SOURCE \
|
|
39 -DHAVE_DVDCSS_DVDCSS_H -DSTDC_HEADERS
|
7031
|
40
|
|
41 .c.o:
|
|
42 $(CC) $(CFLAGS) -c -o $@ $<
|
|
43
|
|
44 all: $(LIB).a
|
|
45 default: $(LIB).a
|
|
46
|
|
47 $(LIB).a: $(OBJS)
|
|
48 $(AR) rc $(LIB).a $(OBJS)
|
12632
|
49 $(RANLIB) $(LIB).a
|
7031
|
50
|
|
51 $(LIB).so: $(OBJS)
|
|
52 $(CC) -o $(LIB).so -shared -rdynamic $(OBJS)
|
|
53
|
|
54 clean:
|
|
55 rm -f $(OBJS) $(LIB).a $(LIB).so .depend
|
|
56
|
|
57 distclean: clean
|
|
58
|
|
59 dep: depend
|
|
60
|
|
61 depend: .depend
|
|
62
|
|
63 .depend: Makefile config.h
|
|
64 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
65
|
|
66 #
|
|
67 # include dependency files if they exist
|
|
68 #
|
|
69 ifneq ($(wildcard .depend),)
|
|
70 include .depend
|
|
71 endif
|