Mercurial > mplayer.hg
annotate libdvdcss/Makefile @ 21214:e7cd7283f57e
more consistency with the other Makefiles.
author | diego |
---|---|
date | Sat, 25 Nov 2006 17:09:25 +0000 |
parents | 68df3b19a160 |
children | ff1ac890c40a |
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 | |
21214 | 15 LIBNAME = libdvdcss.a |
20613 | 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 | |
21214 | 34 all: $(LIBNAME) |
20613 | 35 |
21214 | 36 $(LIBNAME): $(OBJS) |
37 $(AR) rc $@ $^ | |
38 $(RANLIB) $@ | |
20613 | 39 |
40 clean: | |
41 rm -f *.o *.a *~ *.so | |
42 | |
43 distclean: clean | |
44 rm -f .depend | |
45 | |
21080 | 46 dep depend: |
20613 | 47 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
48 | |
49 ifneq ($(wildcard .depend),) | |
50 include .depend | |
51 endif |