source: trunk/third/mozilla/xpcom/sample/Makefile.in @ 18860

Revision 18860, 2.0 KB checked in by rbasch, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18859, 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                  xpcomsample \
45                  $(NULL)
46
47CPPSRCS         =                  \
48                nsSample.cpp       \
49                nsSampleModule.cpp \
50                $(NULL)
51
52XPIDLSRCS       = nsISample.idl
53
54TESTCPPSRCS     = nsTestSample.cpp
55
56CPPSRCS         += $(TESTCPPSRCS)
57
58SIMPLE_PROGRAMS = $(TESTCPPSRCS:.cpp=$(BIN_SUFFIX))
59
60include $(topsrcdir)/config/config.mk
61
62EXTRA_COMPONENTS = nsSample.js
63
64# seperate libraries linked in.
65EXTRA_DSO_LDOPTS = \
66                $(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \
67                $(NSPR_LIBS) \
68                $(NULL)
69
70LIBS            = \
71                $(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \
72                $(NSPR_LIBS) \
73                $(NULL)
74
75# Needed to resolve __yylex (?)
76ifeq ($(OS_ARCH)$(OS_RELEASE),FreeBSD2)
77LIBS            += -lpcap
78endif
79
80include $(topsrcdir)/config/rules.mk
81
82libs:: $(TARGETS)
83        $(INSTALL) $(srcdir)/xpconnect-sample.html $(DIST)/bin/res/samples
84
85install:: $(TARGETS)
86        $(SYSINSTALL) $(IFLAGS1) $(srcdir)/xpconnect-sample.html $(DESTDIR)$(mozappdir)/res/samples
87
Note: See TracBrowser for help on using the repository browser.