-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile.am
43 lines (31 loc) · 1.11 KB
/
Makefile.am
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
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = $(PGINCLUDES) $(all_includes)
noinst_LTLIBRARIES = libiplike_common.la
libiplike_common_la_SOURCES = iplike.c
libiplike_common_la_LDFLAGS = $(PGLIBS)
plugindir = @PG_PLUGINDIR@
plugin_LTLIBRARIES = iplike.la
iplike_la_SOURCES =
iplike_la_LIBADD = libiplike_common.la
iplike_la_LDFLAGS = -module -avoid-version -no-undefined $(PG_BUNDLE_LOADER)
sbin_SCRIPTS = install_iplike.sh
check_PROGRAMS = iplike
iplike_SOURCES = iplike-cmd.c
iplike_LDADD = libiplike_common.la
iplike_LDFLAGS = $(CLI_LDFLAGS) -all-static
TESTS = tests.sh
MAINTAINERCLEANFILES = aclocal.m4 config.guess config.h.in config.sub configure depcomp install-sh ltmain.sh Makefile.in missing *~
EXTRA_DIST = m4/* debian/po/* debian/* $(TESTS) *.dat
if MAKE_RPMS
rpm: @RPM_TARGET@
.PHONY: rpm
EXTRA_DIST += iplike.spec
$(RPM_TARGET): $(DISTFILES)
${MAKE} dist
-mkdir -p "$(SRPM_DIR)"
-mkdir -p "$(RPM_SOURCE_DIR)"
-mkdir -p `dirname $(RPM_TARGET)`
-install -c -m 644 "$(RPM_TARBALL)" "$(RPM_SOURCE_DIR)/"
$(RPMBUILD_PROG) -ba --target="$(RPM_ARCH)" $(RPM_EXTRA_ARGS) iplike.spec
@echo "$(RPM_TARGET) created"
endif