Mercurial > mplayer.hg
annotate libmpdvdkit2/Makefile @ 16740:e168c0704cfc
change to switch/case for dumpsub
author | ods15 |
---|---|
date | Wed, 12 Oct 2005 14:37:03 +0000 |
parents | 2ab52c9b72b9 |
children | e2b0c2841643 |
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 |
46 .c.o: | |
47 $(CC) $(CFLAGS) -c -o $@ $< | |
48 | |
16713 | 49 all: $(LIB).a |
7031 | 50 default: $(LIB).a |
51 | |
52 $(LIB).a: $(OBJS) | |
53 $(AR) rc $(LIB).a $(OBJS) | |
12632 | 54 $(RANLIB) $(LIB).a |
7031 | 55 |
56 $(LIB).so: $(OBJS) | |
57 $(CC) -o $(LIB).so -shared -rdynamic $(OBJS) | |
58 | |
59 clean: | |
60 rm -f $(OBJS) $(LIB).a $(LIB).so .depend | |
61 | |
62 distclean: clean | |
63 | |
64 dep: depend | |
65 | |
66 depend: .depend | |
67 | |
68 .depend: Makefile config.h | |
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 |