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 \
|
7031
|
18
|
|
19 #bsdi_ioctl.c
|
|
20
|
|
21 OBJS = $(SRCS:.c=.o)
|
|
22
|
|
23 LIB=libmpdvdkit
|
|
24
|
|
25 .SUFFIXES: .c .o
|
|
26
|
|
27 ifeq ($(OPTFLAGS),)
|
|
28 OPTFLAGS = -mcpu=pentium -march=pentium -O4
|
|
29 else
|
|
30 OPTFLAGS += -DHAVE_MPLAYER
|
|
31 endif
|
|
32
|
|
33 # \ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
|
34
|
|
35 # -funroll-loops removed, triggered gcc 3.0.4 (3.x?) bug
|
|
36 CFLAGS= -I. $(OPTFLAGS) $(EXTRA_INC)\
|
8981
|
37 -DSYS_LINUX -D__USE_UNIX98 -D_REENTRANT -D_GNU_SOURCE
|
7031
|
38
|
|
39 .c.o:
|
|
40 $(CC) $(CFLAGS) -c -o $@ $<
|
|
41
|
|
42 all: $(LIB).a
|
|
43 default: $(LIB).a
|
|
44
|
|
45 $(LIB).a: $(OBJS)
|
|
46 $(AR) rc $(LIB).a $(OBJS)
|
12632
|
47 $(RANLIB) $(LIB).a
|
7031
|
48
|
|
49 $(LIB).so: $(OBJS)
|
|
50 $(CC) -o $(LIB).so -shared -rdynamic $(OBJS)
|
|
51
|
|
52 clean:
|
|
53 rm -f $(OBJS) $(LIB).a $(LIB).so .depend
|
|
54
|
|
55 distclean: clean
|
|
56
|
|
57 dep: depend
|
|
58
|
|
59 depend: .depend
|
|
60
|
|
61 .depend: Makefile config.h
|
|
62 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
63
|
|
64 #
|
|
65 # include dependency files if they exist
|
|
66 #
|
|
67 ifneq ($(wildcard .depend),)
|
|
68 include .depend
|
|
69 endif
|