Added a first version of help to netyack, todo: rename
[transsip-mirror.git] / src / netyack / Makefile
blob71cb0584900250c410f73d2e2eb94b8ed9976bf8
2 # Makefile for netyack
3 # Author: Daniel Borkmann
6 include ../definitions.mk
8 INCLUDE = -I..
9 LIBS = -ljack -lpthread -ldl -lrt -lspeexdsp -lcelt0 -lm
11 core-objs = netyack.o
12 lib-objs = xmalloc.o \
13 strlcpy.o
15 target = netyack
17 all: clean build doc
18 debug: all
19 develop: all
21 #gen-version:
22 # @cd .. && cat ../VERSION | xargs ./gen_build_info.pl
24 build: $(lib-objs) $(core-objs)
25 @$(LD) $(target) $(core-objs) $(all-objs) $(LIBS)
26 @strip $(target)
28 doc:
29 # @cd ../../Documentation && make clean
30 # @cd ../../Documentation && make netyack
31 # @cp ../../Documentation/man/* .
32 # @cp ../../Documentation/pdf/* .
33 # @cp ../../Documentation/html/* .
35 %.o: ../%.c
36 @$(CC) $(CFLAGS) $(INCLUDE) $<
38 clean:
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
43 install:
44 @install -D $(target) $(DESTDIR)/$(BINDIR)/$(target)
45 @install -D $(target).8.gz $(DESTDIR)/usr/share/man/man8/$(target).8.gz
47 uninstall:
48 @rm $(DESTDIR)/$(BINDIR)/$(target) || true
49 @rm $(DESTDIR)/usr/share/man/man8/$(target).8.gz || true
51 help:
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'