Mercurial > mplayer.hg
annotate libmpdvdkit2/Makefile @ 18456:dbe929ff7920
some fixes for the VfW encoding section
patch by compn, tempn##@##twmi##.##rr##.##com
author | diego |
---|---|
date | Fri, 12 May 2006 17:04:47 +0000 |
parents | cddd588f8d8a |
children | d13175d249f2 |
rev | line source |
---|---|
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 |
16713 | 20 #bsdi_ioctl.c |
7031 | 21 |
22 OBJS = $(SRCS:.c=.o) | |
23 | |
24 LIB=libmpdvdkit | |
25 | |
26 .SUFFIXES: .c .o | |
27 | |
28 ifeq ($(OPTFLAGS),) | |
16713 | 29 OPTFLAGS = -mcpu=pentium -march=pentium -O4 |
7031 | 30 else |
16713 | 31 OPTFLAGS += -DHAVE_MPLAYER |
7031 | 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 \ |
16714
2ab52c9b72b9
Replace unconditional #defines by build system trickery.
diego
parents:
16713
diff
changeset
|
39 -DHAVE_DVDCSS_DVDCSS_H -DSTDC_HEADERS -DHAVE_LIMITS_H \ |
2ab52c9b72b9
Replace unconditional #defines by build system trickery.
diego
parents:
16713
diff
changeset
|
40 -DHAVE_ERRNO_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H \ |
2ab52c9b72b9
Replace unconditional #defines by build system trickery.
diego
parents:
16713
diff
changeset
|
41 |
2ab52c9b72b9
Replace unconditional #defines by build system trickery.
diego
parents:
16713
diff
changeset
|
42 ifeq ($(TARGET_OS),CYGWIN) |
2ab52c9b72b9
Replace unconditional #defines by build system trickery.
diego
parents:
16713
diff
changeset
|
43 CFLAGS+=-DSYS_CYGWIN |
2ab52c9b72b9
Replace unconditional #defines by build system trickery.
diego
parents:
16713
diff
changeset
|
44 endif |
7031 | 45 |
17187
e2b0c2841643
libdvdread configure script defines __DARWIN__ on darwin to trigger
diego
parents:
16714
diff
changeset
|
46 ifeq ($(TARGET_OS),Darwin) |
e2b0c2841643
libdvdread configure script defines __DARWIN__ on darwin to trigger
diego
parents:
16714
diff
changeset
|
47 CFLAGS+=-D__DARWIN__ |
e2b0c2841643
libdvdread configure script defines __DARWIN__ on darwin to trigger
diego
parents:
16714
diff
changeset
|
48 endif |
e2b0c2841643
libdvdread configure script defines __DARWIN__ on darwin to trigger
diego
parents:
16714
diff
changeset
|
49 |
7031 | 50 .c.o: |
51 $(CC) $(CFLAGS) -c -o $@ $< | |
52 | |
16713 | 53 all: $(LIB).a |
7031 | 54 default: $(LIB).a |
55 | |
56 $(LIB).a: $(OBJS) | |
57 $(AR) rc $(LIB).a $(OBJS) | |
12632 | 58 $(RANLIB) $(LIB).a |
7031 | 59 |
60 clean: | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17187
diff
changeset
|
61 rm -f *.o *.a *~ *.so |
7031 | 62 |
63 distclean: clean | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17187
diff
changeset
|
64 rm -f .depend |
7031 | 65 |
66 dep: depend | |
67 | |
68 depend: .depend | |
69 | |
70 .depend: Makefile config.h | |
71 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
72 | |
73 # | |
74 # include dependency files if they exist | |
75 # | |
16713 | 76 ifneq ($(wildcard .depend),) |
77 include .depend | |
78 endif |