-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
42 lines (30 loc) · 964 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $Id$
PKGNAME= ${LIB}
PKGFILES= GNUmakefile Makefile ${SRCS} ${DEBUG_SRCS} test.c
LIB= siplog
LIBTHREAD?= pthread
.if defined(SIPLOG_DEBUG)
CFLAGS+= -DSIPLOG_DEBUG -include siplog_mem_debug.h -g3 -O0
SRCS+= ${DEBUG_SRCS}
.endif
DEBUG_SRCS= siplog_mem_debug.c siplog_mem_debug.h
SRCS+= siplog.c siplog.h internal/_siplog.h siplog_logfile_async.c \
internal/siplog_logfile_async.h
LDADD= -l${LIBTHREAD}
SHLIB_MAJOR= 1
MK_PROFILE= no
WARNS?= 4
CLEANFILES+= test
test: lib${LIB}.a test.c
${CC} ${CFLAGS} -I. test.c -o test -l${LIBTHREAD} -L. -l${LIB}
TSTAMP!= date "+%Y%m%d%H%M%S"
distribution: clean
tar cvfy /tmp/${PKGNAME}-sippy-${TSTAMP}.tbz2 ${PKGFILES}
scp /tmp/${PKGNAME}-sippy-${TSTAMP}.tbz2 [email protected]:/usr/local/www/data/siplog/
git tag rel.${TSTAMP}
git push origin rel.${TSTAMP}
includepolice:
for file in ${SRCS}; do \
python misc/includepolice.py $${file} || sleep 5; \
done
.include <bsd.lib.mk>