diff options
Diffstat (limited to 'programs/openac/Makefile')
-rw-r--r-- | programs/openac/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/programs/openac/Makefile b/programs/openac/Makefile index 7aeacee0a..98051f7bc 100644 --- a/programs/openac/Makefile +++ b/programs/openac/Makefile @@ -12,7 +12,7 @@ # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # -# RCSID $Id: Makefile,v 1.16 2006/02/17 19:33:27 as Exp $ +# RCSID $Id: Makefile,v 1.17 2007/02/21 14:19:45 as Exp $ FREESWANSRCDIR=../.. include ${FREESWANSRCDIR}/Makefile.inc @@ -23,6 +23,11 @@ PLUTODIR=../pluto PROGRAM=openac EXTRA8PROC=${PROGRAM}.8 +# where to find sha2.h +LIBCRYPTO=$(FREESWANSRCDIR)/lib/libcrypto +LIBSHA2=$(LIBCRYPTO)/libsha2 +CFLAGS+= -I$(LIBCRYPTO) + LIBS=${FREESWANLIB} $(LIBDESLITE) -lgmp CFLAGS+= -DDEBUG -DNO_PLUTO @@ -33,7 +38,7 @@ endif X509_OBJS= ac.o asn1.o ca.o certs.o constants.o crl.o defs.o mp_defs.o fetch.o \ id.o keys.o lex.o md2.o md5.o ocsp.o oid.o pem.o pgp.o pkcs1.o \ - rnd.o sha1.o smartcard.o x509.o + rnd.o sha1.o sha2.o smartcard.o x509.o OBJS= build.o loglite.o ${X509_OBJS} @@ -110,6 +115,9 @@ rnd.o : $(PLUTODIR)/rnd.c $(PLUTODIR)/rnd.h sha1.o : $(PLUTODIR)/sha1.c $(PLUTODIR)/sha1.h $(CC) $(CFLAGS) -c -o $@ $< +sha2.o : $(LIBSHA2)/sha2.c $(LIBSHA2)/sha2.h + $(CC) $(CFLAGS) -c -o $@ $< + smartcard.o : $(PLUTODIR)/smartcard.c $(PLUTODIR)/smartcard.h $(CC) $(CFLAGS) -c -o $@ $< |