# # (C) 2013 by Michael Pounov # 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}