annotate libmpdvdkit2/Makefile @ 14768:662a391e4901

spelling, wording and consistency fixes
author diego
date Tue, 22 Feb 2005 20:39:52 +0000
parents 80973aa180a5
children 276da0bb6207
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
1
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
2 ifneq ($(wildcard ../config.mak),)
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
3 include ../config.mak
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
4 endif
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
5
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
6 SRCS = css.c device.c dvd_input.c dvd_reader.c dvd_udf.c error.c ifo_print.c ifo_read.c ioctl.c libdvdcss.c nav_print.c nav_read.c
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
7
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
8 #bsdi_ioctl.c
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
9
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
10 OBJS = $(SRCS:.c=.o)
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
11
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
12 LIB=libmpdvdkit
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
13
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
14 .SUFFIXES: .c .o
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
15
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
16 ifeq ($(OPTFLAGS),)
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
17 OPTFLAGS = -mcpu=pentium -march=pentium -O4
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
18 else
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
19 OPTFLAGS += -DHAVE_MPLAYER
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
20 endif
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
21
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
22 # \ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
23
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
24 # -funroll-loops removed, triggered gcc 3.0.4 (3.x?) bug
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
25 CFLAGS= -I. $(OPTFLAGS) $(EXTRA_INC)\
8981
822754227778 not needed
pontscho
parents: 7031
diff changeset
26 -DSYS_LINUX -D__USE_UNIX98 -D_REENTRANT -D_GNU_SOURCE
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
27
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
28 .c.o:
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
29 $(CC) $(CFLAGS) -c -o $@ $<
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
30
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
31 all: $(LIB).a
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
32 default: $(LIB).a
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
33
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
34 $(LIB).a: $(OBJS)
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
35 $(AR) rc $(LIB).a $(OBJS)
12632
80973aa180a5 ranlib cleanup by Dan Christiansen
alex
parents: 8981
diff changeset
36 $(RANLIB) $(LIB).a
7031
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
37
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
38 $(LIB).so: $(OBJS)
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
39 $(CC) -o $(LIB).so -shared -rdynamic $(OBJS)
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
40
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
41 clean:
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
42 rm -f $(OBJS) $(LIB).a $(LIB).so .depend
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
43
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
44 distclean: clean
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
45
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
46 dep: depend
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
47
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
48 depend: .depend
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
49
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
50 .depend: Makefile config.h
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
51 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
52
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
53 #
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
54 # include dependency files if they exist
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
55 #
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
56 ifneq ($(wildcard .depend),)
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
57 include .depend
a1ff955aa49b importing libmpdvdkit files
arpi
parents:
diff changeset
58 endif