Mercurial > mplayer.hg
comparison dvdread/Makefile @ 21259:92b122592776
Merge common parts of all Makefiles into one file included by all.
author | diego |
---|---|
date | Sun, 26 Nov 2006 18:12:36 +0000 |
parents | ff1ac890c40a |
children | 8bcff5c7e387 |
comparison
equal
deleted
inserted
replaced
21258:ed01090d1192 | 21259:92b122592776 |
---|---|
7 ifo_read.c \ | 7 ifo_read.c \ |
8 nav_print.c \ | 8 nav_print.c \ |
9 nav_read.c \ | 9 nav_read.c \ |
10 md5.c \ | 10 md5.c \ |
11 | 11 |
12 OBJS = $(SRCS:.c=.o) | |
13 | |
14 LIBNAME = libdvdread.a | 12 LIBNAME = libdvdread.a |
15 | 13 |
16 .SUFFIXES: .c .o | 14 CFLAGS= -D__USE_UNIX98 -D_GNU_SOURCE -DSTDC_HEADERS \ |
17 | |
18 CFLAGS= -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE -DSTDC_HEADERS \ | |
19 -DHAVE_LIMITS_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 | 15 -DHAVE_LIMITS_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 |
20 | 16 |
21 ifeq ($(DVDCSS_INTERNAL),yes) | 17 ifeq ($(DVDCSS_INTERNAL),yes) |
22 CFLAGS := -I../libdvdcss -DHAVE_DVDCSS_DVDCSS_H $(CFLAGS) | 18 CFLAGS += -I../libdvdcss -DHAVE_DVDCSS_DVDCSS_H |
23 endif | 19 endif |
24 | 20 |
25 .c.o: | 21 include ../mpcommon.mak |
26 $(CC) $(CFLAGS) -c -o $@ $< | |
27 | |
28 all: $(LIBNAME) | |
29 | |
30 $(LIBNAME): $(OBJS) | |
31 $(AR) rc $@ $^ | |
32 $(RANLIB) $@ | |
33 | |
34 clean: | |
35 rm -f *.o *.a *~ *.so | |
36 | |
37 distclean: clean | |
38 rm -f .depend | |
39 | |
40 dep depend: | |
41 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
42 | |
43 ifneq ($(wildcard .depend),) | |
44 include .depend | |
45 endif |