File:  [ELWIX - Embedded LightWeight unIX -] / libaitcfg / src / Makefile.in
Revision 1.7.20.1: download - view: text, annotated - select for diffs - revision graph
Mon Aug 19 19:38:57 2024 UTC (4 months, 3 weeks ago) by misho
Branches: cfg9_5
Diff to: branchpoint 1.7: preferred, unified
rework build

#
# (C) 2008 by Michael Pounov <misho@openbsd-bg.org>
#   AITNET ltd - Sofia/Bulgaria
#
# $Author: misho $
# $Id: Makefile.in,v 1.7.20.1 2024/08/19 19:38:57 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} -Wall -fPIC @CFLAGS@
LDFLAGS = -L. -L${LIB} @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>