netwerk/sctp/src/Makefile.in
author Michal Novotny <michal.novotny@gmail.com>
Fri, 04 Jan 2013 00:27:04 +0100
changeset 123097 cddc8be15e62676b51f29001b2281779b01255cc
parent 121150 226ffef01c8471a8bea80df488257fe73a284f4f
child 124560 715e21580ed2f61b1794fca9783eaa10029be2fa
permissions -rw-r--r--
Bug 725993 - Remove usage of STORE_ON_DISK_AS_FILE flag in media cache, r=roc

#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEPTH     = ../../..
topsrcdir = @top_srcdir@
srcdir    = @srcdir@
VPATH     = \
  @srcdir@ \
  @srcdir@/netinet \
  @srcdir@/netinet6 \
  $(NULL)

include $(DEPTH)/config/autoconf.mk

MODULE         = necko
LIBRARY_NAME   = nksctp_s
LIBXUL_LIBRARY = 1
XPIDL_MODULE   = necko_sctp
GRE_MODULE     = 1
FORCE_STATIC_LIB = 1

EXPORTS_NAMESPACES = mozilla/net

XPIDLSRCS = \
  $(NULL)

ifeq ($(OS_TARGET),Android)
CPPSRCS = \
  ifaddrs_android.cpp \
  $(NULL)
endif

CSRCS = \
  user_environment.c \
  user_mbuf.c \
  user_recv_thread.c \
  user_sctp_timer_iterate.c \
  user_socket.c \
  sctp_asconf.c \
  sctp_auth.c \
  sctp_bsd_addr.c \
  sctp_callout.c \
  sctp_cc_functions.c \
  sctp_crc32.c \
  sctp_hashdriver.c \
  sctp_indata.c \
  sctp_input.c \
  sctp_output.c \
  sctp_pcb.c \
  sctp_peeloff.c \
  sctp_sha1.c \
  sctp_ss_functions.c \
  sctp_sysctl.c \
  sctp_userspace.c \
  sctp_timer.c \
  sctp_usrreq.c \
  sctputil.c \
  sctp6_usrreq.c \
  $(NULL)

EXPORTS_mozilla/net = \
  usrsctp.h \
  $(NULL)

LOCAL_INCLUDES = \
  -I$(srcdir)/../../base/src \
  -I$(topsrcdir)/content/base/src \
  -I$(topsrcdir)/content/events/src \
  -I$(topsrcdir)/xpcom/ds \
  $(NULL)

# Android NDK r5c, used on the builders at the time of this writing, doesn't
# have the headers we need for IPv6
ifeq ($(OS_TARGET),Android)
  IPV6_DEFINE=
else
  IPV6_DEFINE=-DINET6=1
endif

DEFINES = \
  -DSCTP_SIMPLE_ALLOCATOR=1 \
  -DUSE_SCTP_SHA1=1 \
  -DSCTP_PROCESS_LEVEL_LOCKS=1 \
  -D__Userspace__=1 \
  -DINET=1 \
  $(IPV6_DEFINE) \
  -DCALLBACK_API=1 \
  -DSCTP_DEBUG=1 \
  $(NULL)

ifeq ($(OS_TARGET),WINNT)
DEFINES += \
  -D__Userspace_os_Windows=1 \
  -D_LIB=1 \
  $(NULL)
else
ifeq ($(OS_TARGET),Darwin)
DEFINES += \
  -D__Userspace_os_Darwin=1 \
  -D__APPLE_USE_RFC_2292=1 \
  -U__APPLE__ \
  $(NULL)
else
ifeq (,$(filter-out Linux Android,$(OS_TARGET)))
DEFINES += -D__Userspace_os_Linux=1
else
ifeq ($(OS_TARGET),FreeBSD)
DEFINES += \
  -D__Userspace_os_FreeBSD=1 \
  -U__FreeBSD__ \
  $(NULL)
else
#error Unsupported platform!
endif
endif
endif
endif

include $(topsrcdir)/config/config.mk
include $(topsrcdir)/ipc/chromium/chromium-config.mk
include $(topsrcdir)/config/rules.mk

ifdef GNU_CC
CFLAGS += -std=gnu99
endif

DEFINES += -DIMPL_NS_NET