File:  [ELWIX - Embedded LightWeight unIX -] / libaitcfg / src / Makefile.in
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Sun May 1 17:24:28 2011 UTC (12 years, 11 months ago) by misho
Branches: MAIN
CVS tags: cfg5_5, cfg5_4, cfg5_3, cfg5_2, cfg5_1, cfg5_0, cfg4_1, HEAD, CFG5_4, CFG5_3, CFG5_2, CFG5_1, CFG5_0, CFG4_0
ver 4.0

#
# (C) 2008 by Michael Pounov <misho@openbsd-bg.org>
#   AITNET ltd - Sofia/Bulgaria
#
# $Author: misho $
# $Id: Makefile.in,v 1.3 2011/05/01 17:24:28 misho Exp $
#

prefix = @prefix@
exec_prefix = @exec_prefix@

LIBS = @LIBS@

CC = @CC@
MKDEP = @MKDEP@

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

LDADD = ${LIBS}

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

SRCS = aitcfg.c parse.c queue.c
OBJS = aitcfg.o parse.o queue.o
LIBSO = libaitcfg.so
LIBA = libaitcfg.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>