Mercurial > mplayer.hg
annotate libdvdcss/Makefile @ 20903:b8d8e7ca7410
Remove write-only variable
author | uau |
---|---|
date | Tue, 14 Nov 2006 12:39:49 +0000 |
parents | f76c0a5509cd |
children | 618d1857f4c4 |
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 CFLAGS= -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE \ | |
20 -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
|
21 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DVERSION=\"1.2.9\" |
20613 | 22 |
23 ifeq ($(TARGET_OS),CYGWIN) | |
20713 | 24 CFLAGS+=-DSYS_CYGWIN |
20613 | 25 endif |
26 | |
27 ifeq ($(TARGET_OS),Darwin) | |
28 CFLAGS+=-D__DARWIN__ | |
29 endif | |
30 | |
31 .c.o: | |
32 $(CC) $(CFLAGS) -c -o $@ $< | |
33 | |
34 all: $(LIB).a | |
35 | |
36 $(LIB).a: $(OBJS) | |
37 $(AR) rc $(LIB).a $(OBJS) | |
38 $(RANLIB) $(LIB).a | |
39 | |
40 clean: | |
41 rm -f *.o *.a *~ *.so | |
42 | |
43 distclean: clean | |
44 rm -f .depend | |
45 | |
46 dep: depend | |
47 | |
48 depend: | |
49 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
50 | |
51 # | |
52 # include dependency files if they exist | |
53 # | |
54 ifneq ($(wildcard .depend),) | |
55 include .depend | |
56 endif |