comparison libdvdcss/Makefile @ 20613:e68f255d7d64

Move libdvdcss into its own subdirectory.
author diego
date Fri, 03 Nov 2006 12:25:56 +0000
parents
children f5e914d834d3
comparison
equal deleted inserted replaced
20612:784b78f968a2 20613:e68f255d7d64
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 # \ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
24
25 # -funroll-loops removed, triggered gcc 3.0.4 (3.x?) bug
26 CFLAGS= -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE \
27 -DHAVE_LIMITS_H -DHAVE_ERRNO_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H \
28 -DVERSION=\"1.2.9\"
29
30 ifeq ($(TARGET_OS),CYGWIN)
31 CFLAGS+=-DSYS_CYGWIN -DWIN32
32 endif
33
34 ifeq ($(TARGET_OS),Darwin)
35 CFLAGS+=-D__DARWIN__
36 endif
37
38 .c.o:
39 $(CC) $(CFLAGS) -c -o $@ $<
40
41 all: $(LIB).a
42
43 $(LIB).a: $(OBJS)
44 $(AR) rc $(LIB).a $(OBJS)
45 $(RANLIB) $(LIB).a
46
47 clean:
48 rm -f *.o *.a *~ *.so
49
50 distclean: clean
51 rm -f .depend
52
53 dep: depend
54
55 depend:
56 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
57
58 #
59 # include dependency files if they exist
60 #
61 ifneq ($(wildcard .depend),)
62 include .depend
63 endif