~percona-dev/percona-server/release-5.5.11-20.2-fix-bug-764138

« back to all changes in this revision

Viewing changes to HandlerSocket-Plugin-for-MySQL/libhsclient/Makefile.plain

  • Committer: Ignacio Nin
  • Date: 2011-03-13 17:18:23 UTC
  • mfrom: (33.3.17 release-5.5.8-20)
  • Revision ID: ignacio.nin@percona.com-20110313171823-m06xs104nekulywb
Merge changes from release-5.5.8-20 to 5.5.9

Merge changes from the release branch of 5.5.8 to 5.5.9. These include
the HandlerSocket and UDF directories and the building scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
CXX = g++ -Wall -g -fno-rtti -fno-exceptions -fPIC -DPIC
 
3
LDFLAGS =
 
4
 
 
5
CXXFLAGS += -O3 -DNDEBUG
 
6
 
 
7
COMMON_OBJS = config.o fatal.o socket.o string_util.o escape.o
 
8
HSCLIENT_OBJS = $(COMMON_OBJS) hstcpcli.o
 
9
 
 
10
all: libhsclient.a
 
11
 
 
12
libhsclient.a: $(HSCLIENT_OBJS)
 
13
        $(AR) rc $@ $^
 
14
        $(AR) s $@
 
15
 
 
16
clean:
 
17
        rm -f *.a *.so *.o
 
18
 
 
19
LIBDIR = $(shell \
 
20
  if [ -e /usr/lib64/mysql ]; then echo /usr/lib64; else echo /usr/lib; fi)
 
21
 
 
22
install: libhsclient.a
 
23
        sudo sh -c 'cp libhsclient.a libhsclient.a.cpy && \
 
24
                mv libhsclient.a.cpy $(LIBDIR)/libhsclient.a && \
 
25
                mkdir -p /usr/include/handlersocket && \
 
26
                cp -a *.hpp /usr/include/handlersocket/'
 
27