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 | |
---|
31 | CC_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) |
---|
32 | CXX_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) |
---|
33 | |
---|
34 | INCLUDES = -I$(srcdir) \ |
---|
35 | -I../../../src/core \ |
---|
36 | -I$(srcdir)/../../../src/core \ |
---|
37 | -I$(srcdir)/../../../src/objects \ |
---|
38 | -I$(includedir) |
---|
39 | RAPPTURE_VERSION = @PACKAGE_VERSION@ |
---|
40 | SVN_VERSION := $(shell svnversion $(srcdir)) |
---|
41 | DEFINES = -DSVN_VERSION=\"$(SVN_VERSION)\" \ |
---|
42 | -DRAPPTURE_VERSION=\"$(RAPPTURE_VERSION)\" |
---|
43 | |
---|
44 | RANLIB = @RANLIB@ |
---|
45 | AR = ar |
---|
46 | VPATH = $(srcdir) |
---|
47 | RM = rm -f |
---|
48 | |
---|
49 | CDEBUGFLAGS = -g -Wall |
---|
50 | |
---|
51 | LIBS = \ |
---|
52 | -L../../../src/core -lrappture \ |
---|
53 | $(TCL_LIB_SPEC) -lexpat -lz -lm -lstdc++ |
---|
54 | |
---|
55 | OBJS = \ |
---|
56 | Rappture_Init.o \ |
---|
57 | RpEncodeTclInterface.o \ |
---|
58 | RpUnitsTclInterface.o \ |
---|
59 | RpUtilsTclInterface.o |
---|
60 | |
---|
61 | # Not using RpLibraryTclInterface.o \ |
---|
62 | |
---|
63 | name = Rappture$(RAPPTURE_VERSION) |
---|
64 | libname = $(name) |
---|
65 | lib = $(libname)$(SHLIB_SUFFIX) |
---|
66 | destdir = $(libdir)/$(name) |
---|
67 | |
---|
68 | all: $(lib) |
---|
69 | |
---|
70 | $(lib): $(OBJS) |
---|
71 | $(SHLIB_LD) $(SHLIB_LDFLAGS) -o $@ $(OBJS) \ |
---|
72 | $(LIB_SEARCH_DIRS) $(LIBS) |
---|
73 | |
---|
74 | install: $(lib) |
---|
75 | $(MKDIR_P) -m 0755 $(destdir) |
---|
76 | $(INSTALL) -m 0555 $(lib) $(destdir) |
---|
77 | |
---|
78 | .cc.o: |
---|
79 | $(CXX) $(CXX_SWITCHES) -c $? |
---|
80 | .c.o: |
---|
81 | $(CC) $(CC_SWITCHES) -c $? |
---|
82 | |
---|
83 | clean: |
---|
84 | $(RM) $(OBJS) $(lib) |
---|
85 | |
---|
86 | distclean: clean |
---|
87 | $(RM) Makefile *~ |
---|
88 | |
---|