Mercurial > mplayer.hg
annotate libdvdcss/Makefile @ 20759:e18fc76c7a98
Spelling fix: Allowable -> Allowed
author | voroshil |
---|---|
date | Wed, 08 Nov 2006 10:30:52 +0000 |
parents | 6cf79142b5a7 |
children | f76c0a5509cd |
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 CFLAGS= -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE \ | |
24 -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
|
25 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DVERSION=\"1.2.9\" |
20613 | 26 |
27 ifeq ($(TARGET_OS),CYGWIN) | |
20713 | 28 CFLAGS+=-DSYS_CYGWIN |
20613 | 29 endif |
30 | |
31 ifeq ($(TARGET_OS),Darwin) | |
32 CFLAGS+=-D__DARWIN__ | |
33 endif | |
34 | |
35 .c.o: | |
36 $(CC) $(CFLAGS) -c -o $@ $< | |
37 | |
38 all: $(LIB).a | |
39 | |
40 $(LIB).a: $(OBJS) | |
41 $(AR) rc $(LIB).a $(OBJS) | |
42 $(RANLIB) $(LIB).a | |
43 | |
44 clean: | |
45 rm -f *.o *.a *~ *.so | |
46 | |
47 distclean: clean | |
48 rm -f .depend | |
49 | |
50 dep: depend | |
51 | |
52 depend: | |
53 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
54 | |
55 # | |
56 # include dependency files if they exist | |
57 # | |
58 ifneq ($(wildcard .depend),) | |
59 include .depend | |
60 endif |