all: cleanups in code
[transsip.git] / src / transsip / Makefile
blob8e86ae7e587c29fbf975a643f18426959a8bfe94
1 include definitions.mk
3 INCLUDE = -I.. -I./include/
4 LIBS = -lspeexdsp -lasound -lcelt0 -lm -lreadline -lpthread
6 CFLAGS += -DPROGNAME_STRING="\"transsip\"" -DVERSION_STRING="\"0.5.0\""
8 core-objs = transsip.o
9 lib-objs = xmalloc.o \
10 alsa.o \
11 engine.o \
12 notifier.o \
13 call-notifier.o \
14 xutils.o \
15 stun.o \
16 cli.o \
17 clicmds.o
19 target = transsip
21 all: clean build
22 debug: all
23 develop: all
25 gen-version:
26 @cd .. && cat ../VERSION | xargs ./gen_build_info.pl
28 build: $(lib-objs) $(core-objs)
29 @$(LD) $(target) $(core-objs) $(lib-objs) $(LIBS)
30 @strip $(target)
32 %.o: ../%.c
33 @$(CC) $(CFLAGS) $(INCLUDE) $<
35 clean:
36 @rm *.o $(target) || true