comparison dvdread/Makefile @ 20981:22cb9d5f1e21

Rename libdvdread to dvdread. We really only include only the dvdread subdirectory of libdvdread. This will also allow getting rid of some local modifications.
author diego
date Sat, 18 Nov 2006 00:33:01 +0000
parents libdvdread/Makefile@e5f38c16da31
children 5f893a1f25f9
comparison
equal deleted inserted replaced
20980:70ca50bcc4a8 20981:22cb9d5f1e21
1
2 ifneq ($(wildcard ../config.mak),)
3 include ../config.mak
4 endif
5
6 SRCS = dvd_input.c \
7 dvd_reader.c \
8 dvd_udf.c \
9 ifo_print.c \
10 ifo_read.c \
11 nav_print.c \
12 nav_read.c \
13 md5.c \
14
15 OBJS = $(SRCS:.c=.o)
16
17 LIB=libdvdread
18
19 .SUFFIXES: .c .o
20
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)
25 CFLAGS += -I../libdvdcss -DHAVE_DVDCSS_DVDCSS_H
26 endif
27
28 .c.o:
29 $(CC) $(CFLAGS) -c -o $@ $<
30
31 all: $(LIB).a
32
33 $(LIB).a: $(OBJS)
34 $(AR) rc $(LIB).a $(OBJS)
35 $(RANLIB) $(LIB).a
36
37 clean:
38 rm -f *.o *.a *~ *.so
39
40 distclean: clean
41 rm -f .depend
42
43 dep: depend
44
45 depend:
46 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
47
48 #
49 # include dependency files if they exist
50 #
51 ifneq ($(wildcard .depend),)
52 include .depend
53 endif