Makefile 446 Bytes
Newer Older
Shawn Webb's avatar
Shawn Webb committed
1
2
3
4
SHLIB=		lattutil
SHLIB_MAJOR=	0
INCS=		liblattutil.h

Shawn Webb's avatar
Shawn Webb committed
5
SRCS+=		config.c
Shawn Webb's avatar
Shawn Webb committed
6
SRCS+=		log-dummy.c
Shawn Webb's avatar
Shawn Webb committed
7
8
SRCS+=		log-main.c
SRCS+=		log-syslog.c
Shawn Webb's avatar
Shawn Webb committed
9
SRCS+=		sqlite3.c
Shawn Webb's avatar
Shawn Webb committed
10

Shawn Webb's avatar
Shawn Webb committed
11
12
13
.PATH: ${.CURDIR}/src
.PATH: ${.CURDIR}/include

Shawn Webb's avatar
Shawn Webb committed
14
CFLAGS+=	-D_lattutil_internal
Shawn Webb's avatar
Shawn Webb committed
15
16
17
18
CFLAGS+=	-I${.CURDIR}/include
CFLAGS+=	-I/usr/local/include
LDFLAGS+=	-L/usr/local/lib

Shawn Webb's avatar
Shawn Webb committed
19
LDADD+=		-lucl -lsqlite3
Shawn Webb's avatar
Shawn Webb committed
20
21
22
23
24
25
26

.if defined(PREFIX)
INCLUDEDIR=	${PREFIX}/include
LIBDIR=		${PREFIX}/lib
.endif

.include <bsd.lib.mk>