-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.am
40 lines (30 loc) · 1.38 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
ROOT_PATH := $(dir $(CURDIR)/$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
LIBDIR = $(shell basename $(ROOT_PATH))
lib_LTLIBRARIES = lib_mysqludf_log.la
lib_mysqludf_log_la_SOURCES = lib_mysqludf_log.c mysqludf.c
lib_mysqludf_log_la_CFLAGS = -DSTANDARD -DMYSQL_SERVER @MYSQL_CFLAGS@
lib_mysqludf_log_la_CXXFLAGS = -DSTANDARD -DMYSQL_SERVER @MYSQL_CFLAGS@
lib_mysqludf_log_la_LDFLAGS = -module -avoid-version -no-undefined -rpath @MYSQL_PLUGINDIR@
EXTRA_DIST = *.h *.sql
SUBDIRS = test
mrproper:
make clean
make maintainer-clean
rm -rf config.guess config.h.* config.status configure config.sub ltmain.sh depcomp aclocal.m4 install.sh config.log compile missing Makefile.in doc/html *.lo mkinstalldirs install-sh *~ config/ltmain.sh config/libtool.m4 config/ltoptions.m4 config/ltversion.m4 config/lt~obsolete.m4
installdb:
$(MYSQL) < ./installdb.sql
uninstalldb:
$(MYSQL) < ./uninstalldb.sql
dist-hook:
find $(distdir) -name .svn -o -name .git* -o -name .c9* -o -name .DS_Store -o -name .cdtproject -o -name .project -o -name .settings -o *~ | xargs --no-run-if-empty rm -rf
maintainer-dist:
make dist
git tag "$(VERSION)"
maintainer-diff:
git diff "$(DIFFVERSION)" . | gitx
new-lib: mrproper
mv lib_mysqludf_log.c "$(LIBDIR)".c
replace lib_mysqludf_log "$(LIBDIR)" -- *
autoreconf
echo "$(LIBDIR)\n===\n" > README.md
.PHONY : mrproper new-lib