File:  [ELWIX - Embedded LightWeight unIX -] / libelwix / src / Makefile.in
Revision 1.10: download - view: text, annotated - select for diffs - revision graph
Mon Jan 22 15:24:28 2024 UTC (9 months, 1 week ago) by misho
Branches: MAIN
CVS tags: elwix6_1, elwix5_9, elwix5_12, elwix5_11, elwix5_10, HEAD, ELWIX6_0, ELWIX5_9, ELWIX5_8, ELWIX5_11, ELWIX5_10
Version 5.8

#
# (C) 2013 by Michael Pounov <misho@elwix.org>
#   AITNET ltd - Sofia/Bulgaria
#
# $Author: misho $
# $Id: Makefile.in,v 1.10 2024/01/22 15:24:28 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} -I${includedir} -Wall @CFLAGS@
LDFLAGS = -L. -L${LIB} -L${libdir} @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>