From d66ecd8caf597bcc794f9b9b1716a4f4ab4cfed2 Mon Sep 17 00:00:00 2001 From: "Andrew G. Morgan" Date: Sat, 10 Feb 2001 07:17:52 +0000 Subject: Relevant BUGIDs: 131783 Purpose of commit: bugfix Commit summary: --------------- static library and debugging library support fixed - post autoconf stuff. --- examples/Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/Makefile b/examples/Makefile index 0e985c59..e9432ba7 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -8,9 +8,23 @@ PROGS = blank xsh check_user SRCS = blank.c xsh.c check_user.c PROGSUID = +ifeq ($(WITH_LIBDEBUG),yes) + LIBSUFFIX=d +else + LIBSUFFIX= +endif + CFLAGS += -I../libpam_misc/include -I../libpamc/include -LOADLIBES = -L../libpam -L../libpamc -L../libpam_misc -lpam -lpam_misc +LOADLIBES = -L../libpam -L../libpamc -L../libpam_misc \ + -lpam$(LIBSUFFIX) -lpam_misc$(LIBSUFFIX) + +ifeq ($(STATIC_LIBPAM),yes) + ifneq ($(DYNAMIC),) + CFLAGS += $(CC_STATIC) + LOADLIBES += $(LIBDL) + endif +endif all: $(PROGS) -- cgit v1.2.3