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 | incdir = $(prefix)/include |
---|
12 | |
---|
13 | INSTALL = @INSTALL@ |
---|
14 | |
---|
15 | CXX = @CXX@ |
---|
16 | CC = $(CXX) |
---|
17 | CCC = @CC@ |
---|
18 | CFLAGS_DEBUG = @CFLAGS_DEBUG@ |
---|
19 | CFLAGS_WARNING = -Wall |
---|
20 | CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ |
---|
21 | STLIB_LD = @STLIB_LD@ |
---|
22 | SHLIB_LD = @SHLIB_LD@ |
---|
23 | SHLIB_CFLAGS = @SHLIB_CFLAGS@ |
---|
24 | SHLIB_LDFLAGS = @SHLIB_LDFLAGS@ |
---|
25 | SHLIB_SUFFIX = @SHLIB_SUFFIX@ |
---|
26 | CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ |
---|
27 | LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@ |
---|
28 | CFLAGS = @CFLAGS@ -fPIC |
---|
29 | FFMPEG = @HAVE_FFMPEG_LIBS@ |
---|
30 | RM = rm -f |
---|
31 | CC_SWITCHES = $(CFLAGS) $(INCLUDES) $(DEFINES) $(CFLAGS_DEBUG) |
---|
32 | |
---|
33 | INCLUDES = \ |
---|
34 | -I. \ |
---|
35 | -I../core \ |
---|
36 | -I$(srcdir) \ |
---|
37 | -I$(srcdir)/../core \ |
---|
38 | -I$(includedir) |
---|
39 | LIBS = -L../core -lrappture |
---|
40 | |
---|
41 | |
---|
42 | RANLIB = @RANLIB@ |
---|
43 | AR = ar |
---|
44 | VPATH = $(srcdir) |
---|
45 | |
---|
46 | # tell make where to find the expat & libscew headers |
---|
47 | INCL_RP_DEPS = -I$(includedir) |
---|
48 | |
---|
49 | # define our compiling environment |
---|
50 | LN = ln -s |
---|
51 | |
---|
52 | # RpDXReader.h \ |
---|
53 | # RpDXWriter.h \ |
---|
54 | |
---|
55 | HEADERS = \ |
---|
56 | RpAccessor.h \ |
---|
57 | RpArray1D.h \ |
---|
58 | RpArray1DUniform.h \ |
---|
59 | RpAxisMarker.h \ |
---|
60 | RpBoolean.h \ |
---|
61 | RpChain.h \ |
---|
62 | RpChainHelper.h \ |
---|
63 | RpChoice.h \ |
---|
64 | RpCurve.h \ |
---|
65 | RpInt.h \ |
---|
66 | RpHashHelper.h \ |
---|
67 | RpHistogram.h \ |
---|
68 | RpLibObj.h \ |
---|
69 | RpLibStorage.h \ |
---|
70 | RpNumber.h \ |
---|
71 | RpParserXML.h \ |
---|
72 | RpPath.h \ |
---|
73 | RpPlot.h \ |
---|
74 | RpPool.h \ |
---|
75 | RpScatter.h \ |
---|
76 | RpString.h \ |
---|
77 | RpTest.h \ |
---|
78 | RpTree.h \ |
---|
79 | RpObjConfig.h \ |
---|
80 | RpObject.h |
---|
81 | |
---|
82 | LOCAL_HEADERS = \ |
---|
83 | RpHash.h |
---|
84 | |
---|
85 | # RpDXReader.o \ |
---|
86 | # RpDXWriter.o \ |
---|
87 | |
---|
88 | OBJS = \ |
---|
89 | RpArray1D.o \ |
---|
90 | RpArray1DUniform.o \ |
---|
91 | RpAxisMarker.o \ |
---|
92 | RpBoolean.o \ |
---|
93 | RpChain.o \ |
---|
94 | RpChoice.o \ |
---|
95 | RpCurve.o \ |
---|
96 | RpChainHelper.o \ |
---|
97 | RpHash.o \ |
---|
98 | RpHashHelper.o \ |
---|
99 | RpHistogram.o \ |
---|
100 | RpLibObj.o \ |
---|
101 | RpLibStorage.o \ |
---|
102 | RpNumber.o \ |
---|
103 | RpParserXML.o \ |
---|
104 | RpPath.o \ |
---|
105 | RpPlot.o \ |
---|
106 | RpPool.o \ |
---|
107 | RpScatter.o \ |
---|
108 | RpString.o \ |
---|
109 | RpTest.o \ |
---|
110 | RpTree.o \ |
---|
111 | RpUtils2.o \ |
---|
112 | RpObject.o |
---|
113 | |
---|
114 | ifeq ($(FFMPEG),yes) |
---|
115 | # since ffmpeg libraries are available, |
---|
116 | # include them in compilation |
---|
117 | LIBS += -lavcodec -lavformat -lswscale |
---|
118 | # HEADERS += RpMediaPlayer.h RpVideo.h |
---|
119 | # OBJS += RpMediaPlayer.o RpVideo.o |
---|
120 | HEADERS += RpVideo.h |
---|
121 | OBJS += RpVideo.o |
---|
122 | endif |
---|
123 | |
---|
124 | |
---|
125 | name = RpObjects |
---|
126 | lib = lib$(name).a |
---|
127 | shared_lib = lib$(name)$(SHLIB_SUFFIX) |
---|
128 | |
---|
129 | all: build_lib |
---|
130 | |
---|
131 | build_lib: $(lib) $(shared_lib) |
---|
132 | |
---|
133 | $(shared_lib): $(OBJS) |
---|
134 | $(RM) $@ |
---|
135 | $(SHLIB_LD) $(SHLIB_LDFLAGS) -o $@ $(OBJS) \ |
---|
136 | $(LIB_SEARCH_DIRS) $(LIBS) -lstdc++ -lexpat |
---|
137 | |
---|
138 | $(lib): $(OBJS) |
---|
139 | $(RM) $@ |
---|
140 | $(AR) -r $@ $(OBJS) |
---|
141 | $(RANLIB) $@ |
---|
142 | |
---|
143 | install: $(lib) $(shared_lib) |
---|
144 | $(INSTALL) -m 444 $(lib) $(libdir) |
---|
145 | $(INSTALL) -m 555 $(shared_lib) $(libdir) |
---|
146 | for i in $(HEADERS) ; do \ |
---|
147 | $(INSTALL) -m 444 $(srcdir)/$$i $(incdir) ; \ |
---|
148 | done |
---|
149 | for i in $(LOCAL_HEADERS) ; do \ |
---|
150 | $(INSTALL) -m 444 $$i $(incdir) ; \ |
---|
151 | done |
---|
152 | |
---|
153 | .cc.o: |
---|
154 | $(CXX) $(CC_SWITCHES) -c $? |
---|
155 | .c.o: |
---|
156 | $(CCC) $(CC_SWITCHES) -c $? |
---|
157 | |
---|
158 | clean: |
---|
159 | $(RM) $(OBJS) $(lib) $(shared_lib) |
---|
160 | |
---|
161 | distclean: clean |
---|
162 | rm Makefile |
---|