2012-07-29 03:39:13 +00:00
|
|
|
SRCS= \
|
|
|
|
audiodevices.c \
|
|
|
|
audio_alsa.c \
|
|
|
|
audio_msm_g1.c \
|
|
|
|
audio_reflector.c \
|
|
|
|
batman.c \
|
2012-04-23 07:33:07 +00:00
|
|
|
ciphers.c \
|
|
|
|
client.c \
|
2012-07-29 03:39:13 +00:00
|
|
|
codecs.c \
|
2012-04-23 07:33:07 +00:00
|
|
|
commandline.c \
|
2012-07-04 09:27:02 +00:00
|
|
|
conf.c \
|
2012-07-29 03:39:13 +00:00
|
|
|
dataformats.c \
|
|
|
|
dna_helper.c \
|
2012-04-23 07:33:07 +00:00
|
|
|
dna_identity.c \
|
|
|
|
encode.c \
|
2012-07-29 03:39:13 +00:00
|
|
|
fdqueue.c \
|
2012-04-23 07:33:07 +00:00
|
|
|
fifo.c \
|
|
|
|
gateway.c \
|
|
|
|
keyring.c \
|
2012-07-29 03:39:13 +00:00
|
|
|
log.c \
|
|
|
|
lsif.c \
|
|
|
|
main.c \
|
|
|
|
mkdir.c \
|
|
|
|
monitor.c \
|
|
|
|
monitor-cli.c \
|
|
|
|
net.c \
|
2012-04-23 07:33:07 +00:00
|
|
|
overlay.c \
|
|
|
|
overlay_abbreviations.c \
|
|
|
|
overlay_advertise.c \
|
|
|
|
overlay_broadcast.c \
|
|
|
|
overlay_buffer.c \
|
|
|
|
overlay_interface.c \
|
|
|
|
overlay_mdp.c \
|
|
|
|
overlay_packetformats.c \
|
|
|
|
overlay_payload.c \
|
|
|
|
overlay_route.c \
|
|
|
|
packetformats.c \
|
2012-07-02 03:49:54 +00:00
|
|
|
performance_timing.c \
|
2012-04-23 07:33:07 +00:00
|
|
|
peers.c \
|
|
|
|
randombytes.c \
|
|
|
|
responses.c \
|
|
|
|
rhizome.c \
|
|
|
|
rhizome_bundle.c \
|
|
|
|
rhizome_crypto.c \
|
|
|
|
rhizome_database.c \
|
|
|
|
rhizome_fetch.c \
|
|
|
|
rhizome_http.c \
|
|
|
|
rhizome_packetformats.c \
|
|
|
|
serval_packetvisualise.c \
|
|
|
|
server.c \
|
|
|
|
sha2.c \
|
2012-07-29 03:39:13 +00:00
|
|
|
sighandlers.c \
|
2012-04-23 07:33:07 +00:00
|
|
|
simulate.c \
|
2012-08-27 07:33:50 +00:00
|
|
|
sqlite-amalgamation-3070900/sqlite3.c \
|
2012-04-23 07:33:07 +00:00
|
|
|
srandomdev.c \
|
2012-08-06 02:55:45 +00:00
|
|
|
str.c \
|
2012-07-29 03:39:13 +00:00
|
|
|
strbuf.c \
|
|
|
|
strbuf_helpers.c \
|
2012-08-13 08:52:17 +00:00
|
|
|
strlcpy.c \
|
2012-08-12 02:45:23 +00:00
|
|
|
subscribers.c \
|
2012-08-03 07:14:05 +00:00
|
|
|
vomp.c \
|
|
|
|
xprintf.c
|
2012-03-14 22:54:31 +00:00
|
|
|
|
2012-07-29 03:34:03 +00:00
|
|
|
MONITORCLIENTSRCS=conf.c \
|
|
|
|
log.c \
|
|
|
|
mkdir.c \
|
|
|
|
monitor-client.c \
|
|
|
|
net.c \
|
2012-08-06 02:55:45 +00:00
|
|
|
str.c \
|
2012-07-29 03:34:03 +00:00
|
|
|
strbuf.c \
|
|
|
|
strbuf_helpers.c
|
|
|
|
|
2012-04-23 10:47:11 +00:00
|
|
|
HAVE_VOIPTEST= @HAVE_VOIPTEST@
|
|
|
|
ifeq ($(HAVE_VOIPTEST), 1)
|
|
|
|
SRCS+= pa_phone.c
|
|
|
|
VOIPTEST_CFLAGS=-DHAVE_VOIPTEST=1
|
|
|
|
endif
|
|
|
|
|
2012-04-19 06:18:00 +00:00
|
|
|
OBJS= $(SRCS:.c=.o)
|
2012-03-14 22:54:31 +00:00
|
|
|
|
2012-07-29 03:34:03 +00:00
|
|
|
MONITORCLIENTOBJS= $(MONITORCLIENTSRCS:.c=.o)
|
|
|
|
|
2012-04-23 07:33:07 +00:00
|
|
|
HDRS= fifo.h \
|
|
|
|
Makefile \
|
2012-08-22 00:51:38 +00:00
|
|
|
overlay_buffer.h \
|
2012-04-23 07:33:07 +00:00
|
|
|
rhizome.h \
|
|
|
|
serval.h \
|
2012-05-20 03:32:41 +00:00
|
|
|
strbuf.h \
|
2012-07-11 04:41:59 +00:00
|
|
|
strbuf_helpers.h \
|
2012-08-12 02:45:23 +00:00
|
|
|
subscribers.h \
|
2012-04-23 07:33:07 +00:00
|
|
|
sha2.h \
|
2012-07-29 03:05:53 +00:00
|
|
|
conf.h \
|
|
|
|
log.h \
|
2012-08-23 03:01:07 +00:00
|
|
|
net.h \
|
2012-08-03 07:14:05 +00:00
|
|
|
xprintf.h \
|
2012-07-29 03:05:53 +00:00
|
|
|
constants.h \
|
|
|
|
monitor-client.h \
|
2012-04-23 07:33:07 +00:00
|
|
|
sqlite-amalgamation-3070900/sqlite3.h
|
2012-03-14 22:54:31 +00:00
|
|
|
|
2012-04-23 11:10:34 +00:00
|
|
|
LDFLAGS=@LDFLAGS@ @PORTAUDIO_LIBS@ @SRC_LIBS@ @SPANDSP_LIBS@ @CODEC2_LIBS@ @PTHREAD_LIBS@
|
2012-03-14 22:54:31 +00:00
|
|
|
|
2012-08-27 07:33:50 +00:00
|
|
|
CFLAGS= -Isqlite-amalgamation-3070900 @CPPFLAGS@ @CFLAGS@ @PORTAUDIO_CFLAGS@ @SRC_CFLAGS@ @SPANDSP_CFLAGS@ @PTHREAD_CFLAGS@ $(VOIPTEST_CFLAGS)
|
2012-08-06 07:33:00 +00:00
|
|
|
CFLAGS+=-fPIC
|
2012-06-15 05:31:14 +00:00
|
|
|
CFLAGS+=-Wall -Wno-unused-value
|
2012-07-29 05:25:10 +00:00
|
|
|
-include Makefile.dbg
|
2012-06-15 05:31:14 +00:00
|
|
|
|
|
|
|
DEFS= @DEFS@
|
2012-04-23 10:47:11 +00:00
|
|
|
|
2012-08-10 05:06:46 +00:00
|
|
|
all: servald libmonitorclient.so libmonitorclient.a
|
2012-03-14 22:54:31 +00:00
|
|
|
|
2012-08-27 07:33:50 +00:00
|
|
|
sqlite-amalgamation-3070900/sqlite3.o: sqlite-amalgamation-3070900/sqlite3.c
|
2012-05-10 03:53:06 +00:00
|
|
|
@echo CC $<
|
2012-08-27 07:33:50 +00:00
|
|
|
@$(CC) $(CFLAGS) $(DEFS) -c $< -o sqlite-amalgamation-3070900/sqlite3.o
|
2012-04-20 07:40:38 +00:00
|
|
|
|
2012-03-14 22:54:31 +00:00
|
|
|
%.o: %.c $(HDRS)
|
2012-05-10 03:53:06 +00:00
|
|
|
@echo CC $<
|
2012-05-29 00:10:29 +00:00
|
|
|
@$(CC) $(CFLAGS) $(DEFS) -c $<
|
2012-03-14 22:54:31 +00:00
|
|
|
|
2012-07-29 03:05:53 +00:00
|
|
|
servald: $(OBJS)
|
2012-05-10 03:53:06 +00:00
|
|
|
@echo LINK $@
|
|
|
|
@$(CC) $(CFLAGS) -Wall -o $@ $(OBJS) $(LDFLAGS)
|
2012-04-20 07:27:36 +00:00
|
|
|
|
2012-06-15 05:31:14 +00:00
|
|
|
# This does not build on 64 bit elf platforms as NaCL isn't built with -fPIC
|
|
|
|
# DOC 20120615
|
2012-04-20 07:27:36 +00:00
|
|
|
libservald.so: $(OBJS)
|
2012-05-10 03:53:06 +00:00
|
|
|
@echo LINK $@
|
|
|
|
@$(CC) $(CFLAGS) -Wall -shared -o $@ $(OBJS) $(LDFLAGS)
|
2012-03-14 22:54:31 +00:00
|
|
|
|
2012-07-29 03:34:03 +00:00
|
|
|
libmonitorclient.so: $(MONITORCLIENTOBJS)
|
2012-07-29 03:05:53 +00:00
|
|
|
@echo LINK $@
|
2012-07-29 03:34:03 +00:00
|
|
|
@$(CC) $(CFLAGS) -Wall -shared -o $@ $(MONITORCLIENTOBJS) $(LDFLAGS)
|
2012-03-14 22:54:31 +00:00
|
|
|
|
2012-08-10 05:06:46 +00:00
|
|
|
libmonitorclient.a: $(MONITORCLIENTOBJS)
|
|
|
|
@echo AR $@
|
|
|
|
@$(AR) -cr $@ $(MONITORCLIENTOBJS)
|
|
|
|
|
2012-05-21 04:23:34 +00:00
|
|
|
clean:
|
2012-08-10 05:06:46 +00:00
|
|
|
@rm -f $(OBJS) servald libservald.so libmonitorclient.so libmonitorclient.a
|