Mercurial > mplayer.hg
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 |
rev | line source |
---|---|
20613 | 1 |
2 ifneq ($(wildcard ../config.mak),) | |
3 include ../config.mak | |
4 endif | |
5 | |
6 SRCS = css.c \ | |
7 device.c \ | |
8 error.c \ | |
9 ioctl.c \ | |
10 libdvdcss.c \ | |
11 #bsdi_ioctl \ | |
12 | |
13 OBJS = $(SRCS:.c=.o) | |
14 | |
15 LIB=libdvdcss | |
16 | |
17 .SUFFIXES: .c .o | |
18 | |
19 ifeq ($(OPTFLAGS),) | |
20 OPTFLAGS = -mcpu=pentium -march=pentium -O4 | |
21 endif | |
22 | |
23 # -funroll-loops removed, triggered gcc 3.0.4 (3.x?) bug | |
24 CFLAGS= -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE \ | |
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 | 27 |
28 ifeq ($(TARGET_OS),CYGWIN) | |
29 CFLAGS+=-DSYS_CYGWIN -DWIN32 | |
30 endif | |
31 | |
32 ifeq ($(TARGET_OS),Darwin) | |
33 CFLAGS+=-D__DARWIN__ | |
34 endif | |
35 | |
36 .c.o: | |
37 $(CC) $(CFLAGS) -c -o $@ $< | |
38 | |
39 all: $(LIB).a | |
40 | |
41 $(LIB).a: $(OBJS) | |
42 $(AR) rc $(LIB).a $(OBJS) | |
43 $(RANLIB) $(LIB).a | |
44 | |
45 clean: | |
46 rm -f *.o *.a *~ *.so | |
47 | |
48 distclean: clean | |
49 rm -f .depend | |
50 | |
51 dep: depend | |
52 | |
53 depend: | |
54 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
55 | |
56 # | |
57 # include dependency files if they exist | |
58 # | |
59 ifneq ($(wildcard .depend),) | |
60 include .depend | |
61 endif |