From d4c61d38b9d2dcd2389d815c38137087ae5afbd7 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Wed, 2 Apr 2008 17:31:01 -0400 Subject: - some header cleanup - always build a dummy plugin --- src/Makefile | 4 +++- src/dispatch.c | 1 - src/dummymap.c | 2 -- src/map.c | 4 ---- src/portmap.c | 1 + 5 files changed, 4 insertions(+), 8 deletions(-) (limited to 'src') 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 #include #include -#include #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 #include -#include #include #include #include -#include #include "dispatch.h" #include "map.h" diff --git a/src/map.c b/src/map.c index 1298690..efe31ac 100644 --- a/src/map.c +++ b/src/map.c @@ -9,17 +9,13 @@ #include #include -#include #include #include #include -#include #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 #include + #include "portmap.h" #ifdef PORTMAP_MAIN -- cgit