# # (C) 2010 by Michael Pounov # AITNET ltd - Sofia/Bulgaria # # $Author: misho $ # $Id: Makefile.in,v 1.7 2024/10/29 01:33:16 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 = aitrpc.c srv.c cli.c builtin.c lists.c blob.c blobcli.c OBJS = aitrpc.o srv.o cli.o builtin.o lists.o blob.o blobcli.o LIBSO = libaitrpc.so LIBA = libaitrpc.a SRCS_CLI = aitrpc.c cli.c blobcli.c OBJS_CLI = aitrpc.o cli.o blobcli.o LIBSO_CLI = libaitrpc_cli.so LIBA_CLI = libaitrpc_cli.a all: allc depend: dependc allc: depend \ ${LIBA_CLI} \ ${LIBSO_CLI} alls: depends \ ${LIBA} \ ${LIBSO} dependc: ${MKDEP} -a ${CFLAGS} ${SRCS_CLI} depends: ${MKDEP} -a ${CFLAGS} ${SRCS} clean: @rm -f *.o *~ .depend install: installs: .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} ${LIBA_CLI}: ${OBJS_CLI} ${AR} -rc ${LIB}/$@ ${OBJS_CLI} ${RANLIB} ${LIB}/$@ ${LIBSO_CLI}: ${OBJS_CLI} ${CC} ${LDFLAGS} -shared -o ${LIB}/$@ -Wl,-x,-soname,$@ ${OBJS_CLI} ${LDADD}