Removed lib dependency (it was not used)
[transsip-mirror.git] / src / transsip / Makefile
blobf687be507247a00b0cff4df5d6abe6e409c76b76
2 # Makefile for transsip
3 # Author: Daniel Borkmann
6 include ../definitions.mk
8 INCLUDE = -I.. -I.
9 LIBS = -lspeexdsp -lasound -lcelt0 -lm
11 core-objs = transsip.o
12 lib-objs = xmalloc.o \
13 dht.o \
14 stun.o \
15 alsa.o \
16 strlcpy.o
18 target = transsip
20 all: clean gen-version build doc
21 debug: all
22 develop: all
24 gen-version:
25 @cd .. && cat ../VERSION | xargs ./gen_build_info.pl
27 build: $(lib-objs) $(core-objs)
28 @$(LD) $(target) $(core-objs) $(all-objs) $(LIBS)
29 @strip $(target)
31 doc:
32 # @cd ../../Documentation && make clean
33 # @cd ../../Documentation && make transsip
34 # @cp ../../Documentation/man/* .
35 # @cp ../../Documentation/pdf/* .
36 # @cp ../../Documentation/html/* .
38 %.o: ../%.c
39 @$(CC) $(CFLAGS) $(INCLUDE) $<
41 clean:
42 @rm *.o *~ $(target) ../version.h *.gz *.pdf *.html *.8 *.css \
43 ../parser.tab.c ../parser.tab.h ../lex.yy.c *.rc \
44 $(DIR_SND)/*.o $(DIR_COD)/*.o $(DIR_CRY)/*.o > /dev/null 2>&1 || true
46 install:
47 @install -D $(target) $(DESTDIR)/$(BINDIR)/$(target)
48 @install -D $(target).8.gz $(DESTDIR)/usr/share/man/man8/$(target).8.gz
50 uninstall:
51 @rm $(DESTDIR)/$(BINDIR)/$(target) || true
52 @rm $(DESTDIR)/usr/share/man/man8/$(target).8.gz || true
54 help:
55 @echo 'Cleaning targets:'
56 @echo ' clean - Remove generated files'
57 @echo 'Building targets:'
58 @echo ' all - Build transsip (default)'
59 @echo ' debug - Build transsip for debugging _only_'
60 @echo 'Setup targets:'
61 @echo ' install - Install transsip'
62 @echo ' uninstall - Uninstall transsip'
63 @echo 'Other targets:'
64 @echo ' help - Print this help'