File:  [ELWIX - Embedded LightWeight unIX -] / libaitsched / src / Makefile.in
Revision 1.3.4.1: download - view: text, annotated - select for diffs - revision graph
Wed Mar 26 00:23:39 2014 UTC (10 years, 7 months ago) by misho
Branches: sched5_1
Diff to: branchpoint 1.3: preferred, unified
remove nostartfiles

#
# (C) 2011 by Michael Pounov <misho@openbsd-bg.org>
#   AITNET ltd - Sofia/Bulgaria
#
# $Author: misho $
# $Id: Makefile.in,v 1.3.4.1 2014/03/26 00:23:39 misho Exp $
#
prefix = @prefix@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@

LIBS = @LIBS@

CC = @CC@
MKDEP = @MKDEP@
RANLIB = @RANLIB@

INC = ../inc
LIB = ../lib

LDADD = ${LIBS}

CFLAGS = -I. -I${INC} -I${includedir} -Wall @CFLAGS@
LDFLAGS = -L. -L${LIB} -L${libdir} @LDFLAGS@


SRCS = aitsched.c hooks.c tasks.c
OBJS = aitsched.o hooks.o tasks.o
LIBSO = libaitsched.so
LIBA = libaitsched.a


all: depend \
		${LIBA} \
		${LIBSO}

depend:
	${MKDEP} ${CFLAGS} ${SRCS}

clean:
	@rm -f *.o *~ .depend

install:

.c.o:
	${CC} -c ${CFLAGS} $<

${LIBA}: ${OBJS}
	${AR} -rc ${LIB}/$@ ${OBJS}
	${RANLIB} ${LIB}/$@

${LIBSO}: ${OBJS}
	${CC} ${LDFLAGS} -shared -o ${LIB}/$@ -Wl,-x,-soname,$@ ${OBJS} ${LDADD}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>