summaryrefslogtreecommitdiff
path: root/src/compile.sh
blob: 358577b59b176807165dedc44df53fc13bd467bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

PACKAGE_NAME="TpLogger"
CC=${CC:-gcc}
CCOPTS="-D__USE_POSIX -DPACKAGE_NAME=\"${PACKAGE_NAME}\" --std=c99 -g -I../include -Wall -Werror" # -pedantic"
PKGS="telepathy-glib libxml-2.0"
MODULES="tpl-observer.c tpl-headless-logger-init.c
	tpl-channel.c tpl-text-channel-context.c 
	tpl-contact.c
	tpl-utils.c
	tpl-time.c
	tpl-log-manager.c
	tpl-log-store.c
	tpl-log-store-empathy.c
	tpl-log-entry-text.c
	test.c"
EXECUTABLE="telepathy-logger"


${CC} ${CCOPTS} $(pkg-config --libs --cflags ${PKGS}) ${MODULES} \
	-o ${EXECUTABLE}
RET=$?

exit $RET