3 # Author: Daniel Borkmann
6 include ..
/definitions.mk
9 LIBS
= -ljack
-lpthread
-ldl
-lrt
-lspeexdsp
-lcelt0
-lm
12 lib-objs
= xmalloc.o \
22 # @cd .. && cat ../VERSION | xargs ./gen_build_info.pl
24 build
: $(lib-objs
) $(core-objs
)
25 @
$(LD
) $(target
) $(core-objs
) $(all-objs
) $(LIBS
)
29 # @cd ../../Documentation && make clean
30 # @cd ../../Documentation && make netyack
31 # @cp ../../Documentation/man/* .
32 # @cp ../../Documentation/pdf/* .
33 # @cp ../../Documentation/html/* .
36 @
$(CC
) $(CFLAGS
) $(INCLUDE
) $<
39 @
rm *.o
*~
$(target
) ..
/version.h
*.gz
*.pdf
*.html
*.8 *.css \
40 ..
/parser.tab.c ..
/parser.tab.h ..
/lex.yy.c
*.rc \
41 $(DIR_SND
)/*.o
$(DIR_COD
)/*.o
$(DIR_CRY
)/*.o
> /dev
/null
2>&1 || true
44 @
install -D
$(target
) $(DESTDIR
)/$(BINDIR
)/$(target
)
45 @
install -D
$(target
).8.gz
$(DESTDIR
)/usr
/share
/man
/man8
/$(target
).8.gz
48 @
rm $(DESTDIR
)/$(BINDIR
)/$(target
) || true
49 @
rm $(DESTDIR
)/usr
/share
/man
/man8
/$(target
).8.gz || true
52 @echo
'Cleaning targets:'
53 @echo
' clean - Remove generated files'
54 @echo
'Building targets:'
55 @echo
' all - Build netyack (default)'
56 @echo
' debug - Build netyack for debugging _only_'
57 @echo
'Setup targets:'
58 @echo
' install - Install netyack'
59 @echo
' uninstall - Uninstall netyack'
60 @echo
'Other targets:'
61 @echo
' help - Print this help'