mirror of
https://github.com/linux-pam/linux-pam.git
synced 2024-11-27 11:43:38 +08:00
09d18a79f0
Purpose of commit: bugfix Commit summary: --------------- It seems that configure was barfing on some packages because libpam_misc could not compile without also being linked to libpam.
55 lines
1.0 KiB
Makefile
55 lines
1.0 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
include ../Make.Rules
|
|
|
|
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$(absolute_srcdir)/libpam_misc/include
|
|
|
|
LOADLIBES = -L$(absolute_objdir)/libpam -L$(absolute_objdir)/libpamc \
|
|
-L$(absolute_objdir)/libpam_misc -lpam -lpam_misc
|
|
|
|
ifeq ($(STATIC_LIBPAM),yes)
|
|
ifneq ($(DYNAMIC),)
|
|
CFLAGS += $(CC_STATIC)
|
|
LOADLIBES += $(LIBDL)
|
|
endif
|
|
endif
|
|
|
|
all: $(PROGS)
|
|
|
|
check_user: check_user.o
|
|
$(CC) $(CFLAGS) -o $@ $< $(LOADLIBES)
|
|
|
|
blank: blank.o
|
|
$(CC) $(CFLAGS) -o $@ $< $(LOADLIBES)
|
|
|
|
xsh: xsh.o
|
|
$(CC) $(CFLAGS) -o $@ $< $(LOADLIBES)
|
|
|
|
clean:
|
|
rm -f *.a *.so *.o *~ $(PROGS) $(PROGSUID)
|
|
rm -f *.a *.out *.o *.so
|
|
|
|
# note, the programs are test programs, they should not be
|
|
# installed on your system!
|
|
|
|
install: all
|
|
if [ -n "$(PROGS)" ]; then cp $(PROGS) ../bin ; fi
|
|
if [ -n "$(PROGSUID)" ]; then \
|
|
$(INSTALL) -m 4555 $(PROGSUID) ../bin ; fi
|
|
|
|
remove:
|
|
cd ../bin ; rm -f $(PROGS) $(PROGSUID)
|
|
for x in $(PROGS) $(PROGSUID) ; do rm -f ../bin/$$x ; done
|