serval-dna/Makefile.in

143 lines
2.8 KiB
Makefile
Raw Normal View History

2012-07-29 03:39:13 +00:00
SRCS= \
audiodevices.c \
audio_reflector.c \
batman.c \
ciphers.c \
client.c \
2012-07-29 03:39:13 +00:00
codecs.c \
commandline.c \
conf.c \
2012-07-29 03:39:13 +00:00
dataformats.c \
dna_helper.c \
dna_identity.c \
encode.c \
2012-07-29 03:39:13 +00:00
fdqueue.c \
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 \
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 \
performance_timing.c \
peers.c \
randombytes.c \
responses.c \
rhizome.c \
rhizome_bundle.c \
rhizome_crypto.c \
rhizome_database.c \
rhizome_direct.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 \
simulate.c \
sqlite-amalgamation-3070900/sqlite3.c \
srandomdev.c \
str.c \
2012-07-29 03:39:13 +00:00
strbuf.c \
strbuf_helpers.c \
strlcpy.c \
vomp.c \
xprintf.c
2012-09-06 03:13:06 +00:00
HAVE_ALSA= @HAVE_ALSA@
ifeq (HAVE_ALSA,1)
SRCS+= audio_alsa.c
endif
2012-07-29 03:34:03 +00:00
MONITORCLIENTSRCS=conf.c \
log.c \
mkdir.c \
monitor-client.c \
net.c \
str.c \
2012-07-29 03:34:03 +00:00
strbuf.c \
strbuf_helpers.c
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-07-29 03:34:03 +00:00
MONITORCLIENTOBJS= $(MONITORCLIENTSRCS:.c=.o)
HDRS= fifo.h \
Makefile \
rhizome.h \
serval.h \
strbuf.h \
strbuf_helpers.h \
sha2.h \
conf.h \
log.h \
net.h \
xprintf.h \
constants.h \
monitor-client.h \
sqlite-amalgamation-3070900/sqlite3.h
LDFLAGS=@LDFLAGS@ @LIBS@ @PORTAUDIO_LIBS@ @SRC_LIBS@ @SPANDSP_LIBS@ @CODEC2_LIBS@ @PTHREAD_LIBS@
CFLAGS= -Isqlite-amalgamation-3070900 @CPPFLAGS@ @CFLAGS@ @PORTAUDIO_CFLAGS@ @SRC_CFLAGS@ @SPANDSP_CFLAGS@ @PTHREAD_CFLAGS@ $(VOIPTEST_CFLAGS)
CFLAGS+=-fPIC
CFLAGS+=-Wall -Wno-unused-value
# Solaris magic
CFLAGS+=-DSHA2_USE_INTTYPES_H -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__=1
-include Makefile.dbg
DEFS= @DEFS@
all: servald libmonitorclient.so libmonitorclient.a
sqlite-amalgamation-3070900/sqlite3.o: sqlite-amalgamation-3070900/sqlite3.c
2012-05-10 03:53:06 +00:00
@echo CC $<
@$(CC) $(CFLAGS) $(DEFS) -c $< -o sqlite-amalgamation-3070900/sqlite3.o
%.o: %.c $(HDRS)
2012-05-10 03:53:06 +00:00
@echo CC $<
@$(CC) $(CFLAGS) $(DEFS) -c $<
servald: $(OBJS)
2012-05-10 03:53:06 +00:00
@echo LINK $@
@$(CC) $(CFLAGS) -Wall -o $@ $(OBJS) $(LDFLAGS)
# This does not build on 64 bit elf platforms as NaCL isn't built with -fPIC
# DOC 20120615
libservald.so: $(OBJS)
2012-05-10 03:53:06 +00:00
@echo LINK $@
@$(CC) $(CFLAGS) -Wall -shared -o $@ $(OBJS) $(LDFLAGS)
2012-07-29 03:34:03 +00:00
libmonitorclient.so: $(MONITORCLIENTOBJS)
@echo LINK $@
2012-07-29 03:34:03 +00:00
@$(CC) $(CFLAGS) -Wall -shared -o $@ $(MONITORCLIENTOBJS) $(LDFLAGS)
libmonitorclient.a: $(MONITORCLIENTOBJS)
@echo AR $@
@$(AR) -cr $@ $(MONITORCLIENTOBJS)
2012-05-21 04:23:34 +00:00
clean:
@rm -f $(OBJS) servald libservald.so libmonitorclient.so libmonitorclient.a