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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
1
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
2 ifneq ($(wildcard ../config.mak),)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
3 include ../config.mak
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
4 endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
5
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
6 SRCS = css.c \
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
7 device.c \
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
8 error.c \
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
9 ioctl.c \
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
10 libdvdcss.c \
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
11 #bsdi_ioctl \
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
12
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
13 OBJS = $(SRCS:.c=.o)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
14
21214
e7cd7283f57e more consistency with the other Makefiles.
diego
parents: 21206
diff changeset
15 LIBNAME = libdvdcss.a
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
16
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
17 .SUFFIXES: .c .o
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
18
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
19 CFLAGS= -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE \
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
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
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
22
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
23 ifeq ($(TARGET_OS),CYGWIN)
20713
7564585e63a4 WIN32 was already being set from config.h.
diego
parents: 20708
diff changeset
24 CFLAGS+=-DSYS_CYGWIN
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
25 endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
26
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
27 ifeq ($(TARGET_OS),Darwin)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
28 CFLAGS+=-D__DARWIN__
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
29 endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
30
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
31 .c.o:
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
32 $(CC) $(CFLAGS) -c -o $@ $<
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
33
21214
e7cd7283f57e more consistency with the other Makefiles.
diego
parents: 21206
diff changeset
34 all: $(LIBNAME)
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
35
21214
e7cd7283f57e more consistency with the other Makefiles.
diego
parents: 21206
diff changeset
36 $(LIBNAME): $(OBJS)
e7cd7283f57e more consistency with the other Makefiles.
diego
parents: 21206
diff changeset
37 $(AR) rc $@ $^
e7cd7283f57e more consistency with the other Makefiles.
diego
parents: 21206
diff changeset
38 $(RANLIB) $@
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
39
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
40 clean:
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
41 rm -f *.o *.a *~ *.so
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
42
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
43 distclean: clean
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
44 rm -f .depend
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
45
21080
618d1857f4c4 Unify dep/depend targets.
diego
parents: 20803
diff changeset
46 dep depend:
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
47 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
48
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
49 ifneq ($(wildcard .depend),)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
50 include .depend
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
51 endif