File:  [ELWIX - Embedded LightWeight unIX -] / libaitsched / src / Makefile.in
Revision 1.1.1.1.8.1: download - view: text, annotated - select for diffs - revision graph
Sun Jan 8 01:32:12 2012 UTC (12 years, 10 months ago) by misho
Branches: sched1_3
Diff to: branchpoint 1.1.1.1: preferred, unified
added pthread support to project

#
# (C) 2011 by Michael Pounov <misho@openbsd-bg.org>
#   AITNET ltd - Sofia/Bulgaria
#
# $Author: misho $
# $Id: Makefile.in,v 1.1.1.1.8.1 2012/01/08 01:32:12 misho Exp $
#
prefix = @prefix@
exec_prefix = @exec_prefix@

LIBS = @LIBS@

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

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

LDADD = ${LIBS}

CFLAGS = -I. -I${INC} -g @CFLAGS@
LDFLAGS = -L. -L${LIB} @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}/$@ -nostartfiles -Wl,-x,-soname,$@ ${OBJS} ${LDADD}

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