gecko/xpcom/sample/program/Makefile.in

42 lines
1.2 KiB
Makefile

#
# 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 = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = xpcomsample
# We must specify CPPSRCS in order to link using the proper c++ linker
# on certain platforms.
CPPSRCS = nsTestSample.cpp
# SIMPLE_PROGRAMS compiles a single .cpp file into an executable
SIMPLE_PROGRAMS = nsTestSample$(BIN_SUFFIX)
# LIBS specifies linker flags when building an executable program from
# this Makefile. We link against the "standalone glue" which does not require
# that the application be linked against the XPCOM dynamic library or the NSPR
# dynamic libraries.
LIBS = \
$(XPCOM_STANDALONE_GLUE_LDOPTS) \
$(NULL)
# Need to link with CoreFoundation on Mac
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
LIBS += \
$(TK_LIBS) \
$(NULL)
endif
# Whatever code is going to be linked with the *standalone* glue must be
# built with the XPCOM_GLUE define set.
DEFINES += -DXPCOM_GLUE
include $(topsrcdir)/config/rules.mk