aboutsummaryrefslogtreecommitdiffstats
path: root/databases/gigabase/files/patch-Makefile.in
blob: ebbd45673eb1b9815ce9f3929fe55c5c290d339d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
--- Makefile.in.orig    Fri May  4 23:46:57 2007
+++ Makefile.in Sun Oct 21 03:00:51 2007
@@ -5,8 +5,10 @@
 prefix = @prefix@
 exec_prefix = @exec_prefix@
 VPATH = @srcdir@
-LIBTOOL = ./libtool
+LIBTOOL = @LIBTOOL@
 INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
 
 # Coment this for AIX/xlC 5.0
 LIBEXT=la
@@ -41,7 +43,7 @@
 SUFF=@SUFF@
 
 GB_LIB = libgigabase$(SUFF).${LIBEXT}
-CLI_LIB = libcli$(SUFF).${LIBEXT}
+CLI_LIB = libcligb$(SUFF).${LIBEXT}
 EXES = subsql
 
 EXAMPLES = guess testdb testjoin testddl testperf testspat testperf2 testsync testiref testtrav testidx testidx2 clitest testblob testleak
@@ -49,7 +51,7 @@
 
 CXX = @CXX@
 CC = @CC@
-DEFS = @DEFS@
+DEFS = @DEFS@ @CPPFLAGS@
 CXXFLAGS = @CXXFLAGS@ $(DEFS)
 CFLAGS = @CFLAGS@ $(DEFS)
 LD = $(CXX)
@@ -70,7 +72,7 @@
 
 $(GB_LIB): $(OBJS)
 # Coment this for AIX/xlC 5.0
-   $(LIBTOOL) --mode=link $(CXX) -o $@ $(OBJS) $(LDFLAGS) @LTHREADSLIB@ -rpath $(libdir) -version-info $(VERSION)
+   $(LIBTOOL) --mode=link $(CXX) -o $@ $(OBJS) $(LDFLAGS) -rpath $(libdir) -version-info $(VERSION)
 # Uncoment this for AIX/xlC 5.0
 #  mkdir .libs
 #  xlC_r -qmkshrobj=-10 -o .libs/gigabase.so $(OBJS)
@@ -80,7 +82,7 @@
 
 $(CLI_LIB): $(CLI_OBJS)
 # Coment this for AIX/xlC 5.0
-   $(LIBTOOL) --mode=link $(CXX) -o $@ $(CLI_OBJS) $(LDFLAGS) @LTHREADSLIB@ -rpath $(libdir) -version-info $(VERSION)
+   $(LIBTOOL) --mode=link $(CXX) -o $@ $(CLI_OBJS) $(LDFLAGS) -rpath $(libdir) -version-info $(VERSION)
 # Uncoment this for AIX/xlC 5.0
 #  xlC_r -qmkshrobj=-10 -o .libs/cli.so $(CLI_OBJS)
 #  ar rv .libs/libcli_r.a .libs/cli.so
@@ -146,14 +148,14 @@
 
 install: subsql $(GB_LIB) $(CLI_LIB)
    mkdir -p $(includedir)
-   cp $(INCS) $(CLI_INCS) $(includedir)
+   $(INSTALL_DATA) $(INCS) $(CLI_INCS) $(includedir)
    mkdir -p $(libdir)
    $(LIBTOOL) --mode=install $(INSTALL) $(GB_LIB) $(CLI_LIB) $(libdir)
    mkdir -p $(bindir)
    if test -x .libs/subsql ; then \
-       cp .libs/subsql $(bindir); \
+       $(INSTALL_PROGRAM) .libs/subsql $(bindir)/subsql_gb; \
    else \
-       cp subsql $(bindir); \
+       $(INSTALL_PROGRAM) subsql $(bindir)/subsql_gb; \
    fi
 #  strip $(bindir)/subsql