diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2000-11-19 23:54:01 +0000 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2000-11-19 23:54:01 +0000 |
commit | 73346dba777b023e46830a973148eb0ddbf8f8b4 (patch) | |
tree | 3ac12799a597cb2004f8ebf5b18a4469ccee9a44 /examples/Makefile | |
parent | 47575925596c2af2a78c009fcdd14de72fc82d3e (diff) | |
download | pam-73346dba777b023e46830a973148eb0ddbf8f8b4.tar.gz pam-73346dba777b023e46830a973148eb0ddbf8f8b4.tar.bz2 pam-73346dba777b023e46830a973148eb0ddbf8f8b4.zip |
Relevant BUGIDs: task 15788, bugs 108297, 117476, 117474
Purpose of commit: autoconf support for Linux-PAM
Commit summary:
---------------
This is a merge of the autoconf support that was developed against
a 0-72 branch.
[Note, because CVS has some issues, this is actually only 95% of
the actual commit. The other files were actually committed when
the preparation branch Linux-PAM-0-73pre-autoconf was updated.
Hopefully, this will complete the merge.]
Diffstat (limited to 'examples/Makefile')
-rw-r--r-- | examples/Makefile | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/examples/Makefile b/examples/Makefile index c6882473..bd15ddf2 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -2,18 +2,15 @@ # $Id$ # -dummy: - - @echo "*** This is not a top level Makefile!" +include ../Make.Rules PROGS = blank xsh check_user SRCS = blank.c xsh.c check_user.c +PROGSUID = -# have removed the following pair since they no longer conform to -# any recognized conventions: vpass test -# ditto: vpass.c test.c +CFLAGS += -I../libpam_misc/inlcude -I../libpamc/include -PROGSUID = +LOADLIBES = -L../libpam -L../libpamc -L../libpam_misc -lpam -lpam_misc all: $(PROGS) @@ -26,17 +23,18 @@ blank: blank.o 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 -o root -g bin $(PROGSUID) ../bin ; fi - -clean: - rm -f *.a *.so *.o *~ $(PROGS) $(PROGSUID) + $(INSTALL) -m 4555 $(PROGSUID) ../bin ; fi remove: cd ../bin ; rm -f $(PROGS) $(PROGSUID) - -extraclean: clean - rm -f *.a *.out *.o *.so for x in $(PROGS) $(PROGSUID) ; do rm -f ../bin/$$x ; done |