1 | |
---|
2 | bindir = @bindir@ |
---|
3 | datadir = @datadir@ |
---|
4 | datarootdir = @datarootdir@ |
---|
5 | exec_prefix = @exec_prefix@ |
---|
6 | includedir = @includedir@ |
---|
7 | libdir = @libdir@ |
---|
8 | mandir = @mandir@ |
---|
9 | prefix = @prefix@ |
---|
10 | srcdir = @srcdir@ |
---|
11 | |
---|
12 | SHELL = @SHELL@ |
---|
13 | INSTALL = @INSTALL@ |
---|
14 | MKDIR_P = @MKDIR_P@ |
---|
15 | |
---|
16 | CXX = @CXX@ |
---|
17 | CC = @CC@ |
---|
18 | CFLAGS_DEBUG = @CFLAGS_DEBUG@ -Wall |
---|
19 | CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ |
---|
20 | STLIB_LD = @STLIB_LD@ |
---|
21 | SHLIB_LD = @SHLIB_LD@ |
---|
22 | SHLIB_CFLAGS = @SHLIB_CFLAGS@ |
---|
23 | SHLIB_LDFLAGS = @SHLIB_LDFLAGS@ |
---|
24 | SHLIB_SUFFIX = @SHLIB_SUFFIX@ |
---|
25 | CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ |
---|
26 | LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@ |
---|
27 | CFLAGS = @CFLAGS@ -fPIC |
---|
28 | TCL_VERSION = @TCL_VERSION@ |
---|
29 | TCL_LIB_SPEC = @TCL_LIB_SPEC@ |
---|
30 | HAVE_FFMPEG = @HAVE_FFMPEG_LIBS@ |
---|
31 | |
---|
32 | CC_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) |
---|
33 | CXX_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) |
---|
34 | |
---|
35 | INCLUDES = \ |
---|
36 | -I$(srcdir) \ |
---|
37 | -I../src/core \ |
---|
38 | -I$(srcdir)/../src/core \ |
---|
39 | -I$(srcdir)/../src/objects \ |
---|
40 | -I$(includedir) |
---|
41 | |
---|
42 | LIBS = \ |
---|
43 | -L../src/core -lrappture \ |
---|
44 | -lavcodec -lavformat -lswscale \ |
---|
45 | $(TCL_LIB_SPEC) -lexpat -lz -lm -lstdc++ \ |
---|
46 | |
---|
47 | version = @PACKAGE_VERSION@ |
---|
48 | DEFINES = -DPACKAGE_VERSION=\"$(version)\" |
---|
49 | |
---|
50 | RANLIB = @RANLIB@ |
---|
51 | AR = ar |
---|
52 | VPATH = $(srcdir) |
---|
53 | RM = rm -f |
---|
54 | |
---|
55 | CDEBUGFLAGS = -g -Wall |
---|
56 | |
---|
57 | |
---|
58 | OBJS = \ |
---|
59 | RpVideoTclInterface.o \ |
---|
60 | RpOp.o \ |
---|
61 | RpVideo.o |
---|
62 | |
---|
63 | name = RapptureVideo$(version) |
---|
64 | libname = $(name) |
---|
65 | lib = $(libname)$(SHLIB_SUFFIX) |
---|
66 | destdir = $(libdir)/$(name) |
---|
67 | |
---|
68 | .PHONY: all install clean distclean |
---|
69 | |
---|
70 | all: $(lib) |
---|
71 | |
---|
72 | $(lib): $(OBJS) |
---|
73 | $(SHLIB_LD) $(SHLIB_LDFLAGS) -o $@ $(OBJS) \ |
---|
74 | $(LIB_SEARCH_DIRS) $(LIBS) |
---|
75 | |
---|
76 | install: $(lib) |
---|
77 | $(MKDIR_P) -m 0755 $(destdir) |
---|
78 | $(INSTALL) -m 0555 $(lib) $(destdir) |
---|
79 | $(INSTALL) -m 0444 pkgIndex.tcl $(destdir) |
---|
80 | |
---|
81 | .cc.o: |
---|
82 | $(CXX) $(CXX_SWITCHES) -c $? |
---|
83 | .c.o: |
---|
84 | $(CC) $(CC_SWITCHES) -c $? |
---|
85 | |
---|
86 | clean: |
---|
87 | $(RM) $(OBJS) $(lib) |
---|
88 | |
---|
89 | distclean: clean |
---|
90 | $(RM) Makefile pkgIndex.tcl *~ |
---|
91 | |
---|