2 # Makefile for transsip
3 # Author: Daniel Borkmann
6 include ..
/definitions.mk
9 LIBS
= -lspeexdsp
-lasound
-lcelt0
-lm
11 core-objs
= transsip.o
12 lib-objs
= xmalloc.o \
20 all: clean gen-version build doc
25 @cd ..
&& cat ..
/VERSION | xargs .
/gen_build_info.pl
27 build
: $(lib-objs
) $(core-objs
)
28 @
$(LD
) $(target
) $(core-objs
) $(all-objs
) $(LIBS
)
32 # @cd ../../Documentation && make clean
33 # @cd ../../Documentation && make transsip
34 # @cp ../../Documentation/man/* .
35 # @cp ../../Documentation/pdf/* .
36 # @cp ../../Documentation/html/* .
39 @
$(CC
) $(CFLAGS
) $(INCLUDE
) $<
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
47 @
install -D
$(target
) $(DESTDIR
)/$(BINDIR
)/$(target
)
48 @
install -D
$(target
).8.gz
$(DESTDIR
)/usr
/share
/man
/man8
/$(target
).8.gz
51 @
rm $(DESTDIR
)/$(BINDIR
)/$(target
) || true
52 @
rm $(DESTDIR
)/usr
/share
/man
/man8
/$(target
).8.gz || true
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'