Annotation of libaitmqtt/src/Makefile.in, revision 1.3.2.2
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.2.2 ! misho 6: # $Id: Makefile.in,v 1.3.2.1 2016/09/14 15:23:51 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: CC = @CC@
16: RANLIB = @RANLIB@
1.3.2.1 misho 17: MKDEP = @MKDEP@
1.1 misho 18:
19: INC = ../inc
20: LIB = ../lib
21:
22: LDADD = ${LIBS}
23:
1.3 misho 24: CFLAGS = -I. -I${INC} -I${includedir} -Wall -DAPI_SERVER_SIDE -DAPI_CLIENT_SIDE @CFLAGS@
25: LDFLAGS = -L. -L${LIB} -L${libdir} @LDFLAGS@
1.1 misho 26:
1.2 misho 27: SRCS = aitmqtt.c conn.c pub.c sub.c srvside.c cliside.c cmds.c
28: OBJS = aitmqtt.o conn.o pub.o sub.o srvside.o cliside.o cmds.o
1.1 misho 29: LIBA = libaitmqtt.a
30: LIBSO = libaitmqtt.so
31:
32:
33: all: depend \
34: ${LIBA} \
35: ${LIBSO}
36:
37: depend:
38: ${MKDEP} ${CFLAGS} ${SRCS}
39:
40: clean:
41: @rm -f *.o .depend *~
42:
43: install:
44:
45: .o:
46: ${CC} -c ${CFLAGS} $<
47:
48: ${LIBA}: ${OBJS}
49: ${AR} -rc ${LIB}/$@ ${OBJS}
50: ${RANLIB} ${LIB}/$@
51:
52: ${LIBSO}: ${OBJS}
1.3.2.2 ! misho 53: ${CC} ${LDFLAGS} -shared -o ${LIB}/$@ -Wl,-x,-soname,$@ ${OBJS} ${LDADD}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>