Mercurial > mplayer.hg
annotate libmpdvdkit2/Makefile @ 19755:0e7162ecc045
increased revision tag after typo fix in English faq.xml (synced with r19760)
author | Gabrov |
---|---|
date | Fri, 08 Sep 2006 22:19:24 +0000 |
parents | 7a9a9748e045 |
children | bc7c04eaf71e |
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 | |
19037 | 37 CFLAGS= -I. $(OPTFLAGS) \ |
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 | |
18483
42e57ea2b91f
Make depend targets consistent: Remove redirection through .depend target.
diego
parents:
18481
diff
changeset
|
68 depend: |
7031 | 69 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
70 | |
71 # | |
72 # include dependency files if they exist | |
73 # | |
16713 | 74 ifneq ($(wildcard .depend),) |
75 include .depend | |
76 endif |