blob: b059a27ec7df45fc859577e010e9f9db947e7831 (
plain)
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
|
#----------------------------------------------------------------------------
#
# Postgres-XC GTM common makefile
#
# Copyright(c) 2010-2012 Postgres-XC Development Group
#
# src/gtm/common/Makefile
#
#-----------------------------------------------------------------------------
top_builddir=../../..
subdir = src/gtm/common
include $(top_builddir)/src/Makefile.global
override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS)
NAME=gtm
SO_MAJOR_VERSION= 1
SO_MINOR_VERSION= 0
LDFLAGS=-L$(top_builddir)/common -L$(top_builddir)/libpq
LIBS=-lpthread
OBJS = gtm_opt_handler.o aset.o mcxt.o gtm_utils.o elog.o assert.o stringinfo.o gtm_lock.o \
gtm_list.o gtm_serialize.o gtm_serialize_debug.o gtm_time.o gtm_gxid.o
all:all-lib
gtm_opt_handler.o: gtm_opt_scanner.c
gtm_opt_scanner.c: gtm_opt_scanner.l
ifdef FLEX
$(FLEX) $(FLEXFLAGS) -o'$@' $<
else
@$(missing) flex $< $@
endif
# Shared library stuff
include $(top_srcdir)/src/Makefile.shlib
# Note that gtm_opt_scanner.c is not deleted by make clean as we want it in distribution tarballs
clean:
rm -f $(OBJS)
rm -f libgtm.so libgtm.so.1 libgtm.so.1.0
distclean: clean
maintainer-clean: distclean
|