gecko-dev/layout/build/Makefile
1998-09-23 20:08:14 +00:00

100 lines
2.3 KiB
Makefile

#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
DEPTH = ../..
include $(DEPTH)/config/config.mk
LCFLAGS=-D_IMPL_NS_HTML
LIBRARY_NAME = raptorhtml
MODULE=raptor
REQUIRES=xpcom raptor dom js
CPPSRCS=dlldeps.cpp nsLayoutFactory.cpp
EXPORTS=nsLayoutCID.h
INCLUDES += -I../html/base/src
ifeq ($(OS_ARCH),IRIX)
LD = $(CCC)
LD_ALL = -all
LD_NONE = -none
endif
#
# Rhapsody is using a more-portable way of specifying
# the link line, Linux and other OS's probably want
# to follow suit. -mcafee
#
ifeq ($(OS_TARGET),Rhapsody)
EXTRA_DSO_LDOPTS = \
-L$(DIST)/lib \
-lraptorhtmldoc_s \
-lnglhtmlcon_s \
-lraptorhtmlforms_s \
-lraptorhtmlbase_s \
-lraptorhtmlstyle_s \
-lraptorhtmltable_s \
-lraptorlayout_s \
-lraptorevents_s \
-L$(DIST)/bin \
-lraptorhtmlpars \
-lraptorgfx \
-lraptorbase \
-lgmbaseunix \
-ljsdom \
-ljs \
-lnetlib \
-lxpcom \
-lnspr21 \
-lplds21 \
-lplc21 \
$(NULL)
else
# These must be maintained in the proper order for Linux.
EXTRA_DSO_LDOPTS = \
$(LD_ALL) \
$(DIST)/lib/libraptorhtmldoc_s.a \
$(DIST)/lib/libnglhtmlcon_s.a \
$(DIST)/lib/libraptorhtmldoc_s.a \
$(DIST)/lib/libraptorhtmlbase_s.a \
$(DIST)/lib/libraptorhtmlstyle_s.a \
$(DIST)/lib/libraptorhtmlforms_s.a \
$(DIST)/lib/libraptorhtmltable_s.a \
$(DIST)/lib/libraptorlayout_s.a \
$(DIST)/lib/libraptorevents_s.a \
$(LD_NONE) \
$(DIST)/bin/libraptorhtmlpars.so \
$(DIST)/bin/libraptorgfx.so \
$(DIST)/bin/libraptorbase.so \
$(DIST)/bin/libgmbaseunix.so \
$(DIST)/bin/libjsdom.so \
$(DIST)/bin/libjs.so \
$(DIST)/bin/libnetlib.so \
$(DIST)/bin/libxpcom.so \
$(DIST)/bin/libnspr21.so \
$(DIST)/bin/libplds21.so \
$(DIST)/bin/libplc21.so \
-lm
endif
include $(DEPTH)/config/rules.mk