Mercurial > mplayer.hg
annotate libdvdcss/Makefile @ 21185:0c866f72b921
Make loader Makefile non-recursive.
author | diego |
---|---|
date | Sat, 25 Nov 2006 00:31:07 +0000 |
parents | 618d1857f4c4 |
children | 68df3b19a160 |
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 | |
21080 | 46 dep depend: |
20613 | 47 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
48 | |
49 # | |
50 # include dependency files if they exist | |
51 # | |
52 ifneq ($(wildcard .depend),) | |
53 include .depend | |
54 endif |