File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libpdel / http / test / Makefile
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:25:53 2012 UTC (12 years, 8 months ago) by misho
Branches: libpdel, MAIN
CVS tags: v0_5_3, HEAD
libpdel

# $Id: Makefile,v 1.1.1.1 2012/02/21 23:25:53 misho Exp $

PROG=		demo_server
SRCS+=		main.c
NOMAN=

CFLAGS+=	-pthread
CFLAGS+=	-I${PREFIX}/include

clean_certs:
		cd ${.CURDIR}/cert && ${MAKE} clean

# SSL key and cert
${PROG}:	${.CURDIR}/demo.key ${.CURDIR}/demo.crt

${.CURDIR}/demo.key ${.CURDIR}/demo.crt:
		cd ${.CURDIR}/cert && ${MAKE}

CLEANFILES+=	${.CURDIR}/demo.key ${.CURDIR}/demo.crt

# Libraries

LDADD+=		-L${PREFIX}/lib -lpdel
DPADD+=		${PREFIX}/lib/libpdel.a

LDADD+=		-L${PREFIX}/lib -lexpat
DPADD+=		${PREFIX}/lib/libexpat.a

LDADD+=		-lcrypto
DPADD+=		${LIBCRYPTO}

LDADD+=		-lssl
DPADD+=		${LIBSSL}

LDADD+=		-lnetgraph
DPADD+=		${LIBNETGRAPH}

LDADD+=		-lradius
DPADD+=		${LIBRADIUS}

.include "${.CURDIR}/../../Makefile.inc"
.include <bsd.prog.mk>

clean cleandir:	clean_certs

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>