2012-07-29 03:39:13 +00:00
|
|
|
SRCS= \
|
|
|
|
audiodevices.c \
|
|
|
|
audio_reflector.c \
|
|
|
|
batman.c \
|
2012-04-23 07:33:07 +00:00
|
|
|
ciphers.c \
|
2012-09-25 04:01:34 +00:00
|
|
|
cli.c \
|
2012-04-23 07:33:07 +00:00
|
|
|
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 \
|
2012-09-14 02:20:45 +00:00
|
|
|
directory_client.c \
|
2012-07-29 03:39:13 +00:00
|
|
|
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 \
|
2012-09-14 02:17:48 +00:00
|
|
|
mdp_client.c \
|
2012-07-29 03:39:13 +00:00
|
|
|
mkdir.c \
|
|
|
|
monitor.c \
|
2012-09-25 04:01:34 +00:00
|
|
|
monitor-client.c \
|
2012-07-29 03:39:13 +00:00
|
|
|
monitor-cli.c \
|
|
|
|
net.c \
|
2012-04-23 07:33:07 +00:00
|
|
|
overlay.c \
|
|
|
|
overlay_advertise.c \
|
2012-08-27 00:34:59 +00:00
|
|
|
overlay_address.c \
|
2012-04-23 07:33:07 +00:00
|
|
|
overlay_buffer.c \
|
|
|
|
overlay_interface.c \
|
|
|
|
overlay_mdp.c \
|
2012-08-31 05:28:40 +00:00
|
|
|
overlay_olsr.c \
|
2012-04-23 07:33:07 +00:00
|
|
|
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 \
|
2012-08-28 04:02:02 +00:00
|
|
|
rhizome_direct.c \
|
2012-09-09 04:20:09 +00:00
|
|
|
rhizome_direct_http.c \
|
2012-04-23 07:33:07 +00:00
|
|
|
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-03 07:14:05 +00:00
|
|
|
vomp.c \
|
2012-09-27 06:57:37 +00:00
|
|
|
vomp_console.c \
|
2012-08-03 07:14:05 +00:00
|
|
|
xprintf.c
|
2012-03-14 22:54:31 +00:00
|
|
|
|
2012-09-06 03:13:06 +00:00
|
|
|
HAVE_ALSA= @HAVE_ALSA@
|
|
|
|
ifeq (HAVE_ALSA,1)
|
|
|
|
SRCS+= audio_alsa.c
|
2012-09-05 09:23:22 +00:00
|
|
|
endif
|
|
|
|
|
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-09-14 02:17:48 +00:00
|
|
|
MDPCLIENTSRCS=conf.c \
|
2012-09-18 02:56:30 +00:00
|
|
|
dataformats.c \
|
2012-09-14 02:17:48 +00:00
|
|
|
mkdir.c \
|
|
|
|
log.c \
|
|
|
|
mdp_client.c \
|
|
|
|
net.c \
|
|
|
|
str.c \
|
|
|
|
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-09-14 02:17:48 +00:00
|
|
|
MDPCLIENTOBJS= $(MDPCLIENTSRCS:.c=.o)
|
2012-07-29 03:34:03 +00:00
|
|
|
|
2012-04-23 07:33:07 +00:00
|
|
|
HDRS= fifo.h \
|
|
|
|
Makefile \
|
2012-08-22 00:51:38 +00:00
|
|
|
overlay_buffer.h \
|
2012-08-27 00:34:59 +00:00
|
|
|
overlay_address.h \
|
|
|
|
overlay_packet.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-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-09-14 02:17:48 +00:00
|
|
|
mdp_client.h \
|
2012-04-23 07:33:07 +00:00
|
|
|
sqlite-amalgamation-3070900/sqlite3.h
|
2012-03-14 22:54:31 +00:00
|
|
|
|
2012-09-05 09:23:22 +00:00
|
|
|
LDFLAGS=@LDFLAGS@ @LIBS@ @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-09-05 09:23:22 +00:00
|
|
|
# Solaris magic
|
|
|
|
CFLAGS+=-DSHA2_USE_INTTYPES_H -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__=1
|
2012-09-06 05:02:17 +00:00
|
|
|
# OSX magic to compensate for the Solaris magic
|
|
|
|
CFLAGS+=-D_DARWIN_C_SOURCE
|
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-09-14 02:20:45 +00:00
|
|
|
directory_service: $(MDPCLIENTOBJS) directory_service.o
|
|
|
|
@echo LINK $@
|
|
|
|
@$(CC) $(CFLAGS) -Wall -o $@ $(MDPCLIENTOBJS) directory_service.o $(LDFLAGS)
|
|
|
|
|
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
|