General update
[transsip.git] / src / transsip / Makefile
bloba21536bba9b8c3ea1981768c8a91a549b9a1ca1b
2 # Makefile for transsip
3 # Author: Daniel Borkmann
6 include ../definitions.mk
8 INCLUDE = -I.. -I./include/
9 LIBS = -lspeexdsp -lasound -lcelt0 -lm -lreadline -lpthread
11 CFLAGS += -DPROGNAME_STRING="\"transsip\"" -DVERSION_STRING="\"0.5.0\""
13 core-objs = transsip.o
14 lib-objs = xmalloc.o \
15 alsa.o \
16 engine.o \
17 xutils.o \
18 cli.o
20 target = transsip
22 all: clean build
23 debug: all
24 develop: all
26 gen-version:
27 @cd .. && cat ../VERSION | xargs ./gen_build_info.pl
29 build: $(lib-objs) $(core-objs)
30 @$(LD) $(target) $(core-objs) $(lib-objs) $(LIBS)
31 @strip $(target)
33 %.o: ../%.c
34 @$(CC) $(CFLAGS) $(INCLUDE) $<
36 clean:
37 @rm *.o *~ $(target) || true