diff options
author | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2008-04-02 17:31:01 -0400 |
---|---|---|
committer | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2008-04-02 17:31:01 -0400 |
commit | d4c61d38b9d2dcd2389d815c38137087ae5afbd7 (patch) | |
tree | 89a3e63901d3da3e82173dc6a46a9a68354d084e /src | |
parent | 7d9f164cdc7ae0e7d1b0a967c1ea52a5e5e5a5ca (diff) | |
download | slapi-nis-d4c61d38b9d2dcd2389d815c38137087ae5afbd7.tar.gz slapi-nis-d4c61d38b9d2dcd2389d815c38137087ae5afbd7.tar.xz slapi-nis-d4c61d38b9d2dcd2389d815c38137087ae5afbd7.zip |
- some header cleanup
- always build a dummy plugin
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 4 | ||||
-rw-r--r-- | src/dispatch.c | 1 | ||||
-rw-r--r-- | src/dummymap.c | 2 | ||||
-rw-r--r-- | src/map.c | 4 | ||||
-rw-r--r-- | src/portmap.c | 1 |
5 files changed, 4 insertions, 8 deletions
diff --git a/src/Makefile b/src/Makefile index 3655cf7..de39234 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,10 +1,12 @@ CFLAGS = $(shell pkg-config --cflags nspr nss) -g3 -O1 -Wall -Wimplicit -Wextra -Wno-unused -Wuninitialized -fPIC -D_REENTRANT LDFLAGS = -lnsl -lpthread -all:: plugin.so portmap +all:: plugin.so dummyplugin.so portmap plugin.so: dispatch.c map.c nis.c plugin.c portmap.c $(CC) $(CFLAGS) -shared -o $@ $^ $(LDFLAGS) +dummyplugin.so: dispatch.c dummymap.c nis.c plugin.c portmap.c + $(CC) $(CFLAGS) -shared -o $@ $^ $(LDFLAGS) portmap: portmap.c $(CC) $(CFLAGS) -o $@ -DPORTMAP_MAIN $^ $(LDFLAGS) diff --git a/src/dispatch.c b/src/dispatch.c index 89f69ea..3dd623c 100644 --- a/src/dispatch.c +++ b/src/dispatch.c @@ -18,7 +18,6 @@ #include <nspr.h> #include <secport.h> #include <plarenas.h> -#include <dirsrv/slapi-plugin.h> #include "dispatch.h" #include "nis.h" diff --git a/src/dummymap.c b/src/dummymap.c index c648f80..ce257d5 100644 --- a/src/dummymap.c +++ b/src/dummymap.c @@ -10,12 +10,10 @@ #include <unistd.h> #include <rpc/rpc.h> -#include <rpcsvc/yp_prot.h> #include <nspr.h> #include <secport.h> #include <plarenas.h> -#include <dirsrv/slapi-plugin.h> #include "dispatch.h" #include "map.h" @@ -9,17 +9,13 @@ #include <unistd.h> #include <rpc/rpc.h> -#include <rpcsvc/yp_prot.h> #include <nspr.h> #include <secport.h> #include <plarenas.h> -#include <dirsrv/slapi-plugin.h> #include "dispatch.h" #include "map.h" -#include "nis.h" -#include "plugin.h" #include "portmap.h" struct { diff --git a/src/portmap.c b/src/portmap.c index 44c0abe..fbd73f3 100644 --- a/src/portmap.c +++ b/src/portmap.c @@ -13,6 +13,7 @@ #include <time.h> #include <dirsrv/slapi-plugin.h> + #include "portmap.h" #ifdef PORTMAP_MAIN |