annotate libdvdcss/Makefile @ 20613:e68f255d7d64

Move libdvdcss into its own subdirectory.
author diego
date Fri, 03 Nov 2006 12:25:56 +0000
parents
children f5e914d834d3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
1
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
2 ifneq ($(wildcard ../config.mak),)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
3 include ../config.mak
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
4 endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
5
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
6 SRCS = css.c \
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
7 device.c \
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
8 error.c \
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
9 ioctl.c \
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
10 libdvdcss.c \
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
11 #bsdi_ioctl \
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
12
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
13 OBJS = $(SRCS:.c=.o)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
14
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
15 LIB=libdvdcss
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
16
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
17 .SUFFIXES: .c .o
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
18
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
19 ifeq ($(OPTFLAGS),)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
20 OPTFLAGS = -mcpu=pentium -march=pentium -O4
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
21 endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
22
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
23 # \ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
24
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
25 # -funroll-loops removed, triggered gcc 3.0.4 (3.x?) bug
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
26 CFLAGS= -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE \
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
27 -DHAVE_LIMITS_H -DHAVE_ERRNO_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H \
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
28 -DVERSION=\"1.2.9\"
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
29
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
30 ifeq ($(TARGET_OS),CYGWIN)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
31 CFLAGS+=-DSYS_CYGWIN -DWIN32
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
32 endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
33
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
34 ifeq ($(TARGET_OS),Darwin)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
35 CFLAGS+=-D__DARWIN__
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
36 endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
37
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
38 .c.o:
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
39 $(CC) $(CFLAGS) -c -o $@ $<
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
40
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
41 all: $(LIB).a
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
42
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
43 $(LIB).a: $(OBJS)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
44 $(AR) rc $(LIB).a $(OBJS)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
45 $(RANLIB) $(LIB).a
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
46
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
47 clean:
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
48 rm -f *.o *.a *~ *.so
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
49
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
50 distclean: clean
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
51 rm -f .depend
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
52
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
53 dep: depend
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
54
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
55 depend:
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
56 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
57
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
58 #
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
59 # include dependency files if they exist
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
60 #
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
61 ifneq ($(wildcard .depend),)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
62 include .depend
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
63 endif