Mercurial > mplayer.hg
annotate libdvdcss/Makefile @ 21250:7b1ab00ef2eb
le2me_32 is no longer a macro on PPC, and in general does not have to
be, thus using it like a constant is incorrect.
Move wavhdr initialization to the code.
author | reimar |
---|---|
date | Sun, 26 Nov 2006 13:19:32 +0000 |
parents | ff1ac890c40a |
children | 92b122592776 |
rev | line source |
---|---|
20613 | 1 include ../config.mak |
2 | |
3 SRCS = css.c \ | |
4 device.c \ | |
5 error.c \ | |
6 ioctl.c \ | |
7 libdvdcss.c \ | |
8 #bsdi_ioctl \ | |
9 | |
10 OBJS = $(SRCS:.c=.o) | |
11 | |
21214 | 12 LIBNAME = libdvdcss.a |
20613 | 13 |
14 .SUFFIXES: .c .o | |
15 | |
16 CFLAGS= -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE \ | |
17 -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
|
18 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DVERSION=\"1.2.9\" |
20613 | 19 |
20 ifeq ($(TARGET_OS),CYGWIN) | |
20713 | 21 CFLAGS+=-DSYS_CYGWIN |
20613 | 22 endif |
23 | |
24 ifeq ($(TARGET_OS),Darwin) | |
25 CFLAGS+=-D__DARWIN__ | |
26 endif | |
27 | |
28 .c.o: | |
29 $(CC) $(CFLAGS) -c -o $@ $< | |
30 | |
21214 | 31 all: $(LIBNAME) |
20613 | 32 |
21214 | 33 $(LIBNAME): $(OBJS) |
34 $(AR) rc $@ $^ | |
35 $(RANLIB) $@ | |
20613 | 36 |
37 clean: | |
38 rm -f *.o *.a *~ *.so | |
39 | |
40 distclean: clean | |
41 rm -f .depend | |
42 | |
21080 | 43 dep depend: |
20613 | 44 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
45 | |
46 ifneq ($(wildcard .depend),) | |
47 include .depend | |
48 endif |