head	1.1;
branch	1.1.1;
access;
symbols
	Linux-PAM-0-66:1.1.1.1
	PRE_REL_0_66:1.1.1.1
	OPEN_SOURCE:1.1.1;
locks; strict;
comment	@# @;


1.1
date	98.07.12.05.17.15;	author morgan;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	98.07.12.05.17.15;	author morgan;	state Exp;
branches;
next	;


desc
@@



1.1
log
@Initial revision
@
text
@# $Id$
#
# Makefile for building sh_secret agent.
# Written 1998/01/25 by Andrey V. Savochkin <saw@@msu.ru>.
#

##############################
# A tunable part goes from here ...
##############################

COPTFLAGS  = -O2
INCLUDEDIR = -I../include
CFLAGS     = $(COPTFLAGS) -pipe -g $(INCLUDEDIR)
#LOADLIBES  = -lg
MKDIR      = install -d -m0755
INSTALLBIN = install -m0755

##############################
# ... to here.
##############################

TITLE     = sh_secret

##############################
# PAMC dependent section goes from here ...
##############################

AGENTDIR  = $(ROOTDIR)/usr/sbin/pamc
AGENT     = $(TITLE).agent

##############################
# ... to here.
##############################

$(AGENT): sh_secret.o md5.o
	$(CC) -g -o $@@ $^ $(LOADLIBES)

md5.o: md5.c endian.def
	$(CC) -g -O2 -pipe `cat endian.def` -o $@@ -c $<

check_endian: check_endian.c

endian.def: check_endian
	@@if ./check_endian; then echo "-DHIGHFIRST"; else echo; fi >endian.def

install: $(AGENT)
	$(MKDIR) $(AGENTDIR)
	$(INSTALLBIN) $(AGENT) $(AGENTDIR)

remove:
	rm -f $(AGENTDIR)/$(AGENT)

clean:
	rm -f $(AGENT) *.o core check_endian endian.def

extraclean: clean
	rm -f *~
@


1.1.1.1
log
@Linux PAM sources pre-0.66
@
text
@@
