File:  [ELWIX - Embedded LightWeight unIX -] / libaitcfg / src / Makefile.in
Revision 1.5.8.1: download - view: text, annotated - select for diffs - revision graph
Wed Mar 26 00:14:26 2014 UTC (10 years, 1 month ago) by misho
Branches: cfg7_6
Diff to: branchpoint 1.5: preferred, colored
remove nostartfiles

#
# (C) 2008 by Michael Pounov <misho@openbsd-bg.org>
#   AITNET ltd - Sofia/Bulgaria
#
# $Author: misho $
# $Id: Makefile.in,v 1.5.8.1 2014/03/26 00:14:26 misho Exp $
#

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

LIBS = @LIBS@

CC = @CC@
MKDEP = @MKDEP@

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

LDADD = ${LIBS}

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

SRCS = aitcfg.c parse.c queue.c pwd.c pq.c
OBJS = aitcfg.o parse.o queue.o pwd.o pq.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}/$@ -Wl,-x,-soname,$@ ${OBJS} ${LDADD}

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