Mercurial > mplayer.hg
annotate libmpdvdkit2/Makefile @ 17917:a7c7acb53f87
1.1232: put options in alphabetical order
1.1231: New option: -ignore-start
author | kraymer |
---|---|
date | Wed, 22 Mar 2006 17:06:34 +0000 |
parents | ce1ba8fd57e7 |
children | cddd588f8d8a |
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 $(LIB).so: $(OBJS) | |
61 $(CC) -o $(LIB).so -shared -rdynamic $(OBJS) | |
62 | |
63 clean: | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17187
diff
changeset
|
64 rm -f *.o *.a *~ *.so |
7031 | 65 |
66 distclean: clean | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17187
diff
changeset
|
67 rm -f .depend |
7031 | 68 |
69 dep: depend | |
70 | |
71 depend: .depend | |
72 | |
73 .depend: Makefile config.h | |
74 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
75 | |
76 # | |
77 # include dependency files if they exist | |
78 # | |
16713 | 79 ifneq ($(wildcard .depend),) |
80 include .depend | |
81 endif |