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 = @CC_SEARCH_FLAGS@ |
---|
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 | TK_LIB_SPEC = @TK_LIB_SPEC@ |
---|
31 | LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@ |
---|
32 | LIB_RUNTIME_DIR = $(libdir) |
---|
33 | |
---|
34 | CC_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) |
---|
35 | CXX_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) |
---|
36 | |
---|
37 | INCLUDES = \ |
---|
38 | -I$(srcdir) \ |
---|
39 | -I$(includedir) |
---|
40 | |
---|
41 | LIBS = \ |
---|
42 | $(TCL_LIB_SPEC) \ |
---|
43 | $(TK_LIB_SPEC) \ |
---|
44 | |
---|
45 | version = @PACKAGE_VERSION@ |
---|
46 | DEFINES = -DPACKAGE_VERSION=\"$(version)\" |
---|
47 | |
---|
48 | RANLIB = @RANLIB@ |
---|
49 | AR = ar |
---|
50 | VPATH = $(srcdir) |
---|
51 | RM = rm -f |
---|
52 | |
---|
53 | CDEBUGFLAGS = -g -Wall |
---|
54 | |
---|
55 | |
---|
56 | OBJS = \ |
---|
57 | RpSqueezer.o |
---|
58 | |
---|
59 | name = RapptureSqueezer$(version) |
---|
60 | libname = $(name) |
---|
61 | lib = $(libname)$(SHLIB_SUFFIX) |
---|
62 | destdir = $(libdir)/$(name) |
---|
63 | |
---|
64 | .PHONY: all install clean distclean |
---|
65 | |
---|
66 | all: $(lib) |
---|
67 | |
---|
68 | $(lib): $(OBJS) |
---|
69 | $(SHLIB_LD) $(SHLIB_LDFLAGS) -o $@ $(OBJS) \ |
---|
70 | $(LIB_SEARCH_DIRS) $(LIBS) |
---|
71 | |
---|
72 | install: $(lib) |
---|
73 | $(MKDIR_P) -m 0755 $(destdir) |
---|
74 | $(INSTALL) -m 0555 $(lib) $(destdir) |
---|
75 | $(INSTALL) -m 0444 pkgIndex.tcl $(destdir) |
---|
76 | |
---|
77 | .cpp.o: |
---|
78 | $(CXX) $(CXX_SWITCHES) -c $? |
---|
79 | .c.o: |
---|
80 | $(CC) $(CC_SWITCHES) -c $? |
---|
81 | |
---|
82 | clean: |
---|
83 | $(RM) $(OBJS) $(lib) |
---|
84 | |
---|
85 | distclean: clean |
---|
86 | $(RM) Makefile pkgIndex.tcl *~ |
---|
87 | |
---|