File:  [ELWIX - Embedded LightWeight unIX -] / libelwix / src / Makefile.in
Revision 1.11: download - view: text, annotated - select for diffs - revision graph
Thu Oct 10 23:55:48 2024 UTC (6 weeks, 3 days ago) by misho
Branches: MAIN
CVS tags: elwix6_6, elwix6_5, elwix6_4, elwix6_3, elwix6_2, HEAD, ELWIX6_5, ELWIX6_4, ELWIX6_2, ELWIX6_1
Version 6.1

#
# (C) 2013 by Michael Pounov <misho@elwix.org>
#   AITNET ltd - Sofia/Bulgaria
#
# $Author: misho $
# $Id: Makefile.in,v 1.11 2024/10/10 23:55:48 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 = elwix.c mem.c crc.c crc_tbl.c hash.c pelco.c str.c av.c regex.c \
       array.c sarray.c vars.c net.c time.c pack.c pio.c json.c \
       iov.c index.c patricia.c
OBJS = elwix.o mem.o crc.o crc_tbl.o hash.o pelco.o str.o av.o regex.o \
       array.o sarray.o vars.o net.o time.o pack.o pio.o json.o \
       iov.o index.o patricia.o
LIBSO = libelwix.so
LIBA = libelwix.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>