File:  [ELWIX - Embedded LightWeight unIX -] / libaitmqtt / src / Makefile.in
Revision 1.3.2.3: download - view: text, annotated - select for diffs - revision graph
Wed Sep 14 17:37:13 2022 UTC (21 months, 2 weeks ago) by misho
Branches: mqtt1_8
Diff to: branchpoint 1.3: preferred, unified
adds read file to prepare consolidate read functions
reworks msg publishers

#
# (C) 2011 AITnet - Sofia/Bulgaria - <misho@openbsd-bg.org>
# by Michael Pounov <misho@elwix.org>
#
# $Author: misho $
# $Id: Makefile.in,v 1.3.2.3 2022/09/14 17:37:13 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 -DAPI_SERVER_SIDE -DAPI_CLIENT_SIDE @CFLAGS@
LDFLAGS = -L. -L${LIB} -L${libdir} @LDFLAGS@

SRCS = aitmqtt.c conn.c pub.c sub.c srvside.c cliside.c cmds.c read.c
OBJS = aitmqtt.o conn.o pub.o sub.o srvside.o cliside.o cmds.o read.o
LIBA = libaitmqtt.a
LIBSO = libaitmqtt.so


all: depend \
		${LIBA} \
		${LIBSO}

depend:
	${MKDEP} ${CFLAGS} ${SRCS}

clean:
	@rm -f *.o .depend *~

install:

.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>