diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2000-06-20 22:10:38 +0000 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2000-06-20 22:10:38 +0000 |
commit | ea488580c42e8918445a945484de3c8a5addc761 (patch) | |
tree | c992f3ba699caafedfadc16af38e6359c3c24698 /examples/Makefile | |
download | pam-ea488580c42e8918445a945484de3c8a5addc761.tar.gz pam-ea488580c42e8918445a945484de3c8a5addc761.tar.bz2 pam-ea488580c42e8918445a945484de3c8a5addc761.zip |
Initial revision
Diffstat (limited to 'examples/Makefile')
-rw-r--r-- | examples/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/examples/Makefile b/examples/Makefile new file mode 100644 index 00000000..c6882473 --- /dev/null +++ b/examples/Makefile @@ -0,0 +1,42 @@ +# +# $Id$ +# + +dummy: + + @echo "*** This is not a top level Makefile!" + +PROGS = blank xsh check_user +SRCS = blank.c xsh.c check_user.c + +# have removed the following pair since they no longer conform to +# any recognized conventions: vpass test +# ditto: vpass.c test.c + +PROGSUID = + +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) + +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) + +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 |