diff options
-rw-r--r-- | COPYING | 11 | ||||
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | configure.ac | 8 | ||||
-rw-r--r-- | src/Makefile | 14 | ||||
-rw-r--r-- | src/Makefile.am | 28 |
5 files changed, 48 insertions, 14 deletions
@@ -0,0 +1,11 @@ +This Program is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free Software +Foundation; version 2 of the License. + +This Program is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with +this Program; if not, write to the Free Software Foundation, Inc., 59 Temple +Place, Suite 330, Boston, MA 02111-1307 USA. diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..af437a6 --- /dev/null +++ b/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = src diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..e1a5bec --- /dev/null +++ b/configure.ac @@ -0,0 +1,8 @@ +AC_INIT(slapi-nis,0.0) +AM_INIT_AUTOMAKE(foreign) +AC_PROG_LIBTOOL +AC_CHECK_HEADERS(dirsrv/slapi-plugin.h slapi-plugin.h) +PKG_CHECK_MODULES(RUNTIME,nss nspr) +AM_CONDITIONAL(GCC,[test x$GCC = xyes]) +AC_CONFIG_HEADER(config.h) +AC_OUTPUT(Makefile src/Makefile plugin.ldif) diff --git a/src/Makefile b/src/Makefile deleted file mode 100644 index 39a1a05..0000000 --- a/src/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -CFLAGS = $(shell pkg-config --cflags nspr nss) -g3 -O1 -Wall -Wimplicit -Wextra -Wno-unused -Wuninitialized -fPIC -D_REENTRANT -LDFLAGS = -lnsl -lpthread - -all:: plugin.so dummyplugin.so portmap - -plugin.so: backend.c dispatch.c map.c nis.c plugin.c portmap.c defaults.h format.c defaults.c - $(CC) $(CFLAGS) -shared -o $@ $^ $(LDFLAGS) -dummyplugin.so: dispatch.c dummymap.c nis.c plugin.c plugin.h portmap.c - $(CC) $(CFLAGS) -shared -o $@ $^ $(LDFLAGS) -portmap: portmap.c - $(CC) $(CFLAGS) -o $@ -DPORTMAP_MAIN $^ $(LDFLAGS) - -clean: - $(RM) portmap plugin.so dummyplugin.so diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..e18337e --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,28 @@ +if GCC +AM_CFLAGS = $(RUNTIME_CFLAGS) -Wall -Wimplicit -Wextra -Wuninitialized +else +AM_CFLAGS = $(RUNTIME_CFLAGS) +endif +AM_LDFLAGS = -module -avoid-version +LIBADD = $(RUNTIME_LIBS) -lnsl -lpthread + +plugindir = $(libdir)/dirsrv/plugins + +plugin_LTLIBRARIES = nis-plugin.la +nis_plugin_la_SOURCES = \ + backend.c \ + dispatch.c \ + format.c \ + defaults.c \ + map.c \ + nis.c \ + plugin.c \ + portmap.c + +EXTRA_LTLIBRARIES = dummy-nis-plugin.la +dummy_nis_plugin_la_SOURCES = \ + dispatch.c \ + dummymap.c \ + nis.c \ + plugin.c \ + portmap.c |