File:  [ELWIX - Embedded LightWeight unIX -] / libaitwww / src / Makefile.in
Revision 1.5: download - view: text, annotated - select for diffs - revision graph
Wed Sep 14 15:12:22 2016 UTC (8 years, 1 month ago) by misho
Branches: MAIN
CVS tags: www3_4, WWW3_3, HEAD
version 3.3

#
# (C) 2012 by Michael Pounov <misho@elwix.org>
#   AITNET ltd - Sofia/Bulgaria
#
# $Author: misho $
# $Id: Makefile.in,v 1.5 2016/09/14 15:12:22 misho Exp $
#

prefix = @prefix@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@

LIBS = @LIBS@

CC = @CC@
RANLIB = @RANLIB@
MKDEP = @MKDEP@

INC = ../inc
LIB = ../lib

LDADD = ${LIBS}

CFLAGS = -I. -I${INC} -I${includedir} -Wall @CFLAGS@
LDFLAGS = -L. -L${LIB} -L${libdir} @LDFLAGS@

SRCS = aitwww.c tools.c mime.c url.c base64.c
OBJS = aitwww.o tools.o mime.o url.o base64.o
LIBSO = libaitwww.so
LIBA = libaitwww.a

all: depend \
		${LIBA} \
		${LIBSO}

depend:
	${MKDEP} ${CFLAGS} ${SRCS}

clean:
	@rm -f *.o *~ .depend

install:

.c.o:
	${CC} -c ${CFLAGS} $<

${LIBA}: ${OBJS}
	${AR} -rc ${LIB}/$@ ${OBJS}
	${RANLIB} ${LIB}/$@

${LIBSO}: ${OBJS}
	${CC} ${LDFLAGS} -shared -o ${LIB}/$@ -Wl,-x,-soname,$@ ${OBJS} ${LDADD}

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