2012-07-29 13:09:13 +09:30
|
|
|
SRCS= \
|
|
|
|
audiodevices.c \
|
|
|
|
audio_reflector.c \
|
|
|
|
batman.c \
|
2012-04-23 17:03:07 +09:30
|
|
|
ciphers.c \
|
|
|
|
client.c \
|
2012-07-29 13:09:13 +09:30
|
|
|
codecs.c \
|
2012-04-23 17:03:07 +09:30
|
|
|
commandline.c \
|
2012-07-04 18:57:02 +09:30
|
|
|
conf.c \
|
2012-07-29 13:09:13 +09:30
|
|
|
dataformats.c \
|
|
|
|
dna_helper.c \
|
2012-04-23 17:03:07 +09:30
|
|
|
dna_identity.c \
|
|
|
|
encode.c \
|
2012-07-29 13:09:13 +09:30
|
|
|
fdqueue.c \
|
2012-04-23 17:03:07 +09:30
|
|
|
fifo.c \
|
|
|
|
gateway.c \
|
|
|
|
keyring.c \
|
2012-07-29 13:09:13 +09:30
|
|
|
log.c \
|
|
|
|
lsif.c \
|
|
|
|
main.c \
|
|
|
|
mkdir.c \
|
|
|
|
monitor.c \
|
|
|
|
monitor-cli.c \
|
|
|
|
net.c \
|
2012-04-23 17:03:07 +09:30
|
|
|
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 13:19:54 +09:30
|
|
|
performance_timing.c \
|
2012-04-23 17:03:07 +09:30
|
|
|
peers.c \
|
|
|
|
randombytes.c \
|
|
|
|
responses.c \
|
|
|
|
rhizome.c \
|
|
|
|
rhizome_bundle.c \
|
|
|
|
rhizome_crypto.c \
|
|
|
|
rhizome_database.c \
|
2012-08-28 13:32:02 +09:30
|
|
|
rhizome_direct.c \
|
2012-04-23 17:03:07 +09:30
|
|
|
rhizome_fetch.c \
|
|
|
|
rhizome_http.c \
|
|
|
|
rhizome_packetformats.c \
|
|
|
|
serval_packetvisualise.c \
|
|
|
|
server.c \
|
|
|
|
sha2.c \
|
2012-07-29 13:09:13 +09:30
|
|
|
sighandlers.c \
|
2012-04-23 17:03:07 +09:30
|
|
|
simulate.c \
|
2012-08-27 17:03:50 +09:30
|
|
|
sqlite-amalgamation-3070900/sqlite3.c \
|
2012-04-23 17:03:07 +09:30
|
|
|
srandomdev.c \
|
2012-08-06 12:25:45 +09:30
|
|
|
str.c \
|
2012-07-29 13:09:13 +09:30
|
|
|
strbuf.c \
|
|
|
|
strbuf_helpers.c \
|
2012-08-13 18:22:17 +09:30
|
|
|
strlcpy.c \
|
2012-08-03 16:44:05 +09:30
|
|
|
vomp.c \
|
|
|
|
xprintf.c
|
2012-03-15 09:24:31 +10:30
|
|
|
|
2012-09-06 12:43:06 +09:30
|
|
|
HAVE_ALSA= @HAVE_ALSA@
|
|
|
|
ifeq (HAVE_ALSA,1)
|
|
|
|
SRCS+= audio_alsa.c
|
2012-09-05 18:53:22 +09:30
|
|
|
endif
|
|
|
|
|
2012-07-29 13:04:03 +09:30
|
|
|
MONITORCLIENTSRCS=conf.c \
|
|
|
|
log.c \
|
|
|
|
mkdir.c \
|
|
|
|
monitor-client.c \
|
|
|
|
net.c \
|
2012-08-06 12:25:45 +09:30
|
|
|
str.c \
|
2012-07-29 13:04:03 +09:30
|
|
|
strbuf.c \
|
|
|
|
strbuf_helpers.c
|
|
|
|
|
2012-04-23 20:17:11 +09:30
|
|
|
HAVE_VOIPTEST= @HAVE_VOIPTEST@
|
|
|
|
ifeq ($(HAVE_VOIPTEST), 1)
|
|
|
|
SRCS+= pa_phone.c
|
|
|
|
VOIPTEST_CFLAGS=-DHAVE_VOIPTEST=1
|
|
|
|
endif
|
|
|
|
|
2012-04-19 15:48:00 +09:30
|
|
|
OBJS= $(SRCS:.c=.o)
|
2012-03-15 09:24:31 +10:30
|
|
|
|
2012-07-29 13:04:03 +09:30
|
|
|
MONITORCLIENTOBJS= $(MONITORCLIENTSRCS:.c=.o)
|
|
|
|
|
2012-04-23 17:03:07 +09:30
|
|
|
HDRS= fifo.h \
|
|
|
|
Makefile \
|
|
|
|
rhizome.h \
|
|
|
|
serval.h \
|
2012-05-20 13:02:41 +09:30
|
|
|
strbuf.h \
|
2012-07-11 14:11:59 +09:30
|
|
|
strbuf_helpers.h \
|
2012-04-23 17:03:07 +09:30
|
|
|
sha2.h \
|
2012-07-29 12:35:53 +09:30
|
|
|
conf.h \
|
|
|
|
log.h \
|
2012-08-23 12:31:07 +09:30
|
|
|
net.h \
|
2012-08-03 16:44:05 +09:30
|
|
|
xprintf.h \
|
2012-07-29 12:35:53 +09:30
|
|
|
constants.h \
|
|
|
|
monitor-client.h \
|
2012-04-23 17:03:07 +09:30
|
|
|
sqlite-amalgamation-3070900/sqlite3.h
|
2012-03-15 09:24:31 +10:30
|
|
|
|
2012-09-05 18:53:22 +09:30
|
|
|
LDFLAGS=@LDFLAGS@ @LIBS@ @PORTAUDIO_LIBS@ @SRC_LIBS@ @SPANDSP_LIBS@ @CODEC2_LIBS@ @PTHREAD_LIBS@
|
2012-03-15 09:24:31 +10:30
|
|
|
|
2012-08-27 17:03:50 +09:30
|
|
|
CFLAGS= -Isqlite-amalgamation-3070900 @CPPFLAGS@ @CFLAGS@ @PORTAUDIO_CFLAGS@ @SRC_CFLAGS@ @SPANDSP_CFLAGS@ @PTHREAD_CFLAGS@ $(VOIPTEST_CFLAGS)
|
2012-08-06 17:03:00 +09:30
|
|
|
CFLAGS+=-fPIC
|
2012-06-15 15:01:14 +09:30
|
|
|
CFLAGS+=-Wall -Wno-unused-value
|
2012-09-05 18:53:22 +09:30
|
|
|
# Solaris magic
|
|
|
|
CFLAGS+=-DSHA2_USE_INTTYPES_H -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__=1
|
2012-09-06 14:32:17 +09:30
|
|
|
# OSX magic to compensate for the Solaris magic
|
|
|
|
CFLAGS+=-D_DARWIN_C_SOURCE
|
2012-07-29 14:55:10 +09:30
|
|
|
-include Makefile.dbg
|
2012-06-15 15:01:14 +09:30
|
|
|
|
|
|
|
DEFS= @DEFS@
|
2012-04-23 20:17:11 +09:30
|
|
|
|
2012-08-10 14:36:46 +09:30
|
|
|
all: servald libmonitorclient.so libmonitorclient.a
|
2012-03-15 09:24:31 +10:30
|
|
|
|
2012-08-27 17:03:50 +09:30
|
|
|
sqlite-amalgamation-3070900/sqlite3.o: sqlite-amalgamation-3070900/sqlite3.c
|
2012-05-10 13:23:06 +09:30
|
|
|
@echo CC $<
|
2012-08-27 17:03:50 +09:30
|
|
|
@$(CC) $(CFLAGS) $(DEFS) -c $< -o sqlite-amalgamation-3070900/sqlite3.o
|
2012-04-20 17:10:38 +09:30
|
|
|
|
2012-03-15 09:24:31 +10:30
|
|
|
%.o: %.c $(HDRS)
|
2012-05-10 13:23:06 +09:30
|
|
|
@echo CC $<
|
2012-05-29 09:40:29 +09:30
|
|
|
@$(CC) $(CFLAGS) $(DEFS) -c $<
|
2012-03-15 09:24:31 +10:30
|
|
|
|
2012-07-29 12:35:53 +09:30
|
|
|
servald: $(OBJS)
|
2012-05-10 13:23:06 +09:30
|
|
|
@echo LINK $@
|
|
|
|
@$(CC) $(CFLAGS) -Wall -o $@ $(OBJS) $(LDFLAGS)
|
2012-04-20 16:57:36 +09:30
|
|
|
|
2012-06-15 15:01:14 +09:30
|
|
|
# This does not build on 64 bit elf platforms as NaCL isn't built with -fPIC
|
|
|
|
# DOC 20120615
|
2012-04-20 16:57:36 +09:30
|
|
|
libservald.so: $(OBJS)
|
2012-05-10 13:23:06 +09:30
|
|
|
@echo LINK $@
|
|
|
|
@$(CC) $(CFLAGS) -Wall -shared -o $@ $(OBJS) $(LDFLAGS)
|
2012-03-15 09:24:31 +10:30
|
|
|
|
2012-07-29 13:04:03 +09:30
|
|
|
libmonitorclient.so: $(MONITORCLIENTOBJS)
|
2012-07-29 12:35:53 +09:30
|
|
|
@echo LINK $@
|
2012-07-29 13:04:03 +09:30
|
|
|
@$(CC) $(CFLAGS) -Wall -shared -o $@ $(MONITORCLIENTOBJS) $(LDFLAGS)
|
2012-03-15 09:24:31 +10:30
|
|
|
|
2012-08-10 14:36:46 +09:30
|
|
|
libmonitorclient.a: $(MONITORCLIENTOBJS)
|
|
|
|
@echo AR $@
|
|
|
|
@$(AR) -cr $@ $(MONITORCLIENTOBJS)
|
|
|
|
|
2012-05-21 13:53:34 +09:30
|
|
|
clean:
|
2012-08-10 14:36:46 +09:30
|
|
|
@rm -f $(OBJS) servald libservald.so libmonitorclient.so libmonitorclient.a
|