Annotation of libaitmqtt/src/Makefile.in, revision 1.3
1.1 misho 1: #
2: # (C) 2011 AITnet - Sofia/Bulgaria - <misho@openbsd-bg.org>
3: # by Michael Pounov <misho@elwix.org>
4: #
5: # $Author: misho $
1.3 ! misho 6: # $Id: Makefile.in,v 1.2.12.2 2014/03/26 00:27:10 misho Exp $
1.1 misho 7: #
8: prefix = @prefix@
9: exec_prefix = @exec_prefix@
1.3 ! misho 10: includedir = @includedir@
! 11: libdir = @libdir@
1.1 misho 12:
13: LIBS = @LIBS@
14:
15: AR = @AR@
16: CC = @CC@
17: MKDEP = @MKDEP@
18: RANLIB = @RANLIB@
19:
20: INC = ../inc
21: LIB = ../lib
22:
23: LDADD = ${LIBS}
24:
1.3 ! misho 25: CFLAGS = -I. -I${INC} -I${includedir} -Wall -DAPI_SERVER_SIDE -DAPI_CLIENT_SIDE @CFLAGS@
! 26: LDFLAGS = -L. -L${LIB} -L${libdir} @LDFLAGS@
1.1 misho 27:
1.2 misho 28: SRCS = aitmqtt.c conn.c pub.c sub.c srvside.c cliside.c cmds.c
29: OBJS = aitmqtt.o conn.o pub.o sub.o srvside.o cliside.o cmds.o
1.1 misho 30: LIBA = libaitmqtt.a
31: LIBSO = libaitmqtt.so
32:
33:
34: all: depend \
35: ${LIBA} \
36: ${LIBSO}
37:
38: depend:
39: ${MKDEP} ${CFLAGS} ${SRCS}
40:
41: clean:
42: @rm -f *.o .depend *~
43:
44: install:
45:
46: .o:
47: ${CC} -c ${CFLAGS} $<
48:
49: ${LIBA}: ${OBJS}
50: ${AR} -rc ${LIB}/$@ ${OBJS}
51: ${RANLIB} ${LIB}/$@
52:
53: ${LIBSO}: ${OBJS}
1.3 ! misho 54: ${CC} ${LDFLAGS} -shared -o ${LIB}/$@ -Wl,-x,-soname,$@ ${OBJS}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>