source: trunk/third/firefox/xpcom/sample/Makefile.in @ 21695

Revision 21695, 2.1 KB checked in by rbasch, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21694, which included commits to RCS files with non-trunk default branches.
Line 
1#
2# The contents of this file are subject to the Netscape Public
3# License Version 1.1 (the "License"); you may not use this file
4# except in compliance with the License. You may obtain a copy of
5# the License at http://www.mozilla.org/NPL/
6#
7# Software distributed under the License is distributed on an "AS
8# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9# implied. See the License for the specific language governing
10# rights and limitations under the License.
11#
12# The Original Code is mozilla.org code.
13#
14# The Initial Developer of the Original Code is Netscape
15# Communications Corporation.  Portions created by Netscape are
16# Copyright (C) 1998 Netscape Communications Corporation. All
17# Rights Reserved.
18#
19# Contributor(s):
20#
21
22DEPTH           = ../..
23topsrcdir       = @top_srcdir@
24srcdir          = @srcdir@
25VPATH           = @srcdir@
26
27include $(DEPTH)/config/autoconf.mk
28
29MODULE          = xpcomsample
30XPIDL_MODULE    = xpcomsample
31LIBRARY_NAME    = xpcomsample
32SHORT_LIBNAME   = xpcomsmp
33
34IS_COMPONENT    = 1
35MODULE_NAME     = nsSampleModule
36
37# Ensure that the xpcom classes that we build
38# do not export themselves
39DEFINES         += -DXPCOM_GLUE
40
41
42REQUIRES        = string \
43                  xpcom \
44                  $(NULL)
45
46CPPSRCS         =                  \
47                nsSample.cpp       \
48                nsSampleModule.cpp \
49                $(NULL)
50
51XPIDLSRCS       = nsISample.idl
52
53TESTCPPSRCS     = nsTestSample.cpp
54
55CPPSRCS         += $(TESTCPPSRCS)
56
57SIMPLE_PROGRAMS = $(TESTCPPSRCS:.cpp=$(BIN_SUFFIX))
58
59include $(topsrcdir)/config/config.mk
60
61EXTRA_COMPONENTS = nsSample.js
62
63# separate libraries linked in.
64EXTRA_DSO_LDOPTS = \
65                $(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \
66                $(NSPR_LIBS) \
67                $(NULL)
68
69LIBS            = \
70                $(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \
71                $(NSPR_LIBS) \
72                $(NULL)
73
74# Needed to resolve __yylex (?)
75ifeq ($(OS_ARCH)$(OS_RELEASE),FreeBSD2)
76LIBS            += -lpcap
77endif
78
79# Need to link with CoreFoundation on Mac
80ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
81EXTRA_DSO_LDOPTS += \
82                $(TK_LIBS) \
83                $(NULL)
84
85LIBS += \
86                $(TK_LIBS) \
87                $(NULL)
88endif
89
90include $(topsrcdir)/config/rules.mk
91
92libs:: $(TARGETS)
93        $(INSTALL) $(srcdir)/xpconnect-sample.html $(DIST)/bin/res/samples
94
95install:: $(TARGETS)
96        $(SYSINSTALL) $(IFLAGS1) $(srcdir)/xpconnect-sample.html $(DESTDIR)$(mozappdir)/res/samples
97
Note: See TracBrowser for help on using the repository browser.