source: branches/uq/video/Makefile.in @ 5206

Last change on this file since 5206 was 3471, checked in by ldelgass, 12 years ago

Makefile fixes: make 'install' target always depend on 'all' target. This
ensures that an up to date build exists before installing, and also permits
the use of "make install" in place of "make all install" or "make all; make install". It doesn't affect the existing build scripts. Likewise, make 'distclean'
always depend on 'clean'. Remove empty contour objects example, as there is no
corresponding object class. Also declare all the standard targets 'all, install,
etc' in the .PHONY section for performance.

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