#
# (C) 2011 AITnet - Sofia/Bulgaria - <misho@openbsd-bg.org>
# by Michael Pounov <misho@elwix.org>
#
# $Author: misho $
# $Id: Makefile.in,v 1.3 2014/04/27 16:29:40 misho Exp $
#
prefix = @prefix@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@
LIBS = @LIBS@
AR = @AR@
CC = @CC@
MKDEP = @MKDEP@
RANLIB = @RANLIB@
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
OBJS = aitmqtt.o conn.o pub.o sub.o srvside.o cliside.o cmds.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}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>