2 # Makefile for transsip
3 # Author: Daniel Borkmann
6 include ..
/definitions.mk
8 INCLUDE
= -I..
-I.
/include/
9 LIBS
= .
/nacl
/libnacl.a
-lspeexdsp
-lasound
-lcelt0
-lm
-lreadline
-lpthread
11 core-objs
= transsip.o
12 lib-objs
= xmalloc.o \
25 all: clean gen-version build-nacl build doc
30 @cd ..
&& cat ..
/VERSION | xargs .
/gen_build_info.pl
35 build
: $(lib-objs
) $(core-objs
)
36 @
$(LD
) $(target
) $(core-objs
) $(lib-objs
) $(LIBS
)
40 # @cd ../../Documentation && make clean
41 # @cd ../../Documentation && make transsip
42 # @cp ../../Documentation/man/* .
43 # @cp ../../Documentation/pdf/* .
44 # @cp ../../Documentation/html/* .
47 @
$(CC
) $(CFLAGS
) $(INCLUDE
) $<
50 @
rm -rf .
/nacl
/ .
/tmp
/ .
/include/
53 @
rm *.o
*~
$(target
) ..
/version.h
*.gz
*.pdf
*.html
*.8 *.css \
54 ..
/parser.tab.c ..
/parser.tab.h ..
/lex.yy.c
*.rc \
55 $(DIR_SND
)/*.o
$(DIR_COD
)/*.o
$(DIR_CRY
)/*.o
> /dev
/null
2>&1 || true
58 @
install -D
$(target
) $(DESTDIR
)/$(BINDIR
)/$(target
)
59 @
install -D
$(target
).8.gz
$(DESTDIR
)/usr
/share
/man
/man8
/$(target
).8.gz
62 @
rm $(DESTDIR
)/$(BINDIR
)/$(target
) || true
63 @
rm $(DESTDIR
)/usr
/share
/man
/man8
/$(target
).8.gz || true
66 @echo
'Cleaning targets:'
67 @echo
' clean - Remove generated files'
68 @echo
'Building targets:'
69 @echo
' all - Build transsip (default)'
70 @echo
'Setup targets:'
71 @echo
' install - Install transsip'
72 @echo
' uninstall - Uninstall transsip'
73 @echo
'Other targets:'
74 @echo
' help - Print this help'