1: #
2: # (C) 2010 by Michael Pounov <misho@openbsd-bg.org>
3: # AITNET ltd - Sofia/Bulgaria
4: #
5: # $Author: misho $
6: # $Id: Makefile.in,v 1.1.1.1.2.1 2010/07/13 15:04:43 misho Exp $
7: #
8:
9: prefix = @prefix@
10: exec_prefix = @exec_prefix@
11:
12: LIBS = @LIBS@
13:
14: CC = @CC@
15: MKDEP = @MKDEP@
16: RANLIB = @RANLIB@
17:
18: INC = ../inc
19: LIB = ../lib
20:
21: LDADD = ${LIBS}
22:
23: CFLAGS = -I. -I${INC} @CFLAGS@
24: LDFLAGS = -L. -L${LIB} @LDFLAGS@
25:
26: SRCS = aitsync.c file.c tool.c zc.c patch.c dir.c
27: OBJS = aitsync.o file.o tool.o zc.o patch.o dir.o
28: LIBA = libaitsync.a
29: LIBSO = libaitsync.so
30:
31:
32: all: depend \
33: ${LIBA} \
34: ${LIBSO}
35:
36: depend:
37: ${MKDEP} ${CFLAGS} ${SRCS}
38:
39: clean:
40: @rm -f *.o .depend *~
41:
42: install:
43:
44: .c.o:
45: ${CC} ${CFLAGS} -c $<
46:
47: ${LIBA}: ${OBJS}
48: ${AR} -rc ${LIB}/$@ ${OBJS}
49: ${RANLIB} ${LIB}/$@
50:
51: ${LIBSO}: ${OBJS}
52: ${CC} ${LDFLAGS} -o ${LIB}/$@ -shared -nostartfiles -Wl,-x,-soname,$@ ${OBJS} ${LDADD}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>