annotate libdvdcss/Makefile @ 20708:f5e914d834d3

Add -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 to CFLAGS like upstream does.
author diego
date Sun, 05 Nov 2006 19:06:32 +0000
parents e68f255d7d64
children 7564585e63a4
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 # -funroll-loops removed, triggered gcc 3.0.4 (3.x?) bug
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
24 CFLAGS= -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE \
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
25 -DHAVE_LIMITS_H -DHAVE_ERRNO_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H \
20708
f5e914d834d3 Add -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 to CFLAGS like upstream does.
diego
parents: 20613
diff changeset
26 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DVERSION=\"1.2.9\"
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
27
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
28 ifeq ($(TARGET_OS),CYGWIN)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
29 CFLAGS+=-DSYS_CYGWIN -DWIN32
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
30 endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
31
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
32 ifeq ($(TARGET_OS),Darwin)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
33 CFLAGS+=-D__DARWIN__
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
34 endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
35
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
36 .c.o:
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
37 $(CC) $(CFLAGS) -c -o $@ $<
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
38
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
39 all: $(LIB).a
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
40
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
41 $(LIB).a: $(OBJS)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
42 $(AR) rc $(LIB).a $(OBJS)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
43 $(RANLIB) $(LIB).a
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
44
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
45 clean:
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
46 rm -f *.o *.a *~ *.so
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
47
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
48 distclean: clean
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
49 rm -f .depend
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
50
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
51 dep: 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 depend:
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
54 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
55
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
56 #
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
57 # include dependency files if they exist
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
58 #
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
59 ifneq ($(wildcard .depend),)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
60 include .depend
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
61 endif