File:  [ELWIX - Embedded LightWeight unIX -] / libaitio / src / Makefile.in
Revision 1.9.4.1: download - view: text, annotated - select for diffs - revision graph
Mon Aug 29 14:57:53 2011 UTC (12 years, 9 months ago) by misho
Branches: io2_1
Diff to: branchpoint 1.9: preferred, colored
pre initial commit of ELWIX RPC moved to aitio

#
# (C) 2010 by Michael Pounov <misho@elwix.org>
#   AITNET ltd - Sofia/Bulgaria
#
# $Author: misho $
# $Id: Makefile.in,v 1.9.4.1 2011/08/29 14:57:53 misho Exp $
#

prefix = @prefix@
exec_prefix = @exec_prefix@

LIBS = @LIBS@

CC = @CC@
MKDEP = @MKDEP@

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

LDADD = ${LIBS}

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

SRCS = aitio.c url.c tools.c aio.c crypt.c array.c sarray.c patricia.c vars.c
OBJS = aitio.o url.o tools.o aio.o crypt.o array.o sarray.o patricia.o vars.o
LIBSO = libaitio.so
LIBA = libaitio.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}/$@ -nostartfiles -Wl,-x,-soname,$@ ${OBJS} ${LDADD}

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