1: #
2: # (C) 2011 by Michael Pounov <misho@openbsd-bg.org>
3: # AITNET ltd - Sofia/Bulgaria
4: #
5: # $Author: misho $
6: # $Id: Makefile.in,v 1.3.4.1 2014/03/26 00:23:39 misho Exp $
7: #
8: prefix = @prefix@
9: exec_prefix = @exec_prefix@
10: includedir = @includedir@
11: libdir = @libdir@
12:
13: LIBS = @LIBS@
14:
15: CC = @CC@
16: MKDEP = @MKDEP@
17: RANLIB = @RANLIB@
18:
19: INC = ../inc
20: LIB = ../lib
21:
22: LDADD = ${LIBS}
23:
24: CFLAGS = -I. -I${INC} -I${includedir} -Wall @CFLAGS@
25: LDFLAGS = -L. -L${LIB} -L${libdir} @LDFLAGS@
26:
27:
28: SRCS = aitsched.c hooks.c tasks.c
29: OBJS = aitsched.o hooks.o tasks.o
30: LIBSO = libaitsched.so
31: LIBA = libaitsched.a
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: .c.o:
47: ${CC} -c ${CFLAGS} $<
48:
49: ${LIBA}: ${OBJS}
50: ${AR} -rc ${LIB}/$@ ${OBJS}
51: ${RANLIB} ${LIB}/$@
52:
53: ${LIBSO}: ${OBJS}
54: ${CC} ${LDFLAGS} -shared -o ${LIB}/$@ -Wl,-x,-soname,$@ ${OBJS} ${LDADD}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>