From 4288391d234db503c2b56d78563526a84b27c026 Mon Sep 17 00:00:00 2001 From: "cls%seawood.org" Date: Wed, 19 Aug 1998 20:42:14 +0000 Subject: [PATCH] AUTOCONF_1_0 landing. git-svn-id: svn://10.0.0.236/trunk@8198 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/base/Makefile.in | 33 + mozilla/base/public/Makefile.in | 37 + mozilla/base/src/Makefile.in | 77 + mozilla/base/src/unix/Makefile.in | 47 + mozilla/base/tests/Makefile.in | 67 + mozilla/build/autoconf/config.guess | 696 ++++++++ mozilla/build/autoconf/config.sub | 936 +++++++++++ mozilla/build/autoconf/install-sh | 119 ++ mozilla/caps/Makefile.in | 26 + mozilla/caps/include/Makefile.in | 31 + mozilla/caps/src/Makefile.in | 50 + mozilla/cmd/stubfe/Makefile.in | 1438 +++++++++++++++++ mozilla/cmd/xfe/DtWidgets/Makefile.in | 30 + mozilla/cmd/xfe/Makefile | 5 +- mozilla/cmd/xfe/Makefile.in | 1210 ++++++++++++++ mozilla/cmd/xfe/Microline3.0/Makefile.in | 36 + mozilla/cmd/xfe/Microline3.0/XmL/Makefile.in | 88 + .../cmd/xfe/Microline3.0/examples/Makefile.in | 173 ++ mozilla/cmd/xfe/XfeWidgets/Makefile.in | 53 + mozilla/cmd/xfe/XfeWidgets/Xfe/Makefile.in | 200 +++ mozilla/cmd/xfe/XfeWidgets/XfeBm/Makefile.in | 61 + .../cmd/xfe/XfeWidgets/XfeCaption/Makefile.in | 62 + .../xfe/XfeWidgets/XfeComboBox/Makefile.in | 62 + .../cmd/xfe/XfeWidgets/XfeTest/Makefile.in | 66 + mozilla/cmd/xfe/XfeWidgets/tests/Makefile.in | 47 + .../cmd/xfe/XfeWidgets/tests/Xfe/Makefile.in | 79 + .../xfe/XfeWidgets/tests/XfeBm/Makefile.in | 47 + .../XfeWidgets/tests/XfeCaption/Makefile.in | 49 + .../XfeWidgets/tests/XfeComboBox/Makefile.in | 48 + .../cmd/xfe/XfeWidgets/tests/XmL/Makefile.in | 53 + mozilla/cmd/xfe/icons.c | 24 +- mozilla/cmd/xfe/icons/Makefile.in | 221 +++ mozilla/cmd/xfe/make-resources | 12 +- mozilla/cmd/xfe/plugins/ImAlive/Makefile.in | 61 + mozilla/cmd/xfe/plugins/Makefile.in | 29 + mozilla/cmd/xfe/plugins/javatest/Makefile.in | 96 ++ .../cmd/xfe/plugins/nullplugin/Makefile.in | 67 + .../cmd/xfe/plugins/textplugin/Makefile.in | 105 ++ mozilla/cmd/xfe/resources | 4 +- mozilla/cmd/xfe/src/FindDialog.cpp | 3 + mozilla/cmd/xfe/src/Makefile.in | 371 +++++ mozilla/config/AIX.mk | 4 + mozilla/config/BSD_OS.mk | 4 + mozilla/config/FreeBSD.mk | 4 + mozilla/config/IRIX.mk | 4 + mozilla/config/Linux.mk | 6 +- mozilla/config/Makefile.in | 119 ++ mozilla/config/NCR.mk | 4 + mozilla/config/NEC.mk | 4 + mozilla/config/NEWS-OS.mk | 4 + mozilla/config/NEXTSTEP.mk | 4 + mozilla/config/NetBSD.mk | 4 + mozilla/config/OSF1.mk | 4 + mozilla/config/Rhapsody.mk | 4 + mozilla/config/SCOOS.mk | 4 + mozilla/config/SINIX.mk | 4 + mozilla/config/SunOS.mk | 4 +- mozilla/config/SunOS4.mk | 4 + mozilla/config/SunOS5.mk | 10 +- mozilla/config/UNIXWARE.mk | 4 + mozilla/config/autoconf.mk.in | 82 + mozilla/config/config.mk | 63 +- mozilla/config/mkdepend/Makefile.in | 37 + mozilla/config/mkdetect/Makefile.in | 207 +++ mozilla/config/nsinstall.c | 9 +- mozilla/config/ports/Makefile.in | 34 + mozilla/config/rules.mk | 52 +- mozilla/dbm/Makefile.in | 18 + mozilla/dbm/include/Makefile.in | 36 + mozilla/dbm/include/mcom_db.h | 2 +- mozilla/dbm/src/Makefile.in | 38 + mozilla/dbm/src/snprintf.c | 2 +- mozilla/dbm/tests/Makefile.in | 82 + mozilla/include/Makefile.in | 25 + mozilla/include/config.h.in | 153 ++ mozilla/include/mcom_db.h | 2 +- mozilla/jpeg/Makefile.in | 89 + mozilla/js/Makefile.in | 52 + mozilla/js/jsd/Makefile.in | 78 + mozilla/js/jsd/classes/Makefile.in | 64 + mozilla/js/jsj/Makefile.in | 86 + mozilla/js/jsj/classes/Makefile.in | 70 + mozilla/js/ref/Makefile.in | 303 ++++ mozilla/js/ref/prtime.c | 8 - mozilla/js/src/Makefile.in | 241 +++ mozilla/js/src/liveconnect/Makefile.in | 100 ++ .../js/src/liveconnect/classes/Makefile.in | 70 + mozilla/js/src/prmjtime.c | 8 - mozilla/js/src/xpcom/Makefile.in | 163 ++ mozilla/l10n/Makefile.in | 26 + mozilla/l10n/us/Makefile.in | 27 + mozilla/l10n/us/xp/Makefile.in | 208 +++ mozilla/lib/htmldlgs/Makefile.in | 35 + mozilla/lib/layout/Makefile.in | 102 ++ mozilla/lib/libaddr/Makefile.in | 113 ++ mozilla/lib/libi18n/Makefile.in | 77 + mozilla/lib/libi18n/unicode/Makefile.in | 31 + .../lib/libi18n/unicode/tbltool/Makefile.in | 54 + .../lib/libi18n/unicode/ufrmtbl/Makefile.in | 32 + .../lib/libi18n/unicode/utotbl/Makefile.in | 33 + mozilla/lib/liblayer/Makefile.in | 29 + mozilla/lib/liblayer/include/Makefile.in | 33 + mozilla/lib/liblayer/src/Makefile.in | 41 + mozilla/lib/libmime/Makefile.in | 123 ++ mozilla/lib/libmisc/Makefile.in | 52 + mozilla/lib/libmocha/Makefile.in | 97 ++ mozilla/lib/libmsg/Makefile.in | 219 +++ mozilla/lib/libparse/Makefile.in | 50 + mozilla/lib/libpics/Makefile.in | 41 + mozilla/lib/libpwcac/Makefile.in | 32 + mozilla/lib/libstyle/Makefile.in | 71 + mozilla/lib/mariner/Makefile.in | 29 + mozilla/lib/mariner/public/Makefile.in | 32 + mozilla/lib/mariner/src/Makefile.in | 38 + mozilla/lib/xlate/Makefile.in | 39 + mozilla/lib/xp/Makefile.in | 108 ++ mozilla/lib/xp/xp_qsort.c | 6 +- mozilla/modules/calendar/Makefile.in | 30 + mozilla/modules/calendar/src/Makefile.in | 28 + .../modules/calendar/src/libcal/Makefile.in | 123 ++ mozilla/modules/coreincl/Makefile.in | 30 + mozilla/modules/edtplug/classes/Makefile.in | 28 + .../edtplug/classes/netscape/Makefile.in | 30 + .../classes/netscape/plugin/Makefile.in | 26 + .../netscape/plugin/composer/Makefile.in | 40 + .../netscape/plugin/composer/io/Makefile.in | 44 + .../edtplug/classes/netscape/test/Makefile.in | 27 + .../classes/netscape/test/plugin/Makefile.in | 27 + .../netscape/test/plugin/composer/Makefile.in | 27 + mozilla/modules/edtplug/include/Makefile.in | 29 + mozilla/modules/edtplug/src/Makefile.in | 54 + mozilla/modules/libfont/Makefile.in | 42 + mozilla/modules/libfont/classes/Makefile.in | 28 + .../libfont/classes/netscape/Makefile.in | 28 + .../classes/netscape/fonts/Makefile.in | 79 + mozilla/modules/libfont/producers/Makefile.in | 28 + mozilla/modules/libfont/public/Makefile.in | 59 + mozilla/modules/libfont/src/Makefile.in | 112 ++ mozilla/modules/libhook/Makefile.in | 26 + mozilla/modules/libhook/public/Makefile.in | 31 + mozilla/modules/libhook/src/Makefile.in | 34 + mozilla/modules/libimg/Makefile.in | 47 + mozilla/modules/libimg/classes/Makefile.in | 26 + .../libimg/classes/netscape/Makefile.in | 26 + .../classes/netscape/libimg/Makefile.in | 40 + mozilla/modules/libimg/png/Makefile.in | 49 + mozilla/modules/libimg/public/Makefile.in | 61 + mozilla/modules/libimg/src/Makefile.in | 121 ++ mozilla/modules/libpref/Makefile.in | 26 + mozilla/modules/libpref/admin/Makefile.in | 55 + mozilla/modules/libpref/l10n/Makefile.in | 40 + mozilla/modules/libpref/public/Makefile.in | 31 + mozilla/modules/libpref/src/Makefile.in | 103 ++ mozilla/modules/libreg/Makefile.in | 28 + mozilla/modules/libreg/include/Makefile.in | 30 + mozilla/modules/libreg/src/Makefile.in | 82 + mozilla/modules/libutil/Makefile.in | 27 + mozilla/modules/libutil/public/Makefile.in | 29 + mozilla/modules/libutil/src/Makefile.in | 34 + mozilla/modules/oji/Makefile.in | 36 + mozilla/modules/oji/public/Makefile.in | 40 + mozilla/modules/oji/src/Makefile.in | 32 + mozilla/modules/plugin/Makefile.in | 40 + .../modules/plugin/base/public/Makefile.in | 52 + mozilla/modules/plugin/base/src/Makefile.in | 55 + mozilla/modules/plugin/nglsrc/Makefile.in | 55 + mozilla/modules/plugin/public/Makefile.in | 52 + .../modules/plugin/samples/simple/Makefile.in | 45 + mozilla/modules/plugin/src/Makefile.in | 51 + mozilla/modules/plugin/test/Makefile.in | 45 + mozilla/modules/progress/public/Makefile.in | 29 + mozilla/modules/progress/src/Makefile.in | 33 + mozilla/modules/rdf/Makefile.in | 14 + mozilla/modules/rdf/classes/Makefile.in | 36 + .../modules/rdf/classes/netscape/Makefile.in | 0 .../rdf/classes/netscape/rdf/Makefile.in | 34 + .../rdf/classes/netscape/rdf/core/Makefile.in | 33 + mozilla/modules/rdf/include/Makefile.in | 33 + mozilla/modules/rdf/src/Makefile.in | 88 + mozilla/modules/schedulr/Makefile.in | 27 + mozilla/modules/schedulr/public/Makefile.in | 31 + mozilla/modules/schedulr/src/Makefile.in | 35 + mozilla/modules/security/freenav/Makefile.in | 57 + mozilla/modules/softupdt/classes/Makefile.in | 26 + .../softupdt/classes/netscape/Makefile.in | 26 + .../classes/netscape/softupdate/Makefile.in | 60 + mozilla/modules/softupdt/include/Makefile.in | 31 + mozilla/modules/softupdt/src/Makefile.in | 129 ++ .../modules/softupdt/src/nsdiff/Makefile.in | 45 + .../modules/softupdt/src/nspatch/Makefile.in | 38 + mozilla/modules/xml/Makefile.in | 44 + mozilla/modules/xml/js/Makefile.in | 35 + mozilla/modules/xml/js/test/Makefile.in | 43 + mozilla/modules/zlib/src/Makefile.in | 53 + mozilla/nav-java/stubs/Makefile.in | 27 + mozilla/nav-java/stubs/include/Makefile.in | 30 + mozilla/nav-java/stubs/jri/Makefile.in | 43 + mozilla/nav-java/stubs/src/Makefile.in | 33 + mozilla/network/Makefile.in | 44 + mozilla/network/cache/Makefile.in | 43 + mozilla/network/cache/nu/Makefile.in | 31 + mozilla/network/cache/nu/include/Makefile.in | 29 + mozilla/network/cache/nu/public/Makefile.in | 41 + mozilla/network/cache/nu/src/Makefile.in | 58 + mozilla/network/client/Makefile.in | 39 + mozilla/network/cnvts/Makefile.in | 73 + mozilla/network/cstream/Makefile.in | 40 + mozilla/network/main/Makefile.in | 92 ++ mozilla/network/main/mkutils.h | 10 +- mozilla/network/mimetype/Makefile.in | 88 + mozilla/network/module/Makefile.in | 83 + mozilla/network/module/tests/Makefile.in | 82 + mozilla/network/protocol/Makefile.in | 63 + mozilla/network/protocol/about/Makefile.in | 38 + mozilla/network/protocol/callback/Makefile.in | 0 mozilla/network/protocol/certld/Makefile.in | 38 + mozilla/network/protocol/dataurl/Makefile.in | 38 + mozilla/network/protocol/file/Makefile.in | 38 + mozilla/network/protocol/ftp/Makefile.in | 38 + mozilla/network/protocol/gopher/Makefile.in | 38 + mozilla/network/protocol/http/Makefile.in | 41 + mozilla/network/protocol/imap4/Makefile.in | 51 + mozilla/network/protocol/js/Makefile.in | 38 + mozilla/network/protocol/ldap/Makefile.in | 40 + mozilla/network/protocol/mailbox/Makefile.in | 38 + mozilla/network/protocol/marimba/Makefile.in | 38 + mozilla/network/protocol/nntp/Makefile.in | 41 + mozilla/network/protocol/pop3/Makefile.in | 38 + mozilla/network/protocol/remote/Makefile.in | 38 + mozilla/network/protocol/smtp/Makefile.in | 38 + mozilla/network/util/Makefile.in | 39 + mozilla/nsprpub/Makefile.in | 110 ++ mozilla/nsprpub/config/AIX.mk | 6 + mozilla/nsprpub/config/BSD_OS.mk | 4 + mozilla/nsprpub/config/FreeBSD.mk | 4 + mozilla/nsprpub/config/HP-UX.mk | 4 + mozilla/nsprpub/config/IRIX.mk | 4 + mozilla/nsprpub/config/Linux.mk | 4 + mozilla/nsprpub/config/NCR.mk | 2 + mozilla/nsprpub/config/NEC.mk | 4 + mozilla/nsprpub/config/NEWS-OS.mk | 4 + mozilla/nsprpub/config/NetBSD.mk | 4 + mozilla/nsprpub/config/OSF1.mk | 4 + mozilla/nsprpub/config/Rhapsody.mk | 4 + mozilla/nsprpub/config/SCOOS.mk | 5 + mozilla/nsprpub/config/SINIX.mk | 4 + mozilla/nsprpub/config/SunOS.mk | 4 +- mozilla/nsprpub/config/SunOS4.mk | 4 + mozilla/nsprpub/config/SunOS5.mk | 4 + mozilla/nsprpub/config/UNIX.mk | 4 +- mozilla/nsprpub/config/UNIXWARE.mk | 4 + mozilla/nsprpub/config/config.mk | 31 +- mozilla/nsprpub/config/nsinstall.c | 10 +- mozilla/nsprpub/config/rules.mk | 19 +- mozilla/nsprpub/include/config.h.in | 145 ++ mozilla/nsprpub/lib/Makefile.in | 37 + mozilla/nsprpub/lib/ds/Makefile.in | 124 ++ mozilla/nsprpub/lib/libc/Makefile.in | 37 + mozilla/nsprpub/lib/libc/include/Makefile.in | 43 + mozilla/nsprpub/lib/libc/src/Makefile.in | 117 ++ mozilla/nsprpub/lib/msgc/Makefile.in | 37 + mozilla/nsprpub/lib/msgc/include/Makefile.in | 43 + mozilla/nsprpub/lib/msgc/src/Makefile.in | 119 ++ mozilla/nsprpub/lib/msgc/tests/Makefile.in | 293 ++++ mozilla/nsprpub/lib/prstreams/Makefile.in | 114 ++ mozilla/nsprpub/lib/tests/Makefile.in | 197 +++ mozilla/nsprpub/pr/Makefile.in | 29 + mozilla/nsprpub/pr/include/Makefile.in | 42 + mozilla/nsprpub/pr/include/md/Makefile.in | 137 ++ .../nsprpub/pr/include/obsolete/Makefile.in | 40 + .../nsprpub/pr/include/private/Makefile.in | 41 + mozilla/nsprpub/pr/src/Makefile.in | 322 ++++ mozilla/nsprpub/pr/src/io/Makefile.in | 73 + mozilla/nsprpub/pr/src/linking/Makefile.in | 48 + mozilla/nsprpub/pr/src/malloc/Makefile.in | 46 + mozilla/nsprpub/pr/src/md/Makefile.in | 62 + mozilla/nsprpub/pr/src/md/os2/Makefile.in | 55 + mozilla/nsprpub/pr/src/md/unix/Makefile.in | 248 +++ mozilla/nsprpub/pr/src/md/windows/Makefile.in | 80 + mozilla/nsprpub/pr/src/memory/Makefile.in | 47 + mozilla/nsprpub/pr/src/misc/Makefile.in | 69 + mozilla/nsprpub/pr/src/pthreads/Makefile.in | 52 + mozilla/nsprpub/pr/src/threads/Makefile.in | 64 + .../pr/src/threads/combined/Makefile.in | 57 + mozilla/nsprpub/pr/tests/Makefile.in | 446 +++++ mozilla/nsprpub/pr/tests/dll/Makefile.in | 95 ++ mozilla/nsprpub/pr/tests/w16gui/Makefile.in | 81 + mozilla/nsprpub/tools/Makefile.in | 217 +++ mozilla/privacy/Makefile.in | 33 + mozilla/privacy/public/Makefile.in | 36 + mozilla/privacy/src/Makefile.in | 48 + mozilla/sun-java/stubs/include/Makefile.in | 27 + mozilla/sun-java/stubs/include/manifest.mn | 4 + mozilla/sun-java/stubs/jri/Makefile.in | 27 + mozilla/sun-java/stubs/jri/manifest.mn | 5 + mozilla/sun-java/stubs/src/Makefile.in | 30 + mozilla/xpcom/Makefile.in | 30 + mozilla/xpcom/src/Makefile.in | 58 + mozilla/xpcom/tests/Makefile.in | 79 + mozilla/xpcom/tests/dynamic/Makefile.in | 35 + 300 files changed, 20262 insertions(+), 89 deletions(-) create mode 100644 mozilla/base/Makefile.in create mode 100644 mozilla/base/public/Makefile.in create mode 100644 mozilla/base/src/Makefile.in create mode 100644 mozilla/base/src/unix/Makefile.in create mode 100644 mozilla/base/tests/Makefile.in create mode 100755 mozilla/build/autoconf/config.guess create mode 100755 mozilla/build/autoconf/config.sub create mode 100755 mozilla/build/autoconf/install-sh create mode 100644 mozilla/caps/Makefile.in create mode 100644 mozilla/caps/include/Makefile.in create mode 100644 mozilla/caps/src/Makefile.in create mode 100644 mozilla/cmd/stubfe/Makefile.in create mode 100644 mozilla/cmd/xfe/DtWidgets/Makefile.in create mode 100644 mozilla/cmd/xfe/Makefile.in create mode 100644 mozilla/cmd/xfe/Microline3.0/Makefile.in create mode 100644 mozilla/cmd/xfe/Microline3.0/XmL/Makefile.in create mode 100644 mozilla/cmd/xfe/Microline3.0/examples/Makefile.in create mode 100644 mozilla/cmd/xfe/XfeWidgets/Makefile.in create mode 100644 mozilla/cmd/xfe/XfeWidgets/Xfe/Makefile.in create mode 100644 mozilla/cmd/xfe/XfeWidgets/XfeBm/Makefile.in create mode 100644 mozilla/cmd/xfe/XfeWidgets/XfeCaption/Makefile.in create mode 100644 mozilla/cmd/xfe/XfeWidgets/XfeComboBox/Makefile.in create mode 100644 mozilla/cmd/xfe/XfeWidgets/XfeTest/Makefile.in create mode 100644 mozilla/cmd/xfe/XfeWidgets/tests/Makefile.in create mode 100644 mozilla/cmd/xfe/XfeWidgets/tests/Xfe/Makefile.in create mode 100644 mozilla/cmd/xfe/XfeWidgets/tests/XfeBm/Makefile.in create mode 100644 mozilla/cmd/xfe/XfeWidgets/tests/XfeCaption/Makefile.in create mode 100644 mozilla/cmd/xfe/XfeWidgets/tests/XfeComboBox/Makefile.in create mode 100644 mozilla/cmd/xfe/XfeWidgets/tests/XmL/Makefile.in create mode 100644 mozilla/cmd/xfe/icons/Makefile.in create mode 100644 mozilla/cmd/xfe/plugins/ImAlive/Makefile.in create mode 100644 mozilla/cmd/xfe/plugins/Makefile.in create mode 100644 mozilla/cmd/xfe/plugins/javatest/Makefile.in create mode 100644 mozilla/cmd/xfe/plugins/nullplugin/Makefile.in create mode 100644 mozilla/cmd/xfe/plugins/textplugin/Makefile.in create mode 100644 mozilla/cmd/xfe/src/Makefile.in create mode 100644 mozilla/config/Makefile.in create mode 100644 mozilla/config/autoconf.mk.in create mode 100644 mozilla/config/mkdepend/Makefile.in create mode 100644 mozilla/config/mkdetect/Makefile.in create mode 100644 mozilla/config/ports/Makefile.in create mode 100644 mozilla/dbm/Makefile.in create mode 100644 mozilla/dbm/include/Makefile.in create mode 100644 mozilla/dbm/src/Makefile.in create mode 100644 mozilla/dbm/tests/Makefile.in create mode 100644 mozilla/include/Makefile.in create mode 100644 mozilla/include/config.h.in create mode 100644 mozilla/jpeg/Makefile.in create mode 100644 mozilla/js/Makefile.in create mode 100644 mozilla/js/jsd/Makefile.in create mode 100644 mozilla/js/jsd/classes/Makefile.in create mode 100644 mozilla/js/jsj/Makefile.in create mode 100644 mozilla/js/jsj/classes/Makefile.in create mode 100644 mozilla/js/ref/Makefile.in create mode 100644 mozilla/js/src/Makefile.in create mode 100644 mozilla/js/src/liveconnect/Makefile.in create mode 100644 mozilla/js/src/liveconnect/classes/Makefile.in create mode 100644 mozilla/js/src/xpcom/Makefile.in create mode 100644 mozilla/l10n/Makefile.in create mode 100644 mozilla/l10n/us/Makefile.in create mode 100644 mozilla/l10n/us/xp/Makefile.in create mode 100644 mozilla/lib/htmldlgs/Makefile.in create mode 100644 mozilla/lib/layout/Makefile.in create mode 100644 mozilla/lib/libaddr/Makefile.in create mode 100644 mozilla/lib/libi18n/Makefile.in create mode 100644 mozilla/lib/libi18n/unicode/Makefile.in create mode 100644 mozilla/lib/libi18n/unicode/tbltool/Makefile.in create mode 100644 mozilla/lib/libi18n/unicode/ufrmtbl/Makefile.in create mode 100644 mozilla/lib/libi18n/unicode/utotbl/Makefile.in create mode 100644 mozilla/lib/liblayer/Makefile.in create mode 100644 mozilla/lib/liblayer/include/Makefile.in create mode 100644 mozilla/lib/liblayer/src/Makefile.in create mode 100644 mozilla/lib/libmime/Makefile.in create mode 100644 mozilla/lib/libmisc/Makefile.in create mode 100644 mozilla/lib/libmocha/Makefile.in create mode 100644 mozilla/lib/libmsg/Makefile.in create mode 100644 mozilla/lib/libparse/Makefile.in create mode 100644 mozilla/lib/libpics/Makefile.in create mode 100644 mozilla/lib/libpwcac/Makefile.in create mode 100644 mozilla/lib/libstyle/Makefile.in create mode 100644 mozilla/lib/mariner/Makefile.in create mode 100644 mozilla/lib/mariner/public/Makefile.in create mode 100644 mozilla/lib/mariner/src/Makefile.in create mode 100644 mozilla/lib/xlate/Makefile.in create mode 100644 mozilla/lib/xp/Makefile.in create mode 100644 mozilla/modules/calendar/Makefile.in create mode 100644 mozilla/modules/calendar/src/Makefile.in create mode 100644 mozilla/modules/calendar/src/libcal/Makefile.in create mode 100644 mozilla/modules/coreincl/Makefile.in create mode 100644 mozilla/modules/edtplug/classes/Makefile.in create mode 100644 mozilla/modules/edtplug/classes/netscape/Makefile.in create mode 100644 mozilla/modules/edtplug/classes/netscape/plugin/Makefile.in create mode 100644 mozilla/modules/edtplug/classes/netscape/plugin/composer/Makefile.in create mode 100644 mozilla/modules/edtplug/classes/netscape/plugin/composer/io/Makefile.in create mode 100644 mozilla/modules/edtplug/classes/netscape/test/Makefile.in create mode 100644 mozilla/modules/edtplug/classes/netscape/test/plugin/Makefile.in create mode 100644 mozilla/modules/edtplug/classes/netscape/test/plugin/composer/Makefile.in create mode 100644 mozilla/modules/edtplug/include/Makefile.in create mode 100644 mozilla/modules/edtplug/src/Makefile.in create mode 100644 mozilla/modules/libfont/Makefile.in create mode 100644 mozilla/modules/libfont/classes/Makefile.in create mode 100644 mozilla/modules/libfont/classes/netscape/Makefile.in create mode 100644 mozilla/modules/libfont/classes/netscape/fonts/Makefile.in create mode 100644 mozilla/modules/libfont/producers/Makefile.in create mode 100644 mozilla/modules/libfont/public/Makefile.in create mode 100644 mozilla/modules/libfont/src/Makefile.in create mode 100644 mozilla/modules/libhook/Makefile.in create mode 100644 mozilla/modules/libhook/public/Makefile.in create mode 100644 mozilla/modules/libhook/src/Makefile.in create mode 100644 mozilla/modules/libimg/Makefile.in create mode 100644 mozilla/modules/libimg/classes/Makefile.in create mode 100644 mozilla/modules/libimg/classes/netscape/Makefile.in create mode 100644 mozilla/modules/libimg/classes/netscape/libimg/Makefile.in create mode 100644 mozilla/modules/libimg/png/Makefile.in create mode 100644 mozilla/modules/libimg/public/Makefile.in create mode 100644 mozilla/modules/libimg/src/Makefile.in create mode 100644 mozilla/modules/libpref/Makefile.in create mode 100644 mozilla/modules/libpref/admin/Makefile.in create mode 100644 mozilla/modules/libpref/l10n/Makefile.in create mode 100644 mozilla/modules/libpref/public/Makefile.in create mode 100644 mozilla/modules/libpref/src/Makefile.in create mode 100644 mozilla/modules/libreg/Makefile.in create mode 100644 mozilla/modules/libreg/include/Makefile.in create mode 100644 mozilla/modules/libreg/src/Makefile.in create mode 100644 mozilla/modules/libutil/Makefile.in create mode 100644 mozilla/modules/libutil/public/Makefile.in create mode 100644 mozilla/modules/libutil/src/Makefile.in create mode 100644 mozilla/modules/oji/Makefile.in create mode 100644 mozilla/modules/oji/public/Makefile.in create mode 100644 mozilla/modules/oji/src/Makefile.in create mode 100644 mozilla/modules/plugin/Makefile.in create mode 100644 mozilla/modules/plugin/base/public/Makefile.in create mode 100644 mozilla/modules/plugin/base/src/Makefile.in create mode 100644 mozilla/modules/plugin/nglsrc/Makefile.in create mode 100644 mozilla/modules/plugin/public/Makefile.in create mode 100644 mozilla/modules/plugin/samples/simple/Makefile.in create mode 100644 mozilla/modules/plugin/src/Makefile.in create mode 100644 mozilla/modules/plugin/test/Makefile.in create mode 100644 mozilla/modules/progress/public/Makefile.in create mode 100644 mozilla/modules/progress/src/Makefile.in create mode 100644 mozilla/modules/rdf/Makefile.in create mode 100644 mozilla/modules/rdf/classes/Makefile.in create mode 100644 mozilla/modules/rdf/classes/netscape/Makefile.in create mode 100644 mozilla/modules/rdf/classes/netscape/rdf/Makefile.in create mode 100644 mozilla/modules/rdf/classes/netscape/rdf/core/Makefile.in create mode 100644 mozilla/modules/rdf/include/Makefile.in create mode 100644 mozilla/modules/rdf/src/Makefile.in create mode 100644 mozilla/modules/schedulr/Makefile.in create mode 100644 mozilla/modules/schedulr/public/Makefile.in create mode 100644 mozilla/modules/schedulr/src/Makefile.in create mode 100644 mozilla/modules/security/freenav/Makefile.in create mode 100644 mozilla/modules/softupdt/classes/Makefile.in create mode 100644 mozilla/modules/softupdt/classes/netscape/Makefile.in create mode 100644 mozilla/modules/softupdt/classes/netscape/softupdate/Makefile.in create mode 100644 mozilla/modules/softupdt/include/Makefile.in create mode 100644 mozilla/modules/softupdt/src/Makefile.in create mode 100644 mozilla/modules/softupdt/src/nsdiff/Makefile.in create mode 100644 mozilla/modules/softupdt/src/nspatch/Makefile.in create mode 100644 mozilla/modules/xml/Makefile.in create mode 100644 mozilla/modules/xml/js/Makefile.in create mode 100644 mozilla/modules/xml/js/test/Makefile.in create mode 100644 mozilla/modules/zlib/src/Makefile.in create mode 100644 mozilla/nav-java/stubs/Makefile.in create mode 100644 mozilla/nav-java/stubs/include/Makefile.in create mode 100644 mozilla/nav-java/stubs/jri/Makefile.in create mode 100644 mozilla/nav-java/stubs/src/Makefile.in create mode 100644 mozilla/network/Makefile.in create mode 100644 mozilla/network/cache/Makefile.in create mode 100644 mozilla/network/cache/nu/Makefile.in create mode 100644 mozilla/network/cache/nu/include/Makefile.in create mode 100644 mozilla/network/cache/nu/public/Makefile.in create mode 100644 mozilla/network/cache/nu/src/Makefile.in create mode 100644 mozilla/network/client/Makefile.in create mode 100644 mozilla/network/cnvts/Makefile.in create mode 100644 mozilla/network/cstream/Makefile.in create mode 100644 mozilla/network/main/Makefile.in create mode 100644 mozilla/network/mimetype/Makefile.in create mode 100644 mozilla/network/module/Makefile.in create mode 100644 mozilla/network/module/tests/Makefile.in create mode 100644 mozilla/network/protocol/Makefile.in create mode 100644 mozilla/network/protocol/about/Makefile.in create mode 100644 mozilla/network/protocol/callback/Makefile.in create mode 100644 mozilla/network/protocol/certld/Makefile.in create mode 100644 mozilla/network/protocol/dataurl/Makefile.in create mode 100644 mozilla/network/protocol/file/Makefile.in create mode 100644 mozilla/network/protocol/ftp/Makefile.in create mode 100644 mozilla/network/protocol/gopher/Makefile.in create mode 100644 mozilla/network/protocol/http/Makefile.in create mode 100644 mozilla/network/protocol/imap4/Makefile.in create mode 100644 mozilla/network/protocol/js/Makefile.in create mode 100644 mozilla/network/protocol/ldap/Makefile.in create mode 100644 mozilla/network/protocol/mailbox/Makefile.in create mode 100644 mozilla/network/protocol/marimba/Makefile.in create mode 100644 mozilla/network/protocol/nntp/Makefile.in create mode 100644 mozilla/network/protocol/pop3/Makefile.in create mode 100644 mozilla/network/protocol/remote/Makefile.in create mode 100644 mozilla/network/protocol/smtp/Makefile.in create mode 100644 mozilla/network/util/Makefile.in create mode 100644 mozilla/nsprpub/Makefile.in create mode 100644 mozilla/nsprpub/include/config.h.in create mode 100644 mozilla/nsprpub/lib/Makefile.in create mode 100644 mozilla/nsprpub/lib/ds/Makefile.in create mode 100644 mozilla/nsprpub/lib/libc/Makefile.in create mode 100644 mozilla/nsprpub/lib/libc/include/Makefile.in create mode 100644 mozilla/nsprpub/lib/libc/src/Makefile.in create mode 100644 mozilla/nsprpub/lib/msgc/Makefile.in create mode 100644 mozilla/nsprpub/lib/msgc/include/Makefile.in create mode 100644 mozilla/nsprpub/lib/msgc/src/Makefile.in create mode 100644 mozilla/nsprpub/lib/msgc/tests/Makefile.in create mode 100644 mozilla/nsprpub/lib/prstreams/Makefile.in create mode 100644 mozilla/nsprpub/lib/tests/Makefile.in create mode 100644 mozilla/nsprpub/pr/Makefile.in create mode 100644 mozilla/nsprpub/pr/include/Makefile.in create mode 100644 mozilla/nsprpub/pr/include/md/Makefile.in create mode 100644 mozilla/nsprpub/pr/include/obsolete/Makefile.in create mode 100644 mozilla/nsprpub/pr/include/private/Makefile.in create mode 100644 mozilla/nsprpub/pr/src/Makefile.in create mode 100644 mozilla/nsprpub/pr/src/io/Makefile.in create mode 100644 mozilla/nsprpub/pr/src/linking/Makefile.in create mode 100644 mozilla/nsprpub/pr/src/malloc/Makefile.in create mode 100644 mozilla/nsprpub/pr/src/md/Makefile.in create mode 100644 mozilla/nsprpub/pr/src/md/os2/Makefile.in create mode 100644 mozilla/nsprpub/pr/src/md/unix/Makefile.in create mode 100644 mozilla/nsprpub/pr/src/md/windows/Makefile.in create mode 100644 mozilla/nsprpub/pr/src/memory/Makefile.in create mode 100644 mozilla/nsprpub/pr/src/misc/Makefile.in create mode 100644 mozilla/nsprpub/pr/src/pthreads/Makefile.in create mode 100644 mozilla/nsprpub/pr/src/threads/Makefile.in create mode 100644 mozilla/nsprpub/pr/src/threads/combined/Makefile.in create mode 100644 mozilla/nsprpub/pr/tests/Makefile.in create mode 100644 mozilla/nsprpub/pr/tests/dll/Makefile.in create mode 100644 mozilla/nsprpub/pr/tests/w16gui/Makefile.in create mode 100644 mozilla/nsprpub/tools/Makefile.in create mode 100644 mozilla/privacy/Makefile.in create mode 100644 mozilla/privacy/public/Makefile.in create mode 100644 mozilla/privacy/src/Makefile.in create mode 100644 mozilla/sun-java/stubs/include/Makefile.in create mode 100644 mozilla/sun-java/stubs/jri/Makefile.in create mode 100644 mozilla/sun-java/stubs/src/Makefile.in create mode 100644 mozilla/xpcom/Makefile.in create mode 100644 mozilla/xpcom/src/Makefile.in create mode 100644 mozilla/xpcom/tests/Makefile.in create mode 100644 mozilla/xpcom/tests/dynamic/Makefile.in diff --git a/mozilla/base/Makefile.in b/mozilla/base/Makefile.in new file mode 100644 index 00000000000..6903f7b1553 --- /dev/null +++ b/mozilla/base/Makefile.in @@ -0,0 +1,33 @@ +#!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 = .. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = public src + +ifdef ENABLE_TESTS +DIRS += tests +endif + +include $(topsrcdir)/config/config.mk + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/base/public/Makefile.in b/mozilla/base/public/Makefile.in new file mode 100644 index 00000000000..4967565b9e6 --- /dev/null +++ b/mozilla/base/public/Makefile.in @@ -0,0 +1,37 @@ +#!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=../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DEFINES = -D_IMPL_NS_BASE + +EXPORTS = \ + nsISizeOfHandler.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +MODULE = raptor + +include $(topsrcdir)/config/config.mk + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/base/src/Makefile.in b/mozilla/base/src/Makefile.in new file mode 100644 index 00000000000..5dbfd2d2f98 --- /dev/null +++ b/mozilla/base/src/Makefile.in @@ -0,0 +1,77 @@ +#!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=../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DEFINES =-D_IMPL_NS_BASE + +DIRS = unix + +LIBRARY_NAME = raptorbase + +CPPSRCS = \ + nsArena.cpp \ + nsAtomTable.cpp \ + nsBTree.cpp \ + nsByteBuffer.cpp \ + nsCRT.cpp \ + nsDeque.cpp \ + nsRBTree.cpp \ + nsSizeOfHandler.cpp \ + nsString.cpp \ + nsUnicharBuffer.cpp \ + nsUnicharInputStream.cpp \ + nsVoidArray.cpp \ + $(NULL) + +EXPORTS = \ + nscore.h \ + nsBTree.h \ + nsCRT.h \ + nsDeque.h \ + nsIArena.h \ + nsIAtom.h \ + nsIByteBuffer.h \ + nsIBaseStream.h \ + nsIInputStream.h \ + nsIOutputStream.h \ + nsITimer.h \ + nsITimerCallback.h \ + nsIUnicharBuffer.h \ + nsIUnicharInputStream.h \ + nsRBTree.h \ + nsString.h \ + nsVoidArray.h \ + nsUnitConversion.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +MODULE = raptor + +REQUIRES = xpcom netlib raptor + +include $(topsrcdir)/config/config.mk + +TARGET = $(LIBARY) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/base/src/unix/Makefile.in b/mozilla/base/src/unix/Makefile.in new file mode 100644 index 00000000000..aa43040ede9 --- /dev/null +++ b/mozilla/base/src/unix/Makefile.in @@ -0,0 +1,47 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +LIBRARY_NAME = gmbaseunix + +MODULE=raptor + +REQUIRES=xpcom raptor + +DEFINES = -D_IMPL_NS_WIDGET + +CPPSRCS= \ + nsTimer.cpp + +CPP_OBJS= \ + ./$(OBJDIR)/nsTimer.o \ + $(NULL) + +include $(topsrcdir)/config/config.mk + +TARGETS = $(LIBRARY) + +include $(topsrcdir)/config/rules.mk + + diff --git a/mozilla/base/tests/Makefile.in b/mozilla/base/tests/Makefile.in new file mode 100644 index 00000000000..1616c926569 --- /dev/null +++ b/mozilla/base/tests/Makefile.in @@ -0,0 +1,67 @@ +#!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=../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +REQUIRES=xpcom netlib + +include $(topsrcdir)/config/config.mk + +CPPSRCS = \ + TestAtoms.cpp \ + TestCRT.cpp \ + $(NULL) + +INCLUDES+=-I$(srcdir)/../src + +OBJS = $(CPPSRCS:.cpp=.o) + +EX_LIBS = \ + $(DIST)/lib/libraptorbase.a \ + $(DIST)/lib/libxpcom.a \ + $(DIST)/lib/libplc21.a \ + $(DIST)/lib/libplds21.a \ + $(DIST)/lib/libnspr21.a \ + $(NULL) + +PROGS = $(addprefix $(OBJDIR)/, $(CPPSRCS:.cpp=)) + +TARGETS = $(PROGS) + +include $(topsrcdir)/config/rules.mk + +# needed for mac linux +ifeq (linux,$(ARCH)) +OS_LIBS += /usr/lib/libdl.so +endif + +$(OBJDIR)/%.o: %.cpp + @$(MAKE_OBJDIR) + $(CCC) -o $@ $(CFLAGS) -c $< + +$(PROGS):$(OBJDIR)/%: $(OBJDIR)/%.o $(EX_LIBS) + @$(MAKE_OBJDIR) + $(CCC) -o $@ $@.o $(LDFLAGS) $(EX_LIBS) $(OS_LIBS) + +install:: $(TARGETS) + $(INSTALL) $(PROGS) $(DIST)/bin + diff --git a/mozilla/build/autoconf/config.guess b/mozilla/build/autoconf/config.guess new file mode 100755 index 00000000000..a65c531eb98 --- /dev/null +++ b/mozilla/build/autoconf/config.guess @@ -0,0 +1,696 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 93, 94, 95, 1996 Free Software Foundation, Inc. +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Written by Per Bothner . +# The master version of this file is at the FSF in /home/gd/gnu/lib. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# The plan is that this can be called by configure scripts if you +# don't specify an explicit system type (host/target name). +# +# Only a few systems have been added to this list; please add others +# (but try to keep the structure clean). +# + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 8/24/94.) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15 + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + alpha:OSF1:*:*) + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//'` + exit 0 ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit 0 ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-cbm-sysv4 + exit 0;; + amiga:NetBSD:*:*) + echo m68k-cbm-netbsd${UNAME_RELEASE} + exit 0 ;; + amiga:OpenBSD:*:*) + echo m68k-cbm-openbsd${UNAME_RELEASE} + exit 0 ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit 0;; + Pyramid*:OSx*:*:*|MIS*:OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit 0 ;; + NILE:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit 0 ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + i86pc:SunOS:5.*:*) + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit 0 ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit 0 ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit 0 ;; + atari*:NetBSD:*:*) + echo m68k-atari-netbsd${UNAME_RELEASE} + exit 0 ;; + atari*:OpenBSD:*:*) + echo m68k-atari-openbsd${UNAME_RELEASE} + exit 0 ;; + sun3*:NetBSD:*:*) + echo m68k-sun-netbsd${UNAME_RELEASE} + exit 0 ;; + sun3*:OpenBSD:*:*) + echo m68k-sun-openbsd${UNAME_RELEASE} + exit 0 ;; + mac68k:NetBSD:*:*) + echo m68k-apple-netbsd${UNAME_RELEASE} + exit 0 ;; + mac68k:OpenBSD:*:*) + echo m68k-apple-openbsd${UNAME_RELEASE} + exit 0 ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit 0 ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit 0 ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + 2020:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit 0 ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + sed 's/^ //' << EOF >dummy.c + int main (argc, argv) int argc; char **argv; { + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + ${CC-cc} dummy.c -o dummy \ + && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ + && rm dummy.c dummy && exit 0 + rm -f dummy.c dummy + echo mips-mips-riscos${UNAME_RELEASE} + exit 0 ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit 0 ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit 0 ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit 0 ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit 0 ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ + -o ${TARGET_BINARY_INTERFACE}x = x ] ; then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else echo i586-dg-dgux${UNAME_RELEASE} + fi + exit 0 ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit 0 ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit 0 ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit 0 ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit 0 ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit 0 ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i?86:AIX:*:*) + echo i386-ibm-aix + exit 0 ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + sed 's/^ //' << EOF >dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 + rm -f dummy.c dummy + echo rs6000-ibm-aix3.2.5 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit 0 ;; + *:AIX:*:4) + if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=4.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit 0 ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit 0 ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit 0 ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit 0 ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit 0 ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit 0 ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit 0 ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit 0 ;; + 9000/[3478]??:HP-UX:*:*) + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/7?? | 9000/8?[1679] ) HP_ARCH=hppa1.1 ;; + 9000/8?? ) HP_ARCH=hppa1.0 ;; + esac + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit 0 ;; + 3050*:HI-UX:*:*) + sed 's/^ //' << EOF >dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 + rm -f dummy.c dummy + echo unknown-hitachi-hiuxwe2 + exit 0 ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit 0 ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit 0 ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit 0 ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit 0 ;; + i?86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit 0 ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit 0 ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit 0 ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit 0 ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit 0 ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit 0 ;; + CRAY*X-MP:*:*:*) + echo xmp-cray-unicos + exit 0 ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} + exit 0 ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ + exit 0 ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} + exit 0 ;; + CRAY-2:*:*:*) + echo cray2-cray-unicos + exit 0 ;; + F300:UNIX_System_V:*:*) + FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit 0 ;; + F301:UNIX_System_V:*:*) + echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` + exit 0 ;; + hp3[0-9][05]:NetBSD:*:*) + echo m68k-hp-netbsd${UNAME_RELEASE} + exit 0 ;; + hp3[0-9][05]:OpenBSD:*:*) + echo m68k-hp-openbsd${UNAME_RELEASE} + exit 0 ;; + i?86:BSD/386:*:* | *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit 0 ;; + *:FreeBSD:*:*) + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit 0 ;; + *:NetBSD:*:*) + echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + exit 0 ;; + *:OpenBSD:*:*) + echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + exit 0 ;; + i*:CYGWIN*:*) + echo i386-pc-cygwin32 + exit 0 ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin32 + exit 0 ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + *:GNU:*:*) + echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit 0 ;; + *:Linux:*:*) + # The BFD linker knows what the default object file format is, so + # first see if it will tell us. + ld_help_string=`ld --help 2>&1` + if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf_i.86"; then + echo "${UNAME_MACHINE}-pc-linux" ; exit 0 + elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i.86linux"; then + echo "${UNAME_MACHINE}-pc-linuxaout" ; exit 0 + elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i.86coff"; then + echo "${UNAME_MACHINE}-pc-linuxcoff" ; exit 0 + elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68kelf"; then + echo "${UNAME_MACHINE}-unknown-linux" ; exit 0 + elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68klinux"; then + echo "${UNAME_MACHINE}-unknown-linuxaout" ; exit 0 + elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf32ppc"; then + echo "powerpc-unknown-linux" ; exit 0 + elif test "${UNAME_MACHINE}" = "alpha" ; then + echo alpha-unknown-linux ; exit 0 + elif test "${UNAME_MACHINE}" = "sparc" ; then + echo sparc-unknown-linux ; exit 0 + else + # Either a pre-BFD a.out linker (linuxoldld) or one that does not give us + # useful --help. Gcc wants to distinguish between linuxoldld and linuxaout. + test ! -d /usr/lib/ldscripts/. \ + && echo "${UNAME_MACHINE}-pc-linuxoldld" && exit 0 + # Determine whether the default compiler is a.out or elf + cat >dummy.c </dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 + rm -f dummy.c dummy + fi ;; +# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions +# are messed up and put the nodename in both sysname and nodename. + i?86:DYNIX/ptx:4*:*) + echo i386-sequent-sysv4 + exit 0 ;; + i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} + fi + exit 0 ;; + i?86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` + (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit 0 ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit 0 ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit 0 ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit 0 ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit 0 ;; + M68*:*:R3V[567]*:*) + test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; + 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && echo i486-ncr-sysv4.3${OS_REL} && exit 0 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && echo i486-ncr-sysv4 && exit 0 ;; + m68*:LynxOS:2.*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit 0 ;; + i?86:LynxOS:2.*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit 0 ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit 0 ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit 0 ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit 0 ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit 0 ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit 0 ;; + R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit 0 ;; + PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit 0 ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +cat >dummy.c < +# include +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +#if !defined (ultrix) + printf ("vax-dec-bsd\n"); exit (0); +#else + printf ("vax-dec-ultrix\n"); exit (0); +#endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0 +rm -f dummy.c dummy + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit 0 ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + c34*) + echo c34-convex-bsd + exit 0 ;; + c38*) + echo c38-convex-bsd + exit 0 ;; + c4*) + echo c4-convex-bsd + exit 0 ;; + esac +fi + +#echo '(Unable to guess system type)' 1>&2 + +exit 1 diff --git a/mozilla/build/autoconf/config.sub b/mozilla/build/autoconf/config.sub new file mode 100755 index 00000000000..9b2d7902827 --- /dev/null +++ b/mozilla/build/autoconf/config.sub @@ -0,0 +1,936 @@ +#! /bin/sh +# Configuration validation subroutine script, version 1.1. +# Copyright (C) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc. +# This file is (in principle) common to ALL GNU software. +# The presence of a machine in this file suggests that SOME GNU software +# can handle that machine. It does not imply ALL GNU software can. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +if [ x$1 = x ] +then + echo Configuration name missing. 1>&2 + echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 + echo "or $0 ALIAS" 1>&2 + echo where ALIAS is a recognized configuration type. 1>&2 + exit 1 +fi + +# First pass through any local machine types. +case $1 in + *local*) + echo $1 + exit 0 + ;; + *) + ;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + linux-gnu*) + os=`echo $maybe_os | sed -e 's|linux-gnu|linux|'` + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple) + os= + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco5) + os=sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arm \ + | arme[lb] | pyramid | mn10300 \ + | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \ + | alpha | we32k | ns16k | clipper | i370 | sh \ + | powerpc | powerpcle | 1750a | dsp16xx | mips64 | mipsel \ + | pdp11 | mips64el | mips64orion | mips64orionel \ + | sparc | sparclet | sparclite | sparc64) + basic_machine=$basic_machine-unknown + ;; + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i[3456]86) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + vax-* | tahoe-* | i[3456]86-* | i860-* | m32r-* | m68k-* | m68000-* \ + | m88k-* | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \ + | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* | power-* \ + | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \ + | hppa-* | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \ + | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \ + | pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* | mips64-* | mipsel-* \ + | mips64el-* | mips64orion-* | mips64orionel-* | f301-*) + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-cbm + ;; + amigados) + basic_machine=m68k-cbm + os=-amigados + ;; + amigaunix | amix) + basic_machine=m68k-cbm + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | ymp) + basic_machine=ymp-cray + os=-unicos + ;; + cray2) + basic_machine=cray2-cray + os=-unicos + ;; + [ctj]90-cray) + basic_machine=c90-cray + os=-unicos + ;; + crds | unos) + basic_machine=m68k-crds + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + os=-mvs + ;; +# I'm not sure what "Sysv32" means. Should this be sysv3.2? + i[3456]86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i[3456]86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i[3456]86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i[3456]86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + miniframe) + basic_machine=m68000-convergent + ;; + mipsel*-linux*) + basic_machine=mipsel-unknown + os=-linux + ;; + mips*-linux*) + basic_machine=mips-unknown + os=-linux + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + np1) + basic_machine=np1-gould + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pentium | p5) + basic_machine=i586-intel + ;; + pentiumpro | p6) + basic_machine=i686-intel + ;; + pentium-* | p5-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + k5) + # We don't have specific support for AMD's K5 yet, so just call it a Pentium + basic_machine=i586-amd + ;; + nexen) + # We don't have specific support for Nexgen yet, so just call it a Pentium + basic_machine=i586-nexgen + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=rs6000-ibm + ;; + ppc) basic_machine=powerpc-unknown + ;; + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + xmp) + basic_machine=xmp-cray + os=-unicos + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + mips) + if [ x$os = x-linux ]; then + basic_machine=mips-unknown + else + basic_machine=mips-mips + fi + ;; + romp) + basic_machine=romp-ibm + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sparc) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -unixware* | svr4*) + os=-sysv4 + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -amigados* | -msdos* | -newsos* | -unicos* | -aof* | -aos* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ + | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -linux* | -uxpv*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -ctix* | -uts*) + os=-sysv + ;; + -ns2 ) + os=-nextstep2 + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -xenix) + os=-xenix + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + *-acorn) + os=-riscix1.2 + ;; + arm*-semi) + os=-aout + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + # This also exists in the configure program, but was not the + # default. + # os=-sunos4 + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-ibm) + os=-aix + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigados + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f301-fujitsu) + os=-uxpv + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -aix*) + vendor=ibm + ;; + -hpux*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -vxsim* | -vxworks*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os diff --git a/mozilla/build/autoconf/install-sh b/mozilla/build/autoconf/install-sh new file mode 100755 index 00000000000..0ff4b6a08e8 --- /dev/null +++ b/mozilla/build/autoconf/install-sh @@ -0,0 +1,119 @@ +#!/bin/sh + +# +# install - install a program, script, or datafile +# This comes from X11R5; it is not part of GNU. +# +# $XConsortium: install.sh,v 1.2 89/12/18 14:47:22 jim Exp $ +# +# This script is compatible with the BSD install script, but was written +# from scratch. +# + + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit="${DOITPROG-}" + + +# put in absolute paths if you don't have them in your path; or use env. vars. + +mvprog="${MVPROG-mv}" +cpprog="${CPPROG-cp}" +chmodprog="${CHMODPROG-chmod}" +chownprog="${CHOWNPROG-chown}" +chgrpprog="${CHGRPPROG-chgrp}" +stripprog="${STRIPPROG-strip}" +rmprog="${RMPROG-rm}" + +instcmd="$mvprog" +chmodcmd="" +chowncmd="" +chgrpcmd="" +stripcmd="" +rmcmd="$rmprog -f" +mvcmd="$mvprog" +src="" +dst="" + +while [ x"$1" != x ]; do + case $1 in + -c) instcmd="$cpprog" + shift + continue;; + + -m) chmodcmd="$chmodprog $2" + shift + shift + continue;; + + -o) chowncmd="$chownprog $2" + shift + shift + continue;; + + -g) chgrpcmd="$chgrpprog $2" + shift + shift + continue;; + + -s) stripcmd="$stripprog" + shift + continue;; + + *) if [ x"$src" = x ] + then + src=$1 + else + dst=$1 + fi + shift + continue;; + esac +done + +if [ x"$src" = x ] +then + echo "install: no input file specified" + exit 1 +fi + +if [ x"$dst" = x ] +then + echo "install: no destination specified" + exit 1 +fi + + +# If destination is a directory, append the input filename; if your system +# does not like double slashes in filenames, you may need to add some logic + +if [ -d $dst ] +then + dst="$dst"/`basename $src` +fi + +# Make a temp file name in the proper directory. + +dstdir=`dirname $dst` +dsttmp=$dstdir/#inst.$$# + +# Move or copy the file name to the temp name + +$doit $instcmd $src $dsttmp + +# and set any options; do chmod last to preserve setuid bits + +if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; fi +if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; fi +if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; fi +if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; fi + +# Now rename the file to the real destination. + +$doit $rmcmd $dst +$doit $mvcmd $dsttmp $dst + + +exit 0 diff --git a/mozilla/caps/Makefile.in b/mozilla/caps/Makefile.in new file mode 100644 index 00000000000..45dbe026a18 --- /dev/null +++ b/mozilla/caps/Makefile.in @@ -0,0 +1,26 @@ +#!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 = .. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = include src + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/caps/include/Makefile.in b/mozilla/caps/include/Makefile.in new file mode 100644 index 00000000000..ae15228fa93 --- /dev/null +++ b/mozilla/caps/include/Makefile.in @@ -0,0 +1,31 @@ +#!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. + +MODULE = caps + +DEPTH = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +EXPORTS = nsZip.h nsZig.h nsLoadZig.h nsPrincipal.h nsPrivilege.h nsPrivilegeManager.h nsPrivilegeTable.h nsSystemPrivilegeTable.h nsTarget.h nsUserTarget.h jpermission.h nsUserDialogHelper.h admin.h nsCaps.h nsCapsEnums.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/caps/src/Makefile.in b/mozilla/caps/src/Makefile.in new file mode 100644 index 00000000000..cf03d53b404 --- /dev/null +++ b/mozilla/caps/src/Makefile.in @@ -0,0 +1,50 @@ +#!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. + +MODULE = caps + +LIBRARY_NAME = caps + +DEPTH = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +REQUIRES = nspr xpcom security layer js jar zlib pref img util rdf caps + +CSRCS = \ + nsZip.c \ + nsUserDialogHelper.c \ + nsZig.c \ + nsLoadZig.c \ + nsPrincipal.c \ + nsPrivilege.c \ + nsPrivilegeManager.c \ + nsPrivilegeTable.c \ + nsSystemPrivilegeTable.c \ + nsTarget.c \ + jpermission.c \ + nsUserTarget.c \ + admin.c \ + nsCaps.c \ + $(NULL) + +include $(topsrcdir)/config/rules.mk + +INCLUDES += -I$(topsrcdir)/include + diff --git a/mozilla/cmd/stubfe/Makefile.in b/mozilla/cmd/stubfe/Makefile.in new file mode 100644 index 00000000000..180400767d5 --- /dev/null +++ b/mozilla/cmd/stubfe/Makefile.in @@ -0,0 +1,1438 @@ +#! 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. +# +########################################################################## +# +# Makefile for the Mozilla X front end. +# +# There are N dimensions to a full complement of netscape binaries: +# +# - target architecture +# - debug vs optimize +# - normal vs vendor-cobranded version (number, anim, etc) +# - normal vs purified +# +# A directory is needed for each of the first two dimensions (target +# and debug) but executables for all of the others will then be built +# in the same directory from the same .o files. The files have names +# as follows: +# +# netscape-export 2.0 +# netscape-nis-export 2.0 (SunOS 4 only) +# netscape-sgi-export 2.0S (Irix5 only) +# netscape-export.pure 2.0 (SunOS 4 and Solaris only) +# ...etc... +# +# The only difference in the executables is which version of config-*.o +# is linked in, and whether or not -lresolv is used. +# +# The "release" target will create a release/ subdirectory, and N subdirs +# of that in which the various tar files will go. The tar files will be +# uniquely named, though the executables in them are all called "netscape". +# +# The exception to this is that the -nis versions don't get their own tar +# files, they are lumped in with the normal SunOS 4 package with the names +# "netscape" (for the NIS version) and "netscape_dns" (for the -lresolv +# version.) +# + +DEPTH = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = moz + +USE_3PANE = 1 +USE_SPELLCHECK = 1 + +REQUIRES = addr \ + applet \ + img \ + edtplug \ + jtools \ + lay \ + layer \ + js \ + libfont \ + mariner \ + msg \ + $(NULL) +ifdef NSPR20 +REQUIRES += plds \ + nspr20 \ + $(NULL) +else +REQUIRES += nspr \ + $(NULL) +endif +REQUIRES += parse \ + plug \ + hook \ + pref \ + rdf \ + security \ + softupdt \ + libreg \ + style \ + util \ + java \ + ldap \ + $(NULL) + +CSRCS = \ + main.c \ + stubbm.c \ + stubctxt.c \ + stubdlgs.c \ + stubedit.c \ + stubenc.c \ + stubform.c \ + stubgrid.c \ + stubhelp.c \ + stubimg.c \ + stublay.c \ + stubloc.c \ + stubmail.c \ + stubplug.c \ + stubps.c \ + stubrdf.c \ + stubrgn.c \ + stubsec.c \ + stubstr.c \ + stubtime.c \ + $(NULL) + +ifndef MOZ_LITE +XFE_PROGNAME := mozilla +DSO_PROGNAME := moz +PRODUCT_NAME := Communicator +NETHELP_DIR := comm +else +XFE_PROGNAME := mozilla-lite +DSO_PROGNAME := moz-lite +PRODUCT_NAME := Navigator +NETHELP_DIR := ratbert +CSRCS += rat_stubs.c +endif + +X_RELEASES = release-YYY \ + release-net-YYY \ + release-sgi-YYY \ + $(NULL) + +EXPORT_RELEASES = $(subst YYY,export,$(X_RELEASES)) +FRANCE_RELEASES = $(subst YYY,france,$(X_RELEASES)) +US_RELEASES = $(subst YYY,us,$(X_RELEASES)) + +RELEASES = $(EXPORT_RELEASES) $(FRANCE_RELEASES) $(US_RELEASES) + +GUESS_CONFIG := $(shell $(topsrcdir)/config/config.guess | sed 's/i[23456]86/x86/') + +ifdef BUILD_INTL +README_FILE = $(DEPTH)/l10n/us/xfe/README.intl +else +README_FILE = $(OBJDIR)/README +endif + +BUILD_NUMBER = $(DEPTH)/build/build_number +LICENSE_DIR = $(DEPTH)/l10n/us/xp + +LICENSES = $(LICENSE_DIR)/LICENSE-alpha \ + $(LICENSE_DIR)/LICENSE-export-beta \ + $(LICENSE_DIR)/LICENSE-export \ + $(NULL) + +COMMON_REL_DEPS = versionn.h \ + make-release \ + $(OBJDIR)/LICENSE \ + $(EXTRA_REL_FILES) \ + $(TEST_PLUGIN) \ + $(AUTOADMIN_DSO) \ + $(README_FILE) \ + $(DEPTH)/tpubs/$(NETHELP_DIR)/nethelp.tar.gz \ + $(DIST)/bin/zigbert$(BIN_SUFFIX) + +ifdef USE_SPELLCHECK +COMMON_REL_DEPS += \ + $(DEPTH)/modules/spellchk/data/spellchk.tar.gz \ + $(NULL) +endif + +MOZILLA_ZIP = java/applet \ + java/awt \ + java/awt/image \ + java/awt/peer \ + java/io \ + java/lang \ + java/lang/reflect \ + java/net \ + java/util \ + java/text \ + java/text/resources \ + netscape/context \ + netscape/applet \ + netscape/console \ + netscape/debug \ + netscape/plugin \ + netscape/javascript \ + netscape/util \ + netscape/application \ + netscape/constructor \ + netscape/security \ + netscape/softupdate \ + netscape/net \ + netscape/misc \ + netscape/ldap/ber/stream \ + netscape/ldap/util \ + netscape/ldap/client/opers \ + netscape/ldap/client \ + netscape/ldap \ + sun/io \ + sun/audio \ + sun/awt \ + sun/awt/image \ + sun/awt/motif \ + sun/misc/Cache.class \ + sun/misc/Ref.class \ + META-INF \ + $(NULL) + +ALL_CLASS_DEPS = $(shell find $(XPDIST)/classes -type f \( -name "*.class" -o -name "*.gif" -o -name "*.mf" -o -name "*.sf" -o -name "*.rsa" -o -name "*.properties*" \) -print) + +####################################################################### + +include $(topsrcdir)/config/config.mk + +CCLD = $(CCC) +LDFLAGS = $(CFLAGS) +NOMD_LDFLAGS = $(NOMD_CFLAGS) + +ifdef MOZILLA_GPROF +CSRCS += gmon.c +LDFLAGS = $(OPTIMIZER) +$(OBJDIR)/gmon.o: gmon.c gmon.h + $(CC) -O -c -o $@ $< +endif + +ifeq ($(OS_ARCH),HP-UX) + +# HP requires C++ programs to have main() in a C++ file. +CPPSRCS = cplusplusmain.cc +CFLAGS += -DCPLUSPLUS_LINKAGE + +ifeq ($(OS_RELEASE),B.10) +HPUX_EXTRA_DIRS = Xmu +endif + +endif + +OBJS = $(CSRCS:.c=.o) $(CPPSRCS:.cc=.o) + +GARBAGE += $(wildcard java_40*) e_kit_resources.h cxxlink-filter + +ifdef FORTEZZA +CI_LIB = $(DIST)/lib/libci.a +else +CI_LIB = +endif + +SEC_LIBS = $(DIST)/lib/lib$(LITE_PREFIX)secnav.a \ + $(DIST)/lib/libssl.a \ + $(DIST)/lib/libcert.a \ + $(DIST)/lib/libpkcs12.a \ + $(DIST)/lib/libpkcs7.a \ + $(DIST)/lib/libsecmod.a \ + $(DIST)/lib/libkey.a \ + $(DIST)/lib/libcrypto.a \ + $(DIST)/lib/libsecutil.a \ + $(DIST)/lib/libhash.a \ + $(DIST)/lib/libhtmldlgs.a \ + $(NULL) + +ifndef MOZ_LITE +SEC_LIBS += $(DIST)/lib/libldap.a $(DIST)/lib/liblber.a +endif + +SEC_LIBS += $(CI_LIB) + +US_LIB = $(SEC_LIBS) $(DIST)/lib/libdomestic.a +EXPORT_LIB = $(SEC_LIBS) $(DIST)/lib/libexport.a +FRANCE_LIB = $(SEC_LIBS) $(DIST)/lib/libfrance.a + +ifeq ($(OS_ARCH),AIX) +NSPR_LIB = +else +ifdef NSPR20 +NSPR_LIB = $(DIST)/lib/libplds21.a +NSPR_LIB += $(DIST)/lib/libplc21.a +NSPR_LIB += $(DIST)/lib/libmsgc21.a +NSPR_LIB += $(DIST)/lib/libnspr21.a +else +NSPR_LIB = $(DIST)/lib/libnspr.a +endif +endif + +ifdef DBMALLOC +NSPR_LIB += $(DIST)/lib/libdbmalloc.a +endif + +ifndef DISABLE_MARINER +CFLAGS += -DENABLE_MARINER +endif + +# +# We need libnet.a in there twice because libmsg and libnet have circular +# dependencies on functions. +# +BASIC_LIBS = $(DIST)/lib/lib$(LITE_PREFIX)net.a \ + $(DIST)/lib/lib$(LITE_PREFIX)lay.a \ + $(DIST)/lib/libimg.a \ + $(DIST)/lib/libli.a \ + $(DIST)/lib/libjmc.a \ + $(DIST)/lib/libhook.a \ + $(DIST)/lib/libparse.a \ + $(DIST)/lib/lib$(LITE_PREFIX)pref.a \ + $(DIST)/lib/lib$(LITE_PREFIX)i18n.a \ + $(DIST)/lib/libpics.a \ + $(DIST)/lib/libpwcac.a \ + $(DIST)/lib/libdbm.a + +ifdef MOZ_NATIVE_PNG +BASIC_LIBS += -lpng +else +BASIC_LIBS += $(DIST)/lib/libpng.a +endif + +ifdef MOZ_NATIVE_JPEG +BASIC_LIBS += -ljpeg +else +BASIC_LIBS += $(DIST)/lib/libjpeg.a +endif + +ifndef MOZ_LITE +BASIC_LIBS += $(DIST)/lib/libmsg.a \ + $(DIST)/lib/libnet.a \ + $(DIST)/lib/libmisc.a \ + $(DIST)/lib/libaddr.a \ + $(DIST)/lib/libneo.a \ + $(DIST)/lib/libmime.a \ + $(NULL) +else +BASIC_LIBS += $(DIST)/lib/lib$(LITE_PREFIX)misc.a +endif + +BASIC_LIBS += $(DIST)/lib/libxlate.a \ + $(DIST)/lib/lib$(LITE_PREFIX)plug.a \ + $(DIST)/lib/libutil.a \ + $(NULL) + +ifndef MOZ_LITE +ifdef USE_SPELLCHECK_STATIC +BASIC_LIBS += $(DIST)/lib/libspellchk.a +endif +endif + +BASIC_LIBS += $(DIST)/lib/libfont.a \ + $(DIST)/lib/libprgrss.a + +ifndef NO_LAYERS +BASIC_LIBS += $(DIST)/lib/liblayer.a +endif + +ifndef NO_JAVA + + +BASIC_LIBS += $(DIST)/lib/lib$(LITE_PREFIX)applet.a \ + $(DIST)/lib/libjrt.a \ + $(DIST)/lib/libjmd.a \ + $(NULL) + +ifndef MOZ_LITE +BASIC_LIBS += $(DIST)/lib/libedtplug.a +endif + +BASIC_LIBS += $(DIST)/lib/libnsn.a \ + $(DIST)/lib/libjsl.a \ + $(DIST)/lib/libnsc.a \ + $(DIST)/lib/libjpw.a \ + $(DIST)/lib/libzpw.a \ + $(DIST)/lib/libreg.a \ + $(DIST)/lib/libmmedia.a \ + $(DIST)/lib/libsoftupdate.a \ + $(DIST)/lib/libcon.a \ + $(DIST)/lib/libjbn.a \ + $(DIST)/lib/lib$(LITE_PREFIX)xp.a \ + $(DIST)/lib/librdf.a \ + $(DIST)/lib/libmariner.a \ + $(NULL) + +ifdef MOZ_NATIVE_ZLIB +BASIC_LIBS += -lz \ + $(NULL) +else +BASIC_LIBS += $(DIST)/lib/libzlib.a \ + $(NULL) +endif +endif + +ifndef NO_MOCHA +BASIC_LIBS += $(DIST)/lib/libjs.a $(DIST)/lib/libjsj.a $(DIST)/lib/libmocha.a $(DIST)/lib/libimg.a \ + $(DIST)/lib/lib$(LITE_PREFIX)lay.a +endif + +# Post-Java libs +BASIC_LIBS += $(DIST)/lib/libstyle.a $(DIST)/lib/libjar.a + +ifndef NO_UNIX_LDAP +BASIC_LIBS += $(DIST)/lib/libldap.a $(DIST)/lib/liblber.a +endif + +LOCALES = $(LOCALE_MAP) $(MAIL_IM_HACK) $(NEWS_IM_HACK) + +ALL_US_LIBS = $(BASIC_LIBS) $(US_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) +ALL_EXPORT_LIBS = $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) +ALL_FRANCE_LIBS = $(BASIC_LIBS) $(FRANCE_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) + +ALL_US_DSOS = $(ALL_US_LIBS:$(DIST)/lib/lib%.a=-l%) +ALL_EXPORT_DSOS = $(ALL_EXPORT_LIBS:$(DIST)/lib/lib%.a=-l%) +ALL_FRANCE_DSOS = $(ALL_FRANCE_LIBS:$(DIST)/lib/lib%.a=-l%) + +PLUGIN_DSO = $(DIST)/bin/libnullplugin.so +WEBFONT_DSO = $(DIST)/bin/libTrueDoc.so + +ifndef MOZ_LITE +JSD_DSO = $(DIST)/bin/libjsd.$(DLL_SUFFIX) +endif + +ifdef BUILD_UNIX_PLUGINS +ifdef BUILD_OFFICIAL +EXTRA_REL_FILES += $(PLUGIN_DSO) +ifdef MKSHLIB +EXTRA_REL_FILES += $(JSD_DSO) +endif +AUTOADMIN_DSO = $(DIST)/bin/libAutoAdmin.so +endif +TEST_PLUGIN = $(DIST)/bin/libtextplugin.so +endif + +# +# Only build the export binary by default, so the Security folks +# will be happy. Release builds will build all three binaries. +# +# Defining NO_BUILD_EXPORT will _disable_ export builds, and +# defining BUILD_FRANCE and BUILD_US will enable france and us +# builds, respectively. These can be set in the environment, +# on the command-line, or in myconfig.mk. +# +ifdef BUILD_OFFICIAL +BUILD_FRANCE = 1 +BUILD_US = 1 +endif + +ifdef MKSHLIB +ifndef NO_NETSCAPE_SHARED +ifndef NO_BUILD_EXPORT +TARGETS += $(OBJDIR)/$(DSO_PROGNAME)-export +endif +ifdef BUILD_FRANCE +TARGETS += $(OBJDIR)/$(DSO_PROGNAME)-france +endif +ifdef BUILD_US +TARGETS += $(OBJDIR)/$(DSO_PROGNAME)-us +endif +endif +endif + +ifndef NO_NETSCAPE_STATIC +ifndef NO_BUILD_EXPORT +TARGETS += $(OBJDIR)/$(XFE_PROGNAME)-export +endif +ifdef BUILD_FRANCE +TARGETS += $(OBJDIR)/$(XFE_PROGNAME)-france +endif +ifdef BUILD_US +TARGETS += $(OBJDIR)/$(XFE_PROGNAME)-us +endif +endif + +####################################################################### + +include $(topsrcdir)/config/rules.mk + +DEFINES += -DNEW_DECODERS + +####################################################################### +# +# Set defaults for all platforms. Each OS_ARCH will override this if +# necessary. +# + +ifdef BUILD_OFFICIAL +EXTRA_REL_FILES += $(DIST)/bin/vreg $(DEPTH)/l10n/us/xp/bookmark.htm +endif + +ifndef BUILD_OFFICIAL +# +# Developers won't need libTrueDoc.so. No point having a dependency +# on this when only official builds (release builds) need this. +# +NO_WEBFONTS = 1 +endif + +# Only SunOS4 needs two versions NIS and DNS. +NIS_SRC = +NIS_OBJS = +NIS_LIB = +DNS_LIB = + +# Only SunOS4 needs separate YP versions. +NEED_YP_VERSION = 0 + +# Only BSDI, Linux, and SunOS4 need the nls directory. +NEED_NLS = 0 + +# Only SunOS5 (Solaris) has MCS. +MCS_CMD = true + +# Only IRIX 5.x uses this. +EXTRA_POST_LINK_CMD = echo + +EXPORT_LDFLAGS = $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(OTHER_LIBS) $(NSPR_LIB) +EXPORT_DEPLIBS = $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) + +FRANCE_LDFLAGS = $(BASIC_LIBS) $(FRANCE_LIB) $(BASIC_LIBS_2) $(OTHER_LIBS) $(NSPR_LIB) +FRANCE_DEPLIBS = $(BASIC_LIBS) $(FRANCE_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) + +US_LDFLAGS = $(BASIC_LIBS) $(US_LIB) $(BASIC_LIBS_2) $(OTHER_LIBS) $(NSPR_LIB) +US_DEPLIBS = $(BASIC_LIBS) $(US_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) + +DSO_EX_LIBS = $(EXPORT_LDFLAGS:$(DIST)/lib/lib%.a=-l%) +DSO_EX_LIBS = $(FRANCE_LDFLAGS:$(DIST)/lib/lib%.a=-l%) +DSO_US_LIBS = $(US_LDFLAGS:$(DIST)/lib/lib%.a=-l%) + +####################################################################### +# +# Adjust build based on OS_ARCH. +# + +######################################## +# IBM Machines +ifeq ($(OS_ARCH),AIX) +CCLD = svxlC -+ +#LDFLAGS = -bGhooksyslibs -bGlibpathexec -bGnoproc +LDFLAGS = -bGnoproc +OTHER_LIBS = +US_LDFLAGS += $(AIX_NSPR_LINK) +EXPORT_LDFLAGS += $(AIX_NSPR_LINK) +FRANCE_LDFLAGS += $(AIX_NSPR_LINK) +# Grab the NSPR shared library and the "Patched especially for Netscape" version of libsvld.a +EXTRA_REL_FILES += $(AIX_NSPR) \ + $(DEPTH)/config/AIX4.1_libsvld.a \ + $(DEPTH)/config/AIX4.1_libc.a \ + $(DEPTH)/config/AIX4.2_libc.a \ + $(DEPTH)/config/AIX4.1_run_netscape + +ifndef NO_WEBFONTS +EXTRA_REL_FILES += $(WEBFONT_DSO) +endif + +endif + +######################################## +# FreeBSD +ifeq ($(OS_ARCH),FreeBSD) +OTHER_LIBS = -lm $(OS_LIBS) +endif + +######################################## +# BSDI +ifeq ($(OS_ARCH),BSD_OS) +OTHER_LIBS = -lm $(OS_LIBS) + +ifeq ($(OS_RELEASE),2.1) +OTHER_LIBS += -lipc +endif + +NEED_NLS = 1 + +endif + +######################################## +# HP Machines +ifeq ($(OS_ARCH),HP-UX) + +ifeq ($(OS_RELEASE),B.10) +INCLUDES += -I$(srcdir) +endif + +HPUX_RESOURCE_HACK = -Wp,-H16384 + +OTHER_LIBS = -L$(DIST)/lib $(OS_LIBS) + +ifndef NO_EDITOR +EXPORT_DEPLIBS += cxxlink-filter +US_DEPLIBS += cxxlink-filter +CCLD = CC -tl,./cxxlink-filter + +ifndef NO_WEBFONTS +EXTRA_REL_FILES += $(WEBFONT_DSO) +endif + +# +# On HP, enable SHLIB_PATH +# +EXTRA_POST_LINK_CMD = chatr +s enable + +endif + +endif + +######################################## +# SGI Machines +ifeq ($(OS_ARCH),IRIX) + +# +# Linker will report that '-lSgm' does not resolve any symbols, but it +# should not be removed. SGI dynamically opens the library depending on +# the setting of some resources (e.g. "useEnhancedFSB") +# +OTHER_LIBS = -lgen -laudio -lm $(OS_LIBS) + +# +# On Irix, tag the executable for use by the Indigo Magic Desktop. +# This magic number comes from /usr/lib/filetype/install/netscape.ftr +# shipped by SGI along with their n.nnS version of Mozilla. +# +ifeq ($(OS_RELEASE),5) +EXTRA_POST_LINK_CMD = /usr/sbin/tag 67150 +endif + +# +# If we are using gtscc, we must use it as the linker, and we +# can only build statically (no shared libs). +# +CCLD = CC +ifdef USE_GTSCC +ifndef NO_GTSCC +CCLD = $(DIST)/bin/gtscc $(GTSCC_LD_OPTIONS) -gtsfile $(DEPTH)/config/$(OBJDIR)/db.gts -gtsrootdir $(DEPTH) +TARGETS = $(OBJDIR)/$(XFE_PROGNAME)-export +endif +endif + +ifndef NO_WEBFONTS +EXTRA_REL_FILES += $(WEBFONT_DSO) +endif + +endif + +######################################## +# Linux +ifeq ($(OS_ARCH),Linux) + +OTHER_LIBS = /usr/lib/libm.a -ldl + +US_LDFLAGS += -lc +EXPORT_LDFLAGS += -lc +FRANCE_LDFLAGS += -lc + +endif + +######################################## +# NCR SYSV 4.0 +ifeq ($(OS_ARCH),NCR) +OTHER_LIBS = -lgen -lm $(OS_LIBS) +endif + +######################################## +# NEC SYSV 4.2 +ifeq ($(OS_ARCH),NEC) +OTHER_LIBS = -lresolv -lgen -lm $(OS_LIBS) +endif + +######################################## +# Dec Machines +ifeq ($(OS_ARCH),OSF1) + +# We would like to link OSF1 static. +# This is because of motif problems (BadMatch errors on non-default visual) +# on 3.2 and 3.0 (and not on 2.0). +# and you get warnings and core dump when pasting into Mozilla. +# Also, libXm must be dynamic, otherwise Japanese text widgets hang +# the process. +# What a delightful state of affairs. -- erik + +OTHER_LIBS = -ldnet_stub -lm -lots $(OS_LIBS) + +EXPORT_LDFLAGS = $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) $(OTHER_LIBS) +FRANCE_LDFLAGS = $(BASIC_LIBS) $(FRANCE_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) $(OTHER_LIBS) +US_LDFLAGS = $(BASIC_LIBS) $(US_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) $(OTHER_LIBS) + +ifndef NO_EDITOR +# +# OSF's cxx link command will link in _dynamic_ version of two C++ +# libraries. This is bad, they are not shipped on a base system. +# So, we call this special hacked driver script to do the job. +# +# NOT TRUE FOR DIGITAL UNIX 4.0 OR GREATER +#CCLD = ./cxxlink-driver -cxx_platform OSF1 -cxx_command cxx + +# Hack to add a dependency for executable. +#EXPORT_DEPLIBS += cxxlink-driver +#FRANCE_DEPLIBS += cxxlink-driver +#US_DEPLIBS += cxxlink-driver + +# This will also work, but will probably break easily as more C++ +# *features* get used (like static constructors - gasp!) +#CCLD = cc +#OTHER_LIBS += /usr/lib/cmplrs/cxx/libcxx.a /usr/lib/cmplrs/cxx/libexc.a +endif + +endif + +######################################## +# SNI ReliantUNIX (SINIX) +ifeq ($(OS_ARCH),ReliantUNIX) +OTHER_LIBS = $(OS_LIBS) +endif +ifeq ($(OS_ARCH),SINIX-N) +OTHER_LIBS = $(OS_LIBS) +endif + +######################################## +# SCO OpenServer +ifeq ($(OS_ARCH),SCOOS) +OTHER_LIBS = -lm -lPW $(OS_LIBS) + +ifdef NEED_XMOS +LIB_XMOS = $(OBJDIR)/Xmos.o +endif + +endif + +######################################## +# Sun Machines +ifeq ($(OS_ARCH),SunOS) + +ifeq ($(OS_RELEASE),4.1) + +ALL_TARGETS += $(OBJDIR)/$(XFE_PROGNAME)-nis-export \ + $(OBJDIR)/$(XFE_PROGNAME)-nis-net-export \ + $(OBJDIR)/$(XFE_PROGNAME)-nis-france \ + $(OBJDIR)/$(XFE_PROGNAME)-nis-net-france \ + $(OBJDIR)/$(XFE_PROGNAME)-nis-us \ + $(OBJDIR)/$(XFE_PROGNAME)-nis-net-us \ + $(NULL) + +OTHER_LIBS = + +ifndef NO_WEBFONTS +EXTRA_REL_FILES += $(WEBFONT_DSO) +endif + +ifndef NO_EDITOR +OTHER_LIBS += -L/tools/ns/lib + +# +# Need this guy because the one in libg++.a is broken. +# +BASIC_LIBS += $(OBJDIR)/regex.o +$(OBJDIR)/regex.o: /lib/libc.a + ar x /lib/libc.a regex.o && mv regex.o $@ +endif +# +# Need our own popen to fix the SunOS popen problem +# +BASIC_LIBS += $(OBJDIR)/popen.o +CSRCS += popen.c + +US_LDFLAGS += -lm +EXPORT_LDFLAGS += -lm +FRANCE_LDFLAGS += -lm + +# SunOS had 2 executables. Only the non-nis version need this +NIS_OBJS = $(OBJDIR)/dns-stub.o +NIS_SRCS = dns-stub.c +NIS_LIB = $(NIS_OBJS) +DNS_LIB = -lresolv + +# For release only. +# This is only for SunOS as it has both nis and non-nis +# version of the browser packaged together. +EXTRA_EXPORT_OBJS = $(XFE_PROGNAME)-nis-export +EXTRA_FRANCE_OBJS = $(XFE_PROGNAME)-nis-france +EXTRA_US_OBJS = $(XFE_PROGNAME)-nis-us +EXTRA_NETEXPORT_OBJS = $(XFE_PROGNAME)-nis-net-export + +NEED_YP_VERSION = 1 +NEED_NLS = 1 + +endif + +######################################## +ifneq (,$(filter 5 5.5,$(OS_RELEASE))) + +USRLIBDIR := /usr/openwin/lib +MCS_CMD = mcs -d + +ifeq ($(CPU_ARCH),sparc) +OTHER_LIBS = $(OS_LIBS) -lgen -lresolv -lm +ifndef NO_WEBFONTS +EXTRA_REL_FILES += $(WEBFONT_DSO) +endif +else +OTHER_LIBS = $(OS_LIBS) -lm +LDFLAGS = $(NOMD_CFLAGS) +endif + +US_LDFLAGS = -z defs -L$(USRLIBDIR) \ + -R$(USRLIBDIR) $(BASIC_LIBS) $(US_LIB) $(BASIC_LIBS_2) \ + $(OTHER_LIBS) $(NSPR_LIB) +EXPORT_LDFLAGS = -z defs -L$(USRLIBDIR) \ + -R$(USRLIBDIR) $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) \ + $(OTHER_LIBS) $(NSPR_LIB) +FRANCE_LDFLAGS = -z defs -L$(USRLIBDIR) \ + -R$(USRLIBDIR) $(BASIC_LIBS) $(FRANCE_LIB) $(BASIC_LIBS_2) \ + $(OTHER_LIBS) $(NSPR_LIB) + +endif + +endif + +######################################## +# SCO Unixware 2.1 +ifeq ($(OS_ARCH),UNIXWARE) + +ifdef NEED_XMOS +LIB_XMOS = $(OBJDIR)/Xmos.o +endif + +OTHER_LIBS = -lm + +US_LDFLAGS += -lresolv -lsocket -lc /usr/ucblib/libucb.a +EXPORT_LDFLAGS += -lresolv -lsocket -lc /usr/ucblib/libucb.a +FRANCE_LDFLAGS += -lresolv -lsocket -lc /usr/ucblib/libucb.a + +endif + +####################################################################### + +# Rules to build the special MOZ_LITE *.o files + +$(TARGETS): $(OBJS) + +# +# I moved this to ns/config/rules.mk -mcafee +# + + +####################################################################### +# Rules to build config*.o files + +#- export + +$(OBJDIR)/$(LITE_PREFIX)config-export.o: config.c versionn.h Makefile $(OBJS) $(EXPORT_DEPLIBS) + @echo Generating $@ from config.c...; \ + X=' '; \ + VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' versionn.h` ; \ + $(CC) -c $(CFLAGS) -o $@ config.c \ + -DCONFIG="$(GUESS_CONFIG)" \ + -DDATE="`date +%d-%h-%y`" \ + -DVERSION=$${VN} \ + -UHAVE_NIS -UFRANCE_VERSION -DEXPORT_VERSION -UUS_VERSION -UVENDOR_ANIM + +$(OBJDIR)/config-net-export.o: config.c versionn.h Makefile $(OBJS) $(EXPORT_DEPLIBS) + @echo Generating $@ from config.c...; \ + X=' '; \ + VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' versionn.h` ; \ + $(CC) -c $(CFLAGS) -o $@ config.c \ + -DCONFIG="$(GUESS_CONFIG)" \ + -DDATE="`date +%d-%h-%y`" \ + -DVERSION=$${VN}N \ + -UHAVE_NIS -UFRANCE_VERSION -DEXPORT_VERSION -UUS_VERSION -UVENDOR_ANIM + +$(OBJDIR)/$(LITE_PREFIX)config-nis-export.o: config.c versionn.h Makefile $(OBJS) $(NIS_OBJS) $(EXPORT_DEPLIBS) + @echo Generating $@ from config.c...; \ + X=' '; \ + VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' versionn.h` ; \ + $(CC) -c $(CFLAGS) -o $@ config.c \ + -DCONFIG="$(GUESS_CONFIG)" \ + -DDATE="`date +%d-%h-%y`" \ + -DVERSION=$${VN} \ + -DHAVE_NIS -UFRANCE_VERSION -DEXPORT_VERSION -UUS_VERSION -UVENDOR_ANIM + +$(OBJDIR)/config-nis-net-export.o: config.c versionn.h Makefile $(OBJS) $(NIS_OBJS) $(EXPORT_DEPLIBS) + @echo Generating $@ from config.c...; \ + X=' '; \ + VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' versionn.h` ; \ + $(CC) -c $(CFLAGS) -o $@ config.c \ + -DCONFIG="$(GUESS_CONFIG)" \ + -DDATE="`date +%d-%h-%y`" \ + -DVERSION=$${VN}N \ + -DHAVE_NIS -UFRANCE_VERSION -DEXPORT_VERSION -UUS_VERSION -UVENDOR_ANIM + +$(OBJDIR)/config-sgi-export.o: config.c versionn.h Makefile $(OBJS) $(EXPORT_DEPLIBS) + @echo Generating $@ from config.c...; \ + X=' '; \ + VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' versionn.h` ; \ + $(CC) -c $(CFLAGS) -o $@ config.c \ + -DCONFIG="$(GUESS_CONFIG)" \ + -DDATE="`date +%d-%h-%y`" \ + -DVERSION=$${VN}S \ + -UHAVE_NIS -UFRANCE_VERSION -DEXPORT_VERSION -UUS_VERSION -DVENDOR_ANIM + +#- france + +$(OBJDIR)/$(LITE_PREFIX)config-france.o: config.c versionn.h Makefile $(OBJS) $(FRANCE_DEPLIBS) + @echo Generating $@ from config.c...; \ + X=' '; \ + VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' versionn.h` ; \ + $(CC) -c $(CFLAGS) -o $@ config.c \ + -DCONFIG="$(GUESS_CONFIG)" \ + -DDATE="`date +%d-%h-%y`" \ + -DVERSION=$${VN} \ + -UHAVE_NIS -DFRANCE_VERSION -UEXPORT_VERSION -UUS_VERSION -UVENDOR_ANIM + +$(OBJDIR)/config-net-france.o: config.c versionn.h Makefile $(OBJS) $(FRANCE_DEPLIBS) + @echo Generating $@ from config.c...; \ + X=' '; \ + VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' versionn.h` ; \ + $(CC) -c $(CFLAGS) -o $@ config.c \ + -DCONFIG="$(GUESS_CONFIG)" \ + -DDATE="`date +%d-%h-%y`" \ + -DVERSION=$${VN}N \ + -UHAVE_NIS -DFRANCE_VERSION -UEXPORT_VERSION -UUS_VERSION -UVENDOR_ANIM + +$(OBJDIR)/$(LITE_PREFIX)config-nis-france.o: config.c versionn.h Makefile $(OBJS) $(NIS_OBJS) $(FRANCE_DEPLIBS) + @echo Generating $@ from config.c...; \ + X=' '; \ + VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' versionn.h` ; \ + $(CC) -c $(CFLAGS) -o $@ config.c \ + -DCONFIG="$(GUESS_CONFIG)" \ + -DDATE="`date +%d-%h-%y`" \ + -DVERSION=$${VN} \ + -DHAVE_NIS -DFRANCE_VERSION -UEXPORT_VERSION -UUS_VERSION -UVENDOR_ANIM + +$(OBJDIR)/config-nis-net-france.o: config.c versionn.h Makefile $(OBJS) $(NIS_OBJS) $(FRANCE_DEPLIBS) + @echo Generating $@ from config.c...; \ + X=' '; \ + VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' versionn.h` ; \ + $(CC) -c $(CFLAGS) -o $@ config.c \ + -DCONFIG="$(GUESS_CONFIG)" \ + -DDATE="`date +%d-%h-%y`" \ + -DVERSION=$${VN}N \ + -DHAVE_NIS -DFRANCE_VERSION -UEXPORT_VERSION -UUS_VERSION -UVENDOR_ANIM + +$(OBJDIR)/config-sgi-france.o: config.c versionn.h Makefile $(OBJS) $(FRANCE_DEPLIBS) + @echo Generating $@ from config.c...; \ + X=' '; \ + VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' versionn.h` ; \ + $(CC) -c $(CFLAGS) -o $@ config.c \ + -DCONFIG="$(GUESS_CONFIG)" \ + -DDATE="`date +%d-%h-%y`" \ + -DVERSION=$${VN}S \ + -UHAVE_NIS -DFRANCE_VERSION -UEXPORT_VERSION -UUS_VERSION -DVENDOR_ANIM + +#- us + +$(OBJDIR)/$(LITE_PREFIX)config-us.o: config.c versionn.h Makefile $(OBJS) $(US_DEPLIBS) + @echo Generating $@ from config.c...; \ + X=' '; \ + VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' versionn.h` ; \ + $(CC) -c $(CFLAGS) -o $@ config.c \ + -DCONFIG="$(GUESS_CONFIG)" \ + -DDATE="`date +%d-%h-%y`" \ + -DVERSION=$${VN} \ + -UHAVE_NIS -UFRANCE_VERSION -UEXPORT_VERSION -DUS_VERSION -UVENDOR_ANIM + +$(OBJDIR)/config-net-us.o: config.c versionn.h Makefile $(OBJS) $(US_DEPLIBS) + @echo Generating $@ from config.c...; \ + X=' '; \ + VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' versionn.h` ; \ + $(CC) -c $(CFLAGS) -o $@ config.c \ + -DCONFIG="$(GUESS_CONFIG)" \ + -DDATE="`date +%d-%h-%y`" \ + -DVERSION=$${VN}N \ + -UHAVE_NIS -UFRANCE_VERSION -UEXPORT_VERSION -DUS_VERSION -UVENDOR_ANIM + +$(OBJDIR)/$(LITE_PREFIX)config-nis-us.o: config.c versionn.h Makefile $(OBJS) $(NIS_OBJS) $(US_DEPLIBS) + @echo Generating $@ from config.c...; \ + X=' '; \ + VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' versionn.h` ; \ + $(CC) -c $(CFLAGS) -o $@ config.c \ + -DCONFIG="$(GUESS_CONFIG)" \ + -DDATE="`date +%d-%h-%y`" \ + -DVERSION=$${VN} \ + -DHAVE_NIS -UFRANCE_VERSION -UEXPORT_VERSION -DUS_VERSION -UVENDOR_ANIM + +$(OBJDIR)/config-nis-net-us.o: config.c versionn.h Makefile $(OBJS) $(NIS_OBJS) $(US_DEPLIBS) + @echo Generating $@ from config.c...; \ + X=' '; \ + VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' versionn.h` ; \ + $(CC) -c $(CFLAGS) -o $@ config.c \ + -DCONFIG="$(GUESS_CONFIG)" \ + -DDATE="`date +%d-%h-%y`" \ + -DVERSION=$${VN}N \ + -DHAVE_NIS -UFRANCE_VERSION -UEXPORT_VERSION -DUS_VERSION -UVENDOR_ANIM + +$(OBJDIR)/config-sgi-us.o: config.c versionn.h Makefile $(OBJS) $(US_DEPLIBS) + @echo Generating $@ from config.c...; \ + X=' '; \ + VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' versionn.h` ; \ + $(CC) -c $(CFLAGS) -o $@ config.c \ + -DCONFIG="$(GUESS_CONFIG)" \ + -DDATE="`date +%d-%h-%y`" \ + -DVERSION=$${VN}S \ + -UHAVE_NIS -UFRANCE_VERSION -UEXPORT_VERSION -DUS_VERSION -DVENDOR_ANIM + +####################################################################### +# Rules to build license.o files + +$(OBJDIR)/license.o: $(OBJDIR)/LICENSE.c Makefile + $(CC) -c -o $@ $< + +$(OBJDIR)/LICENSE.c: Makefile $(LICENSES) make-license + @./make-license $@ $(LICENSE_DIR) "" export + +$(OBJDIR)/LICENSE: $(OBJDIR)/license.o make-license + @./make-license $@ $(LICENSE_DIR) "" export + +####################################################################### +# Rules to build README files ( release specific ) + +$(OBJDIR)/README: README.tmpl versionn.h + @rm -f $@ + @echo "Generating $@ from $<..."; \ + CLASS="Netscape"; \ + NAME="Netscape"; \ + PROGNAME="netscape"; \ + PRODUCT="$(PRODUCT_NAME)"; \ + VN=`sed -n 's/^#define VERSION_NUMBER *\(.*\)$$/\1/p' versionn.h`; \ + VERS=`echo $$VN$$vsuffix`; \ + sed "s/@NAME@/$$NAME/g; \ + s/@CLASS@/$$CLASS/g; \ + s/@PROGNAME@/$$PROGNAME/g; \ + s/@PRODUCT@/$$PRODUCT/g; \ + s/@VERSION@/$$VERS/g; \ + s/@URLVERSION@/$$VERS/g" $< > $@ + +####################################################################### +# Rules to build resources + +.SUFFIXES: .ad + +# DO NOT CHANGE THE ORDER OF THE DEPENDENCIES. Add new ones to the end. +resources-%.o: RESOURCES-%.c Makefile + $(CC) -c $(HPUX_RESOURCE_HACK) -o $@ $< + +RESOURCES-%.c: Netscape-%.ad ad2c Makefile + @echo 'char *fe_fallbackResources[] = {' > $@; \ + ./ad2c $< >> $@; \ + echo '0};' >> $@ + +# Explicit dependency list to ensure that e_kit_resources.h gets built. +$(OBJDIR)/e_kit.o: e_kit.c e_kit_resources.h + +# Turn ekit app-defaults into a C file +e_kit_resources.h: e_kit.ad + @echo 'char* fe_ekitDefaultDatabase = ' > $@ + cat $< | tr '[\001-\272]' '[\106-\377]' | \ + od -b | sed 's/^[0-7][0-7]* *\(.*\)/\\\1/; \ + s/ /\\/g;s/\(.*\)/ "\1"/;s/^ *"\\"$$//' >> $@ + @echo ';' >> $@ + +#- export + +$(OBJDIR)/Netscape-nis-export.ad $(OBJDIR)/Netscape-export.ad: Makefile resources versionn.h strs make-resources $(LOCALE_MAP) + @./make-resources $@ Netscape Netscape "" export $(LOCALES) + +$(OBJDIR)/Netscape-nis-net-export.ad $(OBJDIR)/Netscape-net-export.ad: Makefile resources versionn.h strs make-resources $(LOCALE_MAP) + @./make-resources $@ Netscape Netscape "N" export $(LOCALES) + +$(OBJDIR)/Netscape-sgi-export.ad: Makefile resources versionn.h strs make-resources $(LOCALE_MAP) + @./make-resources $@ Netscape Netscape "S" export $(LOCALES) + +#- france + +$(OBJDIR)/Netscape-nis-france.ad $(OBJDIR)/Netscape-france.ad: Makefile resources versionn.h strs make-resources $(LOCALE_MAP) + @./make-resources $@ Netscape Netscape "" france $(LOCALES) + +$(OBJDIR)/Netscape-nis-net-france.ad $(OBJDIR)/Netscape-net-france.ad: Makefile resources versionn.h strs make-resources $(LOCALE_MAP) + @./make-resources $@ Netscape Netscape "N" france $(LOCALES) + +$(OBJDIR)/Netscape-sgi-france.ad: Makefile resources versionn.h strs make-resources $(LOCALE_MAP) + @./make-resources $@ Netscape Netscape "S" france $(LOCALES) + +#- us + +$(OBJDIR)/Netscape-nis-us.ad $(OBJDIR)/Netscape-us.ad: Makefile resources versionn.h strs make-resources $(LOCALE_MAP) + @./make-resources $@ Netscape Netscape "" us $(LOCALES) + +$(OBJDIR)/Netscape-nis-net-us.ad $(OBJDIR)/Netscape-net-us.ad: Makefile resources versionn.h strs make-resources $(LOCALE_MAP) + @./make-resources $@ Netscape Netscape "N" us $(LOCALES) + +$(OBJDIR)/Netscape-sgi-us.ad: Makefile resources versionn.h strs make-resources $(LOCALE_MAP) + @./make-resources $@ Netscape Netscape "S" us $(LOCALES) + +####################################################################### +# The "-export" DSO targets follow + +$(OBJDIR)/$(DSO_PROGNAME)-export: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) -L$(DIST)/bin -L$(DIST)/lib $(DSO_EX_LIBS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(DSO_PROGNAME)-export.mcv: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(CFLAGS) $(OBJS) $(EXPORT_OBJS) -L$(DIST)/bin -L$(DIST)/lib $(DSO_EX_LIBS) $(DNS_LIB) -lmalloc_cv + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(DSO_PROGNAME)-export.pure: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(PURIFY) $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) -L$(DIST)/bin -L$(DIST)/lib $(DSO_EX_LIBS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(DSO_PROGNAME)-export.quantify: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(QUANTIFY) $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) -L$(DIST)/bin -L$(DIST)/lib $(DSO_EX_LIBS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +#------------------ the "-us" DSO link targets follow ------------------- # + +$(OBJDIR)/$(DSO_PROGNAME)-us: $(OBJS) $(US_OBJS) $(US_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(US_OBJS) -L$(DIST)/bin -L$(DIST)/lib $(DSO_US_LIBS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(DSO_PROGNAME)-us.pure: $(OBJS) $(US_OBJS) $(US_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(PURIFY) $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(US_OBJS) -L$(DIST)/bin -L$(DIST)/lib $(DSO_US_LIBS) $(DNS_LIB) @$(EXTRA_POST_LINK_CMD) $@ + +#------------------ the "-export" XFE link targets follow ------------------- # + +$(OBJDIR)/$(XFE_PROGNAME)-export: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) $(EXPORT_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(XFE_PROGNAME)-export.pure: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(PURIFY) $(CCLD) -o $@ $(NOMD_LDFLAGS) $(OBJS) $(EXPORT_OBJS) $(EXPORT_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(XFE_PROGNAME)-export.quantify: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(QUANTIFY) $(CCLD) -o $@ $(NOMD_LDFLAGS) $(OBJS) $(EXPORT_OBJS) $(EXPORT_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(XFE_PROGNAME)-export.prof: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -p -o $@ $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) $(EXPORT_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +#------------------ the "-france" XFE targets follow ---------------- # + +ifndef USE_WACKER + +$(OBJDIR)/$(XFE_PROGNAME)-france: $(OBJS) $(FRANCE_OBJS) $(FRANCE_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(FRANCE_OBJS) $(FRANCE_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +else + +$(OBJDIR)/$(XFE_PROGNAME)-france: $(OBJDIR)/$(XFE_PROGNAME)-export $(XPDIST)/xpdist/france.txt $(DIST)/bin/patcher + @$(MAKE_OBJDIR) + rm -f $@ + $(DIST)/bin/patcher $(XPDIST)/xpdist/france.txt $(OBJDIR)/$(XFE_PROGNAME)-export $@ + +endif + +#------------------ the "-us" link XFE targets follow ------------------- # + +$(OBJDIR)/$(XFE_PROGNAME)-us: $(OBJS) $(US_OBJS) $(US_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(US_OBJS) $(US_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(XFE_PROGNAME)-us-ld: $(OBJS) $(US_OBJS) $(US_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(LD) -o $@ $(OBJS) $(US_OBJS) $(US_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(XFE_PROGNAME)-us.pure: $(OBJS) $(US_OBJS) $(US_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(PURIFY) $(CCLD) -o $@ $(NOMD_LDFLAGS) $(OBJS) $(US_OBJS) $(US_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +#------------------ the "-net" XFE link targets follow ------------------- # + + +$(OBJDIR)/$(XFE_PROGNAME)-net-export: $(OBJS) $(NET_EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(NET_EXPORT_OBJS) $(EXPORT_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(XFE_PROGNAME)-net-us: $(OBJS) $(NET_US_OBJS) $(US_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(NET_US_OBJS) $(US_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +ifndef USE_WACKER + +$(OBJDIR)/$(XFE_PROGNAME)-net-france: $(OBJS) $(NET_FRANCE_OBJS) $(FRANCE_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(NET_FRANCE_OBJS) $(FRANCE_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +else + +$(OBJDIR)/$(XFE_PROGNAME)-net-france: $(OBJDIR)/$(XFE_PROGNAME)-net-export $(XPDIST)/xpdist/france.txt $(DIST)/bin/patcher + @$(MAKE_OBJDIR) + rm -f $@ + $(DIST)/bin/patcher $(XPDIST)/xpdist/france.txt $(OBJDIR)/$(XFE_PROGNAME)-net-export $@ + +endif + +#------------------ the "-nis" XFE link targets follow ------------------- # + +$(OBJDIR)/$(XFE_PROGNAME)-nis-export: $(OBJS) $(NIS_EXPORT_OBJS) $(NIS_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(NIS_EXPORT_OBJS) $(EXPORT_LDFLAGS) $(NIS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(XFE_PROGNAME)-nis-france: $(OBJS) $(NIS_FRANCE_OBJS) $(NIS_OBJS) $(FRANCE_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(NIS_FRANCE_OBJS) $(EXPORT_LDFLAGS) $(NIS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(XFE_PROGNAME)-nis-us: $(OBJS) $(NIS_US_OBJS) $(NIS_OBJS) $(US_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(NIS_US_OBJS) $(US_LDFLAGS) $(NIS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(XFE_PROGNAME)-nis-net-export: $(OBJS) $(NIS_EXPORT_OBJS) $(NIS_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(NIS_EXPORT_OBJS) $(EXPORT_LDFLAGS) $(NIS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +#------------------ the "-nis-net" XFE link targets follow ---------------- # + +$(OBJDIR)/$(XFE_PROGNAME)-nis-net-us: $(OBJS) $(NIS_US_OBJS) $(NIS_OBJS) $(US_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(NIS_US_OBJS) $(US_LDFLAGS) $(NIS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +#-------------- SGI versions of the navigator (no nis, no net) ------------# + +$(OBJDIR)/$(XFE_PROGNAME)-sgi-export: $(OBJS) $(SGI_EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(SGI_EXPORT_OBJS) $(EXPORT_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(XFE_PROGNAME)-sgi-us: $(OBJS) $(SGI_US_OBJS) $(US_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(SGI_US_OBJS) $(US_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +ifndef USE_WACKER + +$(OBJDIR)/$(XFE_PROGNAME)-sgi-france: $(OBJS) $(SGI_FRANCE_OBJS) $(FRANCE_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(SGI_FRANCE_OBJS) $(FRANCE_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +else + +$(OBJDIR)/$(XFE_PROGNAME)-sgi-france: $(OBJDIR)/$(XFE_PROGNAME)-sgi-export $(XPDIST)/xpdist/france.txt $(DIST)/bin/patcher + @$(MAKE_OBJDIR) + rm -f $@ + $(DIST)/bin/patcher $(XPDIST)/xpdist/france.txt $(OBJDIR)/$(XFE_PROGNAME)-sgi-export $@ + +endif + +#---------------- Misc link targets follow ----------------------# + +# Make a dynamic export executable using malloc_cv by default. +mcv: $(OBJDIR)/$(DSO_PROGNAME)-export $(OBJDIR)/$(DSO_PROGNAME)-export.mcv + +# Make a purified, static export executable by default. +pure: $(OBJDIR)/$(XFE_PROGNAME)-export $(OBJDIR)/$(XFE_PROGNAME)-export.pure + +# Trying out quantify. +quantify: $(OBJDIR)/$(XFE_PROGNAME)-export $(OBJDIR)/$(XFE_PROGNAME)-export.quantify + +# Use gtscc to find dead code globals. +unreferenced: $(OBJS) $(NET_EXPORT_OBJS) $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) $(DIST)/bin/gtscc + @$(MAKE_OBJDIR) + rm -f $@ + $(DIST)/bin/gtscc -gtsrootdir $(DEPTH) -gtsdump -gtsnorecompile -gtsnolink $(DEPTH) $(OBJS) $(NET_EXPORT_OBJS) $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) | awk -n '/ 0 0 / { print $$5 " " $$1 }' | sort > $@ + +# Some dependencies that -MDupdate isn't getting. +$(OBJDIR)/strids.o: xfe_err.h +$(OBJDIR)/strings.o: xfe_err.h + +ifeq ($(OS_ARCH),AIX) +AIX_HACK := $(notdir $(AIX_NSPR)) + +# Install nspr dynamic library for AIX. +$(AIX_HACK): $(AIX_NSPR) + $(INSTALL) -m 644 $< . +endif + +install:: $(AIX_HACK) $(EXTRA_REL_FILES) $(TARGETS) +ifdef TARGETS + $(INSTALL) $(TARGETS) $(DIST)/bin +endif + +####################################################################### +# Release target + +ifdef AUTOADMIN_DSO +$(AUTOADMIN_DSO): + @cd $(DEPTH)/modules/libpref/admin; $(MAKE) POLARIS=1 polaris +endif + +$(PLUGIN_DSO): + @cd plugins/nullplugin; $(MAKE) + +ifdef TEST_PLUGIN +$(TEST_PLUGIN): + @cd plugins/textplugin; $(MAKE) +endif + +$(DIST)/bin/zigbert$(BIN_SUFFIX): + @cd $(DEPTH)/security/cmd/lib; $(MAKE) + @cd $(DEPTH)/security/cmd/jar; $(MAKE) + +$(DEPTH)/tpubs/$(NETHELP_DIR)/nethelp.tar.gz: + @cd $(DEPTH)/tpubs/$(NETHELP_DIR); $(MAKE) release + +ifdef USE_SPELLCHECK +$(DEPTH)/modules/spellchk/data/spellchk.tar.gz: + @cd $(DEPTH)/modules/spellchk/data; $(MAKE) release +endif + +release:: $(RELEASES) + +release-us: $(XFE_PROGNAME)-us $(EXTRA_US_OBJS) $(COMMON_REL_DEPS) + ./make-release $(OBJDIR) $(XFE_PROGNAME) Netscape "" us $(GUESS_CONFIG) $(NEED_YP_VERSION) "$(MCS_CMD)" $(NEED_NLS) "$(EXTRA_US_BINARY) $(EXTRA_REL_FILES)" $(README_FILE) + +release-export: $(XFE_PROGNAME)-export $(EXTRA_EXPORT_OBJS) $(COMMON_REL_DEPS) + ./make-release $(OBJDIR) $(XFE_PROGNAME) Netscape "" export $(GUESS_CONFIG) $(NEED_YP_VERSION) "$(MCS_CMD)" $(NEED_NLS) "$(EXTRA_EXPORT_BINARY) $(EXTRA_REL_FILES)" $(README_FILE) + +release-france: $(XFE_PROGNAME)-france $(EXTRA_FRANCE_OBJS) $(COMMON_REL_DEPS) + ./make-release $(OBJDIR) $(XFE_PROGNAME) Netscape "" france $(GUESS_CONFIG) $(NEED_YP_VERSION) "$(MCS_CMD)" $(NEED_NLS) "$(EXTRA_FRANCE_BINARY) $(EXTRA_REL_FILES)" $(README_FILE) + +#---------------- release-net targets follow --------------------# + +release-net-us: $(XFE_PROGNAME)-net-us $(COMMON_REL_DEPS) + ./make-release $(OBJDIR) $(XFE_PROGNAME) Netscape "N" net-us $(GUESS_CONFIG) $(NEED_YP_VERSION) "$(MCS_CMD)" $(NEED_NLS) "$(EXTRA_REL_FILES)" $(README_FILE) + +release-net-export: $(XFE_PROGNAME)-net-export $(EXTRA_NETEXPORT_OBJS) $(COMMON_REL_DEPS) + ./make-release $(OBJDIR) $(XFE_PROGNAME) Netscape "N" net-export $(GUESS_CONFIG) $(NEED_YP_VERSION) "$(MCS_CMD)" $(NEED_NLS) "$(EXTRA_REL_FILES)" $(README_FILE) + +release-net-france: $(XFE_PROGNAME)-net-france $(EXTRA_NETEXPORT_OBJS) $(COMMON_REL_DEPS) + ./make-release $(OBJDIR) $(XFE_PROGNAME) Netscape "N" net-france $(GUESS_CONFIG) $(NEED_YP_VERSION) "$(MCS_CMD)" $(NEED_NLS) "$(EXTRA_REL_FILES)" $(README_FILE) + +#---------------- release-sgi targets follow --------------------# + +release-sgi-us: $(XFE_PROGNAME)-sgi-us $(COMMON_REL_DEPS) + ./make-release $(OBJDIR) $(XFE_PROGNAME) Netscape "S" sgi-us $(GUESS_CONFIG) $(NEED_YP_VERSION) "$(MCS_CMD)" $(NEED_NLS) $(EXTRA_REL_FILES) $(README_FILE) + +release-sgi-export: $(XFE_PROGNAME)-sgi-export $(COMMON_REL_DEPS) + ./make-release $(OBJDIR) $(XFE_PROGNAME) Netscape "S" sgi-export $(GUESS_CONFIG) $(NEED_YP_VERSION) "$(MCS_CMD)" $(NEED_NLS) "$(EXTRA_REL_FILES)" $(README_FILE) + +release-sgi-france: $(XFE_PROGNAME)-sgi-france $(COMMON_REL_DEPS) + ./make-release $(OBJDIR) $(XFE_PROGNAME) Netscape "S" sgi-france $(GUESS_CONFIG) $(NEED_YP_VERSION) "$(MCS_CMD)" $(NEED_NLS) "$(EXTRA_REL_FILES)" $(README_FILE) + +####################################################################### +# Java Jar File +# +# The definative shipping JAR files are now made in the win32 build +# this is just for developers + +zips: $(JAR_NAME) + +$(XPDIST)/classes/$(JAR_NAME): $(BUILD_NUMBER) Makefile $(ALL_CLASS_DEPS) + @rm -rf $@ + @echo "Building `basename $@`" + cd $(XPDIST)/classes; \ + if test ! -d META-INF; then mkdir META-INF; fi; \ + for d in $(MOZILLA_ZIP); do \ + files=`find $$d \( -name '*.class' -o -name '*.gif' -o -name '*.props' -o -name '*.mf' -o -name '*.sf' -o -name '*.rsa' -o -name '*.properties*' \) -print`; \ + if test -n $${files:-''}; then $(ZIP) $@ $$files ; fi; \ + done; \ + +$(JAR_NAME): $(XPDIST)/classes/$(JAR_NAME) + +# +# symbols.gts for Irix, used by gtscc driver. The file needs to +# be stored in ns/config/symbols.gts. There should be a version +# checked in there. Use this rule only if you get link errors for +# C++ members functions which you reference globally. +# This rule is designed to work on IRIX or Solaris. If it works +# elsewhere fine, but... djw Feb/14/97 +# +$(OBJDIR)/symbols.gts: $(OBJS) $(US_OBJS) $(US_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + nm -p $(OBJS) $(US_OBJS) $(US_DEPLIBS) > $(OBJDIR)/gts_a + sed -n 's%.* T \(.*\)%\1%p' $(OBJDIR)/gts_a | sort -u > $(OBJDIR)/gts_d + sed -n 's%.* U \(.*\)%\1%p' $(OBJDIR)/gts_a | sort -u > $(OBJDIR)/gts_u + comm -23 $(OBJDIR)/gts_d $(OBJDIR)/gts_u > $@ + rm -f $(OBJDIR)/gts_d $(OBJDIR)/gts_u $(OBJDIR)/gts_a + +symbols.gts: $(OBJDIR)/symbols.gts + +export:: $(JAR_NAME) + +$(VERSION_OBJS): versionn.h + +everything: all $(ALL_TARGETS) + +symbols: + @echo "ALL_TARGETS = $(ALL_TARGETS)" + @echo "RELEASES = $(RELEASES)" + @echo "OS_ARCH = $(OS_ARCH)" diff --git a/mozilla/cmd/xfe/DtWidgets/Makefile.in b/mozilla/cmd/xfe/DtWidgets/Makefile.in new file mode 100644 index 00000000000..03650847b4f --- /dev/null +++ b/mozilla/cmd/xfe/DtWidgets/Makefile.in @@ -0,0 +1,30 @@ +#! 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = DtWidgets +LIBRARY_NAME = DtWidgets + +CSRCS = ComboBox.c + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/cmd/xfe/Makefile b/mozilla/cmd/xfe/Makefile index 5bf92dcd87f..6da95a5dd5b 100644 --- a/mozilla/cmd/xfe/Makefile +++ b/mozilla/cmd/xfe/Makefile @@ -584,7 +584,8 @@ endif INCLUDES += -Isrc -I. -I$(DEPTH)/dist/public/nls -I$(DEPTH)/dist/public/security \ -I$(DEPTH)/lib/libmsg -I$(DEPTH)/dist/public/ldap \ - -I$(DEPTH)/modules/libimg/public + -I$(DEPTH)/modules/libimg/public \ + -I$(DEPTH)/l10n/us ####################################################################### @@ -1057,7 +1058,7 @@ e_kit_resources.h: e_kit.ad @echo ';' >> $@ $(OBJDIR)/Netscape-nis-export.ad $(OBJDIR)/Netscape-export.ad: Makefile resources versionn.h strs make-resources $(LOCALE_MAP) - @./make-resources $@ Netscape Netscape "" export $(LOCALES) + @./make-resources $@ Netscape Netscape versionn.h strs resources $(MOZ_USER_DIR) "" export $(LOCALES) ####################################################################### # The "-export" targets diff --git a/mozilla/cmd/xfe/Makefile.in b/mozilla/cmd/xfe/Makefile.in new file mode 100644 index 00000000000..ef04a9730e9 --- /dev/null +++ b/mozilla/cmd/xfe/Makefile.in @@ -0,0 +1,1210 @@ +# +# 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. +# +########################################################################## +# +# Makefile for the Mozilla X front end. +# +# There are N dimensions to a full complement of binaries: +# +# - target architecture +# - debug vs optimized +# - normal vs "lite" +# - normal vs purified +# - dynamic vs statically linked +# +# A directory is needed for each of the first two dimensions (target +# and debug), but executables for all of the others will then be built +# in the same directory from the same .o files. The files have names +# as follows: +# +# moz-export (Dynamically linked with libs in +# ../../dist//bin) +# mozilla-export (Statically linked) +# mozilla-nis-export (SunOS 4 only) +# mozilla-export.pure (SunOS 4 and Solaris only) +# ...etc... +# +# The only difference in the executables is which version of config-*.o +# is linked in, and whether or not -lresolv is used. +# +########################################################################## + +DEPTH = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +MODULE = xfe + +USE_3PANE = 1 + +MICROLINE_LIB = $(DIST)/lib/libXmL.a + +# +# XFE2_DIR: +# +# HPUX_XMU_EXTRA_DIRS: On some HP-UX releases there is no Xmu. So you +# you might need to build your own. See ftp://ftp.x.org +# +# MOTIF_HACK_DIRS: Some bug fixes require Motif source code access. +# Such hackery cannot be released because of OSF/Motif +# licensing restrictions. +# + +include $(topsrcdir)/config/config.mk + +DIRS = \ + $(XFE2_DIR) \ + $(HPUX_XMU_EXTRA_DIRS) \ + $(MOTIF_HACK_DIRS) \ + icons \ + DtWidgets \ + XfeWidgets \ + Microline3.0/XmL \ + $(NULL) + +REQUIRES =\ + XfeWidgets \ + XfeBm \ + Microline \ + addr \ + applet \ + xpcom \ + caps \ + img \ + edtplug \ + jtools \ + lay \ + layer \ + js \ + libfont \ + mariner \ + msg \ + plds \ + nspr20 \ + parse \ + plugin \ + plugimpl \ + hook \ + pref \ + rdf \ + xml \ + security \ + softupdt \ + libreg \ + style \ + util \ + java \ + $(NULL) + +ifdef MOZ_LDAP +REQUIRES += \ + ldap \ + $(NULL) +endif + +REQUIRES += \ + xfeicons \ + progress \ + privacy \ + $(NULL) + +ifdef MOZ_FULLCIRCLE +REQUIRES += fullsoft +endif + +ifdef OJI +REQUIRES += oji \ + ojiimpl +endif + +CSRCS = \ + pref_helpers.c \ + colors.c \ + colorpicker.c \ + altmail.c \ + dragdrop.c \ + e_kit.c \ + fonts.c \ + forms.c \ + locale.c \ + menu.c \ + new_manage.c \ + outline.c \ + passwd.c \ + scroller.c \ + strids.c \ + strings.c \ + visual.c \ + MozillaWm.c \ + commands.c \ + dialogs.c \ + hot.c \ + icons.c \ + images.c \ + lay.c \ + mozilla.c \ + prefs.c \ + prefdialogs.c \ + remote-s.c \ + scroll.c \ + selection.c \ + xfe.c \ + editor.c \ + editordialogs.c \ + addrbk.c \ + $(NULL) + +ifndef MOZ_MAIL_NEWS +CSRCS += lite_stubs.c \ + $(NULL) +endif + +ifdef MOZ_MAIL_NEWS +CSRCS += \ + mailattach.c \ + mailcompose.c \ + movemail.c \ + $(NULL) +endif + +ifndef NO_UNIX_ASYNC_DNS +CSRCS += xfe-dns.c +endif + +XFE_PROGNAME := mozilla +DSO_PROGNAME := moz + +GUESS_CONFIG := $(shell $(topsrcdir)/config/config.guess | sed 's/i[23456]86/x86/') + +####################################################################### + +CCLD = $(CCC) +LDFLAGS = $(CFLAGS) +NOMD_LDFLAGS = $(NOMD_CFLAGS) +BASIC_DSOS = -L$(DIST)/bin + +ifdef MOZILLA_GPROF +CSRCS += gmon.c +LDFLAGS = $(OPTIMIZER) +$(OBJDIR)/gmon.o: gmon.c gmon.h + $(CC) -O -c -o $@ $< +endif + +ifdef SUB_UI +CSRCS += subui.c +endif + +ifndef NO_LAYERS +CSRCS += region.c +endif + +ifeq ($(OS_ARCH),HP-UX) +# +# HP requires C++ programs to have main() in a C++ file. +# +CPPSRCS = cplusplusmain.cc +CFLAGS += -DCPLUSPLUS_LINKAGE +endif + +OBJS = $(CSRCS:.c=.o) $(CPPSRCS:.cc=.o) + +GARBAGE += e_kit_resources.h cxxlink-filter + +ICONS_LIB = $(DIST)/lib/lib$(LITE_PREFIX)xfeicons.a + +DTWIDGETS_LIB = $(DIST)/lib/libDtWidgets.a +XFE_WIDGETS_LIB = $(DIST)/lib/libXfeWidgets.a +XFE_WIDGETS_BM_LIB = $(DIST)/lib/libXfeBm.a + +ifneq ($(OS_ARCH),IRIX) +DYNAMIC_SYMBOLS_F = -rdynamic # default +endif +ifeq ($(OS_ARCH),SunOS) +ifdef NS_USE_NATIVE +DYNAMIC_SYMBOLS_F = -Bdynamic +else +DYNAMIC_SYMBOLS_F = # nothing for gcc +endif +endif + +ifeq ($(OS_ARCH),AIX) +NSPR_LIB = +else +# XXX To a DSO... +#NSPR_LIB = $(DIST)/lib/libplds21.a $(DIST)/lib/libplc21.a $(DIST)/lib/libmsgc21.a $(DIST)/lib/libnspr21.a +BASIC_DSOS += -lplds21 -lplc21 -lmsgc21 -lnspr21 +endif + +ifdef DBMALLOC +NSPR_LIB += $(DIST)/lib/libdbmalloc.a +endif + +XFE2_DIR = src +XFE2_LIB = $(DIST)/lib/lib$(LITE_PREFIX)xfe2.a + +ifndef DISABLE_MARINER +CFLAGS += -DENABLE_MARINER +endif + +# +# We need libnet.a in there twice because libmsg and libnet have circular +# dependencies on functions. +# +BASIC_LIBS = \ + $(XFE2_LIB) \ + $(MICROLINE_LIB) \ + $(ICONS_LIB) \ + $(DTWIDGETS_LIB) \ + $(XFE_WIDGETS_BM_LIB) \ + $(XFE_WIDGETS_LIB) \ + $(DIST)/lib/libxlate.a \ + $(DIST)/lib/libmimetype.a \ + $(DIST)/lib/libnetcache.a \ + $(DIST)/lib/libnetcnvts.a \ + $(DIST)/lib/libnetwork.a \ + $(DIST)/lib/libnetutil.a \ + $(DIST)/lib/libnetcnvts.a \ + $(DIST)/lib/libcnetinit.a \ + $(DIST)/lib/libabouturl.a \ + $(DIST)/lib/libdataurl.a \ + $(DIST)/lib/libfileurl.a \ + $(DIST)/lib/libftpurl.a \ + $(DIST)/lib/libgophurl.a \ + $(DIST)/lib/libhttpurl.a \ + $(DIST)/lib/libjsurl.a \ + $(DIST)/lib/libmarimurl.a \ + $(DIST)/lib/libremoturl.a \ + $(DIST)/lib/libnetwork.a \ + $(DIST)/lib/lib$(LITE_PREFIX)rdf.a \ + $(DIST)/lib/lib$(LITE_PREFIX)xml.a \ + $(DIST)/lib/lib$(LITE_PREFIX)lay.a \ + $(DIST)/lib/libmariner.a \ + $(DIST)/lib/libimg.a \ + $(DIST)/lib/libprivacy.a \ + $(NULL) + +ifdef MOZ_LOC_INDEP +BASIC_LIBS += $(DIST)/lib/libli.a +endif + +ifdef JAVA_OR_NSJVM +JAVA_JMC = $(DIST)/lib/libjmc.a # XXX To be removed... +endif + +BASIC_LIBS += \ + $(JAVA_JMC) \ + $(DIST)/lib/libhook.a \ + $(DIST)/lib/libparse.a \ + $(DIST)/lib/lib$(LITE_PREFIX)pref.a \ + $(DIST)/lib/lib$(LITE_PREFIX)i18n.a \ + $(DIST)/lib/libpics.a \ + $(DIST)/lib/libpwcac.a \ + $(DIST)/lib/libreg.a \ + $(NULL) + +ifdef MOZ_NATIVE_PNG +BASIC_LIBS += -lpng +else +BASIC_LIBS += $(DIST)/lib/libpng.a +endif + +ifdef MOZ_NATIVE_JPEG +BASIC_LIBS += -ljpeg +else +BASIC_LIBS += $(DIST)/lib/libjpeg.a +endif + +BASIC_LIBS_2 = \ + $(DIST)/lib/lib$(LITE_PREFIX)xp.a \ + $(DIST)/lib/libdbm.a \ + $(DIST)/lib/libcaps.a \ + $(DIST)/lib/libxpcom.a \ + $(DIST)/lib/lib$(LITE_PREFIX)rdf.a \ + $(NULL) + +ifdef MOZ_MAIL_NEWS +ifdef MOZ_SECURITY +BASIC_LIBS += \ + $(DIST)/lib/libns_mime.a \ + $(NULL) +endif +BASIC_LIBS_2 += \ + $(DIST)/lib/libldap.a \ + $(NULL) + +endif + +BASIC_LIBS += \ + $(DIST)/lib/libmisc.a \ + $(DIST)/lib/libprgrss.a \ + $(NULL) + +ifdef MOZ_LDAP +BASIC_LIBS += \ + $(DIST)/lib/libldap.a \ + $(DIST)/lib/liblber.a \ + $(NULL) +endif + +ifdef MOZ_MAIL_NEWS +BASIC_LIBS += \ + $(DIST)/lib/libmozmsg.a \ + $(NULL) +ifdef MOZ_SECURITY +BASIC_LIBS += $(DIST)/lib/libmsg.a \ + $(NULL) +endif +BASIC_LIBS += $(DIST)/lib/libmime.a \ + $(DIST)/lib/libaddr.a \ + $(DIST)/lib/libneo.a \ + $(DIST)/lib/libaddr.a \ + $(NULL) +endif + +ifdef MOZ_MAIL_NEWS +BASIC_LIBS += $(DIST)/lib/libnntpurl.a \ + $(DIST)/lib/libsmtpurl.a \ + $(DIST)/lib/libimap4url.a \ + $(DIST)/lib/libpop3url.a \ + $(DIST)/lib/libmailbxurl.a \ + $(DIST)/lib/libcrtldurl.a \ + $(NULL) +endif + +ifdef MOZ_MAIL_NEWS +ifdef MOZ_LDAP +BASIC_LIBS += $(DIST)/lib/libldapurl.a \ + $(NULL) +endif +endif + +ifdef MOZ_CALENDAR +BASIC_LIBS += \ + $(DIST)/lib/libjulian.a \ + $(DIST)/lib/libnscnv30.a \ + $(DIST)/lib/libnsuni30.a \ + $(DIST)/lib/libnsfmt30.a \ + $(NULL) +endif + +BASIC_LIBS += \ + $(DIST)/lib/lib$(LITE_PREFIX)plug.a \ + $(DIST)/lib/libutil.a \ + $(DIST)/lib/libfont.a \ + $(NULL) + +ifndef NO_LAYERS +BASIC_LIBS += $(DIST)/lib/liblayer.a +endif + +######################################################################## +# Java +# + +ifdef MOZ_JAVA +# +# Monolithic Java +# + +BASIC_LIBS += \ + $(DIST)/lib/lib$(LITE_PREFIX)applet.a \ + $(DIST)/lib/libjrt.a \ + $(DIST)/lib/libjmd.a \ + $(NULL) + +ifdef EDITOR +BASIC_LIBS += $(DIST)/lib/libedtplug.a +endif + +BASIC_LIBS += \ + $(DIST)/lib/libnsn.a \ + $(DIST)/lib/libnsc.a \ + $(DIST)/lib/libcaps.a \ + $(DIST)/lib/libxpcom.a \ + $(DIST)/lib/libjpw.a \ + $(DIST)/lib/libzpw.a \ + $(DIST)/lib/libiawt.a \ + $(DIST)/lib/libmmedia.a \ + $(DIST)/lib/libsoftupdate.a \ + $(DIST)/lib/libprgrss.a \ + $(DIST)/lib/libcon.a \ + $(DIST)/lib/libjbn.a \ + $(NULL) + +ifdef MOZ_SECURITY +BASIC_LIBS += $(DIST)/lib/libjsl.a +endif + +ifdef MOZ_MAIL_NEWS +BASIC_LIBS += $(DIST)/lib/libjsl.a +endif + +BASIC_LIBS += $(DIST)/lib/libjrt.a + +else # !MOZ_JAVA + +# +# OJI +# + +ifdef MOZ_OJI + +BASIC_LIBS += $(DIST)/lib/liboji.a + +ifdef NSJVM + +ifdef EDITOR +BASIC_LIBS += $(DIST)/lib/libedtplug.a +endif +BASIC_LIBS += $(DIST)/lib/libsoftupdate.a +else # !NSJVM +BASIC_LIBS += \ + $(DIST)/lib/libstubsj.a \ + $(DIST)/lib/libstubnj.a \ + $(NULL) +endif # !NSJVM + +BASIC_LIBS += $(DIST)/lib/libprgrss.a \ + $(NULL) + +else # !MOZ_OJI +# No Monolithic Java, no OJI, just stubs. + +BASIC_LIBS += \ + $(DIST)/lib/libstubsj.a \ + $(DIST)/lib/libstubnj.a \ + $(NULL) + +endif # !MOZ_OJI +endif # !MOZ_JAVA + +ifdef MOZ_NATIVE_ZLIB +BASIC_LIBS += -lz +else +# XXX To a DSO... +#BASIC_LIBS += $(DIST)/lib/libzlib.a +BASIC_DSOS += -lzlib +endif + +ifndef NO_MOCHA +# XXX To a DSO... +#BASIC_LIBS += $(DIST)/lib/libjs.a $(DIST)/lib/libjsj.a +BASIC_DSOS += -ljs -ljsj +BASIC_LIBS += $(DIST)/lib/libmocha.a +endif + +# Post-Java libs +BASIC_LIBS += $(DIST)/lib/libstyle.a + +ifdef MOZ_SECURITY +BASIC_LIBS += $(DIST)/lib/libjar.a +else +EXPORT_LIB = $(DIST)/lib/libhtmldlgs.a $(DIST)/lib/libsecfree.a +endif + +LOCALES = $(LOCALE_MAP) $(MAIL_IM_HACK) $(NEWS_IM_HACK) + +ALL_EXPORT_LIBS = $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) + +ALL_EXPORT_DSOS = $(ALL_EXPORT_LIBS:$(DIST)/lib/lib%.a=-l%) +PLUGIN_DSO = $(DIST)/bin/libnullplugin.so +# +# WEBFONT dso is not in the OFFICAL build yet. It needs to be hooked in +# from the private tree +# +WEBFONT_DSO = + +ifdef BUILD_UNIX_PLUGINS +TEST_PLUGIN = $(DIST)/bin/libtextplugin.so +endif + +ifdef MKSHLIB +ifndef NO_NETSCAPE_SHARED +ifndef NO_BUILD_EXPORT +TARGETS += $(OBJDIR)/$(DSO_PROGNAME)-export +endif +endif +endif + +ifndef NO_NETSCAPE_STATIC +ifndef NO_BUILD_EXPORT +TARGETS += $(OBJDIR)/$(XFE_PROGNAME)-export +endif +endif + +X_OBJS = $(OBJDIR)/$(LITE_PREFIX)config-YYY.o \ + $(OBJDIR)/license.o \ + $(OBJDIR)/resources-YYY.o + +EXPORT_OBJS = $(subst YYY,export,$(X_OBJS)) +NIS_EXPORT_OBJS = $(subst YYY,nis-export,$(X_OBJS)) + +# If the version number changes, all these need to be rebuilt. +# (config-* doesn't need to be in here, since that already has a rule.) +VERSION_OBJS = $(OBJDIR)/license.o \ + $(OBJDIR)/resources-export.o \ + $(OBJDIR)/resources-nis-export.o + +####################################################################### + +-include $(XFEPRIVDIR)Netscape.mk +include $(topsrcdir)/config/rules.mk + +NS_RULES_MK = 1 +-include $(XFEPRIVDIR)Netscape.mk + +DEFINES += -DNEW_DECODERS + +ifdef XFE_PREF_ADVANCED_PASSIVE_FTP +DEFINES += -DXFE_PREF_ADVANCED_PASSIVE_FTP +endif + +ifdef USE_3PANE +DEFINES += -DUSE_3PANE +endif + +ifdef USE_ABCOM +DEFINES += -DUSE_ABCOM +endif + +ifdef MOZILLA_XFE_USE_WINNING_FILE_SELECTION +DEFINES += -DUSE_WINNING_FILE_SELECTION +endif + +INCLUDES += -I$(srcdir)/src -I$(srcdir)/. -I$(DEPTH)/dist/public/nls -I$(DEPTH)/dist/public/security \ + -I$(DEPTH)/lib/libmsg -I$(DEPTH)/dist/public/ldap \ + -I$(DEPTH)/modules/libimg/public \ + -I$(DEPTH)/l10n/us -I$(topsrcdir)/l10n/us + + +####################################################################### +# +# Set defaults for all platforms. Each OS_ARCH will override this if +# necessary. +# + +# +# Developers won't need libTrueDoc.so. No point having a dependency +# on this when only official builds (release builds) need this. +# +ifndef BUILD_OFFICIAL +NO_WEBFONTS = 1 +endif + +# Only SunOS4 needs two versions NIS and DNS. +NIS_SRC = +NIS_OBJS = +NIS_LIB = +DNS_LIB = + +# Only SunOS4 needs separate YP versions. +NEED_YP_VERSION = 0 + +# Only BSDI, Linux, and SunOS4 need the nls directory. +NEED_NLS = 0 + +# Only SunOS5 (Solaris) has MCS. +MCS_CMD = true + +# Only IRIX 5.x uses this. +EXTRA_POST_LINK_CMD = echo + +# +# The only difference between EXPORT_LDFLAGS and +# EXPORT_DYN_MOTIF_LDFLAGS is that OTHER_LIBS is +# replaced by OTHER_DYN_MOTIF_LIBS. +# +# OTHER_DYN_MOTIF_LIBS will use something like +# '-L/foo/bar -lXm' instead of '/foo/bar/libXm.a' +# +EXPORT_LDFLAGS =\ + $(BASIC_LIBS) \ + $(EXPORT_LIB) \ + $(BASIC_LIBS_2) \ + $(BASIC_DSOS) \ + $(OTHER_LIBS) \ + $(NSPR_LIB) + +EXPORT_DYN_MOTIF_LDFLAGS =\ + $(BASIC_LIBS) \ + $(EXPORT_LIB) \ + $(BASIC_LIBS_2) \ + $(BASIC_DSOS) \ + $(OTHER_DYN_MOTIF_LIBS) \ + $(NSPR_LIB) + +EXPORT_DEPLIBS =\ + $(BASIC_LIBS) \ + $(EXPORT_LIB) \ + $(BASIC_LIBS_2) \ + $(NSPR_LIB) + +DSO_EX_LIBS = $(EXPORT_LDFLAGS:$(DIST)/lib/lib%.a=-l%) + +####################################################################### +# +# Adjust build based on OS_ARCH. +# + +######################################## +# IBM Machines +ifeq ($(OS_ARCH),AIX) +CCLD = svxlC -+ +#LDFLAGS = -bGhooksyslibs -bGlibpathexec -bGnoproc +#LDFLAGS = -bGnoproc +# +# ??? need to double check +# +LDFLAGS = -bE:aix_exports -bGhooksyslibs -bGlibpathexec -bGnoproc -bmaxdata:20000000 +OTHER_LIBS = $(MOTIFLIB) -lXt -lXmu -lX11 $(OS_LIBS) +US_LDFLAGS += $(AIX_NSPR_LINK) +EXPORT_LDFLAGS += $(AIX_NSPR_LINK) +FRANCE_LDFLAGS += $(AIX_NSPR_LINK) +EXTRA_REL_FILES += $(AIX_NSPR) + +ifndef NO_WEBFONTS +EXTRA_REL_FILES += $(WEBFONT_DSO) +endif + +endif + +######################################## +# FreeBSD +ifeq ($(OS_ARCH),FreeBSD) +OTHER_LIBS = /usr/X11R6/lib/libXm.a -L/usr/X11R6/lib -lXt -lXmu -lXext -lX11 -lSM -lICE -lm $(OS_LIBS) +endif + +######################################## +# BSDI +ifeq ($(OS_ARCH),BSD_OS) +OTHER_LIBS = $(MOTIF)/libXm.a $(LOC_LIB_DIR)/libXt.a $(X11R6LIBS) $(LOC_LIB_DIR)/libXmu.a \ + $(LOC_LIB_DIR)/libXext.a $(LOC_LIB_DIR)/libX11.a -lm $(OS_LIBS) + +ifeq ($(OS_RELEASE),2.1) +X11R6LIBS = $(LOC_LIB_DIR)/libSM.a $(LOC_LIB_DIR)/libICE.a +OTHER_LIBS += -lipc +endif + +NEED_NLS = 1 + +endif + +######################################## +# HP Machines +ifeq ($(OS_ARCH),HP-UX) + +ifeq ($(OS_RELEASE),A.09) +HPUX_XLIBS = -L/usr/lib/X11R5 -L/usr/contrib/X11R5/lib -L/usr/lib/Motif1.2 +endif +ifeq ($(OS_RELEASE),B.10) +INCLUDES += -I. +HPUX_XLIBS = -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -L/usr/lib/Motif1.2_R6 -L/usr/lib/Motif1.2 +endif +ifeq ($(OS_RELEASE),B.11) +HPUX_XLIBS = -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -L/usr/lib/Motif2.1 +endif + +HPUX_RESOURCE_HACK = -Wp,-H16384 + +OTHER_LIBS = $(HPUX_XLIBS) -lXm -L$(DIST)/lib -lXmu -lXt -lX11 -lXext $(OS_LIBS) + +ifdef NS_USE_GCC +EXPORT_LDFLAGS = $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) $(OTHER_LIBS) +endif + +ifndef NO_EDITOR + +ifdef NS_USE_GCC +CCLD = $(CCC) +else +EXPORT_DEPLIBS += cxxlink-filter +US_DEPLIBS += cxxlink-filter +CCLD = CC -tl,./cxxlink-filter +endif + +ifndef NO_WEBFONTS +EXTRA_REL_FILES += $(WEBFONT_DSO) +endif + +# +# On HP, enable SHLIB_PATH +# +EXTRA_POST_LINK_CMD = chatr +s enable + +endif + +endif + +######################################## +# SGI Machines +ifeq ($(OS_ARCH),IRIX) + +# +# Linker will report that '-lSgm' does not resolve any symbols, but it +# should not be removed. SGI dynamically opens the library depending on +# the setting of some resources (e.g. "useEnhancedFSB") +# +OTHER_LIBS = -lSgm $(MOTIFPATCH_LIB) -lXm -lXmu -lXt -lX11 -lXext -lgen -laudio -lm $(OS_LIBS) + +# +# On Irix, tag the executable for use by the Indigo Magic Desktop. +# This magic number comes from /usr/lib/filetype/install/netscape.ftr +# shipped by SGI along with their n.nnS version of Mozilla. +# +ifeq ($(OS_RELEASE),5) +EXTRA_POST_LINK_CMD = /usr/sbin/tag 67150 +endif + +# +# If we are using gtscc, we must use it as the linker, and we +# can only build statically (no shared libs). +# +CCLD = CC +ifdef USE_GTSCC +ifndef NO_GTSCC +CCLD = $(DIST)/bin/gtscc $(GTSCC_LD_OPTIONS) -gtsfile $(DEPTH)/config/$(OBJDIR)/db.gts -gtsrootdir $(DEPTH) +TARGETS = $(OBJDIR)/$(XFE_PROGNAME)-export +endif +endif + +ifndef NO_WEBFONTS +EXTRA_REL_FILES += $(WEBFONT_DSO) +endif + +endif + +######################################## +# Linux +ifeq ($(OS_ARCH),Linux) + +XFE_MOTIF_LDFLAGS =\ + $(MOZILLA_XFE_GLIBC_BROKEN_LOCALE_FLAGS) \ + $(MOZILLA_XFE_MOTIF_STATIC_FLAGS) \ + $(MOZILLA_XFE_MOTIF_PRINT_SHELL_FLAGS) + +XFE_X11_LDFLAGS =\ + $(MOZILLA_XFE_X11_DYNAMIC_PATHS) \ + -lXt \ + -lXmu \ + $(MOZILLA_XFE_MOTIF_XPM_FLAGS) \ + $(MOZILLA_XFE_X11_DYNAMIC_FLAGS) \ + -lXext \ + $(MOZILLA_XFE_X11_SM_FLAGS) + +OTHER_LIBS =\ + $(XFE_MOTIF_LDFLAGS) \ + $(XFE_X11_LDFLAGS) \ + -lm \ + -ldl + +# Dynamic motif binary +ifdef MOZILLA_XFE_MOTIF_HAVE_DYNAMIC_LIB + +XFE_DYN_MOTIF_LDFLAGS =\ + $(MOTIFPATCH_LIB) \ + $(MOZILLA_XFE_GLIBC_BROKEN_LOCALE_FLAGS) \ + $(MOZILLA_XFE_MOTIF_DYNAMIC_PATHS) \ + $(MOZILLA_XFE_MOTIF_DYNAMIC_FLAGS) \ + $(MOZILLA_XFE_MOTIF_PRINT_SHELL_FLAGS) + +EXTRA_EXPORT_OBJS = $(OBJDIR)/$(XFE_PROGNAME)-motif-export +EXTRA_EXPORT_BINARY = $(EXTRA_EXPORT_OBJS) + +PLUGIN_DSO += $(DIST)/bin/libnullplugin-dynMotif.so + +OTHER_DYN_MOTIF_LIBS =\ + $(XFE_DYN_MOTIF_LDFLAGS) \ + $(XFE_X11_LDFLAGS) \ + -lm \ + -ldl + +endif + +# Web fonts are only available on x86 +ifeq ($(OS_RELEASE)$(CPU_ARCH),2.0x86) + +ifndef NO_WEBFONTS +EXTRA_REL_FILES += $(WEBFONT_DSO) +endif + +endif + +endif + +######################################## +# NCR SYSV 4.0 +ifeq ($(OS_ARCH),NCR) +OTHER_LIBS = -L/usr/X/lib $(MOTIFLIB) -lXt -lXmu -lXext -lX11 -lgen -lm $(OS_LIBS) +endif + +######################################## +# NEC SYSV 4.2 +ifeq ($(OS_ARCH),NEC) +OTHER_LIBS = -L/usr/abiccs/lib/X11R5 $(MOTIFLIB) -lXt -lXmu -lXext -lX11 -lresolv -lgen -lm $(OS_LIBS) +endif + +######################################## +# Dec Machines +ifeq ($(OS_ARCH),OSF1) + +# +# We would like to link OSF1 static. +# This is because of motif problems (BadMatch errors on non-default visual) +# on 3.2 and 3.0 (and not on 2.0). +# But libX11 needs to be dynamic, otherwise the locale stuff doesn't work +# and you get warnings and core dump when pasting into Mozilla. +# Also, libXm must be dynamic, otherwise Japanese text widgets hang +# the process. +# +OTHER_LIBS = -lXm -lXmu -lXt -lX11 -lXext -ldnet_stub -lm -lots $(OS_LIBS) + +EXPORT_LDFLAGS = $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) $(OTHER_LIBS) + +endif + +######################################## +# SNI ReliantUNIX (SINIX) +ifeq ($(OS_ARCH),SINIX) +OTHER_LIBS = -lXm -lXmu -lXt -lX11 -lXext $(OS_LIBS) +endif + +######################################## +# SCO OpenServer +ifeq ($(OS_ARCH),SCOOS) +OTHER_LIBS = $(LIB_XMOS) -lXm -lXt -lXmu -lXext -lX11 -lm -lPW $(OS_LIBS) + +ifdef NEED_XMOS +LIB_XMOS = $(OBJDIR)/Xmos.o +endif + +endif + +######################################## +# Sun Machines +ifeq ($(OS_ARCH),SunOS) + +ifeq ($(OS_RELEASE),4.1) + +ALL_TARGETS += $(OBJDIR)/$(XFE_PROGNAME)-nis-export + +OTHER_LIBS = -L$(MOTIF)/lib $(MOTIF)/lib/libXm.a $(MOTIF)/lib/libXmu.a $(MOTIF)/lib/libXt.a \ + $(MOTIF)/lib/libXext.a $(MOTIF)/lib/libX11.a + +ifndef NO_WEBFONTS +EXTRA_REL_FILES += $(WEBFONT_DSO) +endif + +ifndef NO_EDITOR +OTHER_LIBS += -L$(NS_LIB) + +# +# Need this guy because the one in libg++.a is (still?) broken. +# +BASIC_LIBS += $(OBJDIR)/regex.o +$(OBJDIR)/regex.o: /lib/libc.a + ar x /lib/libc.a regex.o && mv regex.o $@ +endif + +# +# Need our own popen to fix the SunOS popen problem. +# +BASIC_LIBS += $(OBJDIR)/popen.o +CSRCS += popen.c + +EXPORT_LDFLAGS += -lm + +# SunOS had 2 executables. Only the non-nis version need this +NIS_OBJS = $(OBJDIR)/dns-stub.o +NIS_SRCS = dns-stub.c +NIS_LIB = $(NIS_OBJS) +DNS_LIB = -lresolv + +# For release only. +# This is only for SunOS as it has both nis and non-nis +# version of the browser packaged together. +EXTRA_EXPORT_OBJS = $(XFE_PROGNAME)-nis-export + +NEED_YP_VERSION = 1 +NEED_NLS = 1 + +endif + +######################################## +ifneq (,$(filter 5 5.5,$(OS_RELEASE))) + +USRLIBDIR := /usr/openwin/lib +MCS_CMD = mcs -d + +ifeq ($(CPU_ARCH),sparc) +OTHER_LIBS = $(MOTIFPATCH_LIB) $(MOTIFLIB) -lXt -lXmu -lXext -lX11 $(OS_LIBS) -lgen -lresolv -lm +ifndef NO_WEBFONTS +EXTRA_REL_FILES += $(WEBFONT_DSO) +endif +else +OTHER_LIBS = $(MOTIFLIB) -lXt -lXmu -lXext -lX11 $(OS_LIBS) -lm +LDFLAGS = $(NOMD_CFLAGS) +endif + +EXPORT_LDFLAGS = -z defs -L$(MOTIF)/lib -L$(USRLIBDIR) -R$(MOTIF)/lib \ + -R$(USRLIBDIR) $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) \ + $(BASIC_DSOS) $(OTHER_LIBS) $(NSPR_LIB) + +endif +endif + +######################################## +# SCO Unixware 2.1 +ifeq ($(OS_ARCH),UNIXWARE) + +ifdef NEED_XMOS +LIB_XMOS = $(OBJDIR)/Xmos.o +endif + +OTHER_LIBS = $(LIB_XMOS) -L/usr/X/lib -lXm -lXt -lXmu -lXext -lX11 -lm + +EXPORT_LDFLAGS += -lresolv -lsocket -lc /usr/ucblib/libucb.a + +endif + +####################################################################### + +ifdef USE_AUTOCONF +OTHER_LIBS = $(FE_X_LIBS) $(ACLFLAGS) $(ACLIBS) +OTHER_DYN_MOTIF_LIBS = $(FE_X_LIBS) $(ACLFLAGS) $(ACLIBS) +endif + +####################################################################### + +$(MICROLINE_LIB): + cd Microline3.0/XmL; $(MAKE) + +$(ICONS_LIB): + cd icons; $(MAKE) + +$(DTWIDGETS_LIB): + cd DtWidgets; $(MAKE) + +$(XFE_WIDGETS_LIB): + cd XfeWidgets/Xfe; $(MAKE) + +$(XFE_WIDGETS_BM_LIB): + cd XfeWidgets/XfeBm; $(MAKE) + +$(XFE2_LIB): + cd src; $(MAKE) + +$(TARGETS): $(OBJS) + +####################################################################### +# Rules to build license.o files + +$(OBJDIR)/license.o: $(OBJDIR)/LICENSE.c Makefile + $(CC) -c -o $@ $< + +ifndef NETSCAPE_MK +$(OBJDIR)/LICENSE.c: + @echo 'const char fe_LicenseData[] = "This license intentionally left blank.";' > $@ +endif + +####################################################################### +# Rules to build config*.o files + +$(OBJDIR)/$(LITE_PREFIX)config-export.o: config.c versionn.h Makefile $(OBJS) $(EXPORT_DEPLIBS) + @echo Generating $@ from $(srcdir)/config.c...; \ + X=' '; \ + VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' $(srcdir)/versionn.h` ; \ + $(CC) -c $(CFLAGS) -o $@ $(srcdir)/config.c \ + -DCONFIG="$(GUESS_CONFIG)" \ + -DDATE="`date +%d-%h-%y`" \ + -DVERSION=$${VN} \ + -UHAVE_NIS -UFRANCE_VERSION -DEXPORT_VERSION -UUS_VERSION -UVENDOR_ANIM + +$(OBJDIR)/$(LITE_PREFIX)config-nis-export.o: config.c versionn.h Makefile $(OBJS) $(NIS_OBJS) $(EXPORT_DEPLIBS) + @echo Generating $@ from $(srcdir)/config.c...; \ + X=' '; \ + VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' $(srcdir)/versionn.h` ; \ + $(CC) -c $(CFLAGS) -o $@ $(srcdir)/config.c \ + -DCONFIG="$(GUESS_CONFIG)" \ + -DDATE="`date +%d-%h-%y`" \ + -DVERSION=$${VN} \ + -DHAVE_NIS -UFRANCE_VERSION -DEXPORT_VERSION -UUS_VERSION -UVENDOR_ANIM + +####################################################################### +# Rules to build resources + +.SUFFIXES: .ad + +# DO NOT CHANGE THE ORDER OF THE DEPENDENCIES. Add new ones to the end. +resources-%.o: RESOURCES-%.c Makefile + $(CC) -c $(HPUX_RESOURCE_HACK) -o $@ $< + +RESOURCES-%.c: Netscape-%.ad ad2c Makefile + @echo 'char *fe_fallbackResources[] = {' > $@; \ + $(srcdir)/ad2c $< >> $@; \ + echo '0};' >> $@ + +# Explicit dependency list to ensure that e_kit_resources.h gets built. +$(OBJDIR)/e_kit.o: e_kit.c e_kit_resources.h + +# Turn ekit app-defaults into a C file +e_kit_resources.h: e_kit.ad + @echo 'char* fe_ekitDefaultDatabase = ' > $@ + cat $< | tr '[\001-\272]' '[\106-\377]' | \ + od -b | sed 's/^[0-7][0-7]* *\(.*\)/\\\1/; \ + s/ /\\/g;s/\(.*\)/ "\1"/;s/^ *"\\"$$//' >> $@ + @echo ';' >> $@ + +$(OBJDIR)/Netscape-nis-export.ad $(OBJDIR)/Netscape-export.ad: Makefile resources versionn.h strs make-resources $(LOCALE_MAP) + @$(srcdir)/make-resources $@ Netscape Netscape $(srcdir)/versionn.h $(srcdir)/strs $(srcdir)/resources $(MOZ_USER_DIR) "" export $(LOCALES) + +####################################################################### +# The "-export" targets + +$(OBJDIR)/$(DSO_PROGNAME)-export: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) -L$(DIST)/bin -L$(DIST)/lib $(DSO_EX_LIBS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(DSO_PROGNAME)-export.mcv: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(CFLAGS) $(OBJS) $(EXPORT_OBJS) -L$(DIST)/bin -L$(DIST)/lib $(DSO_EX_LIBS) $(DNS_LIB) -lmalloc_cv + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(DSO_PROGNAME)-export.pure: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(PURIFY) $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) -L$(DIST)/bin -L$(DIST)/lib $(DSO_EX_LIBS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(DSO_PROGNAME)-export.quantify: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(QUANTIFY) $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) -L$(DIST)/bin -L$(DIST)/lib $(DSO_EX_LIBS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(XFE_PROGNAME)-export: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(DYNAMIC_SYMBOLS_F) $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) $(EXPORT_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(XFE_PROGNAME)-export.pure: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(PURIFY) $(CCLD) -o $@ $(NOMD_LDFLAGS) $(OBJS) $(EXPORT_OBJS) $(EXPORT_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(XFE_PROGNAME)-export.quantify: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(QUANTIFY) $(CCLD) -o $@ $(NOMD_LDFLAGS) $(OBJS) $(EXPORT_OBJS) $(EXPORT_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(XFE_PROGNAME)-export.prof: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -p -o $@ $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) $(EXPORT_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +$(OBJDIR)/$(XFE_PROGNAME)-nis-export: $(OBJS) $(NIS_EXPORT_OBJS) $(NIS_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(NIS_EXPORT_OBJS) $(EXPORT_LDFLAGS) $(NIS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ + +# +# Build a dynamic Motif version. +# +ifeq ($(OS_ARCH),Linux) +ifdef MOZILLA_XFE_MOTIF_HAVE_DYNAMIC_LIB +$(OBJDIR)/$(XFE_PROGNAME)-motif-export: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CCLD) -o $@ $(DYNAMIC_SYMBOLS_F) $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) $(EXPORT_DYN_MOTIF_LDFLAGS) $(DNS_LIB) + @$(EXTRA_POST_LINK_CMD) $@ +endif +endif + +#---------------- Misc link targets follow ----------------------# + +# Make a dynamic export executable using malloc_cv by default. +mcv: $(OBJDIR)/$(DSO_PROGNAME)-export $(OBJDIR)/$(DSO_PROGNAME)-export.mcv + +# Make a purified, static export executable by default. +pure: $(OBJDIR)/$(XFE_PROGNAME)-export $(OBJDIR)/$(XFE_PROGNAME)-export.pure + +# Trying out quantify. +quantify: $(OBJDIR)/$(XFE_PROGNAME)-export $(OBJDIR)/$(XFE_PROGNAME)-export.quantify + +# Use gtscc to find dead code globals. +unreferenced: $(OBJS) $(NET_EXPORT_OBJS) $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) $(DIST)/bin/gtscc + @$(MAKE_OBJDIR) + rm -f $@ + $(DIST)/bin/gtscc -gtsrootdir $(DEPTH) -gtsdump -gtsnorecompile -gtsnolink $(DEPTH) $(OBJS) $(NET_EXPORT_OBJS) $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) | awk -n '/ 0 0 / { print $$5 " " $$1 }' | sort > $@ + +# Some dependencies that -MDupdate isn't getting. +$(OBJDIR)/strids.o: xfe_err.h +$(OBJDIR)/strings.o: xfe_err.h + +ifeq ($(OS_ARCH),AIX) + +# +# In first. Need to double check +# +# This fixes a 4.5-specific problem caused by including /usr/include/strings.h unnecessarily. +$(OBJDIR)/mozilla.o: mozilla.c + @$(MAKE_OBJDIR) + $(CC) -o $@ -c $(CFLAGS) -D_H_STRINGS $< +# +# end +# +AIX_HACK := $(notdir $(AIX_NSPR)) + +# Install nspr dynamic library for AIX. +$(AIX_HACK): $(AIX_NSPR) + $(INSTALL) -m 644 $< . +endif + +install:: $(AIX_HACK) $(EXTRA_REL_FILES) $(TARGETS) +ifdef TARGETS + $(INSTALL) $(filter-out tweak_nspr,$(TARGETS)) $(DIST)/bin +endif + +$(VERSION_OBJS): versionn.h + +# +# For some reason the -include's in this file aren't working, +# so until I figure it out, if Netscape.mk doesn't exist, just +# create a dummy file. --briano +# +$(XFEPRIVDIR)Netscape.mk: +ifdef XFEPRIVDIR + @-mkdir -p $(XFEPRIVDIR) +endif + @touch $@ + +everything: all $(ALL_TARGETS) + +symbols: + @echo "ALL_TARGETS = $(ALL_TARGETS)" + @echo "RELEASES = $(RELEASES)" + @echo "OS_ARCH = $(OS_ARCH)" + @echo "FC_PLATFORM = $(FC_PLATFORM)" diff --git a/mozilla/cmd/xfe/Microline3.0/Makefile.in b/mozilla/cmd/xfe/Microline3.0/Makefile.in new file mode 100644 index 00000000000..d0dae9a0dd5 --- /dev/null +++ b/mozilla/cmd/xfe/Microline3.0/Makefile.in @@ -0,0 +1,36 @@ +#!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. + + +# +# The following source code is part of the Microline Widget Library. +# The Microline widget library is made available to Mozilla developers +# under the Netscape Public License (NPL) by Neuron Data. To learn +# more about Neuron Data, please visit the Neuron Data Home Page at +# http://www.neurondata.com. +# + +DEPTH = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = XmL + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/cmd/xfe/Microline3.0/XmL/Makefile.in b/mozilla/cmd/xfe/Microline3.0/XmL/Makefile.in new file mode 100644 index 00000000000..0c2099d6674 --- /dev/null +++ b/mozilla/cmd/xfe/Microline3.0/XmL/Makefile.in @@ -0,0 +1,88 @@ +#! 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. + + +# +# The following source code is part of the Microline Widget Library. +# The Microline widget library is made available to Mozilla developers +# under the Netscape Public License (NPL) by Neuron Data. To learn +# more about Neuron Data, please visit the Neuron Data Home Page at +# http://www.neurondata.com. +# + +########################################################################## +# +# Name: Makefile +# Description: Makefile for Microline Widget library +# Author: Ramiro Estrugo +# +########################################################################## + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +# XmL headers are exported to dist/public/Microline/XmL +MODULE = Microline/XmL + +LIBRARY_NAME = XmL + +# There are unused widgets. They are currently not needed to build Mozilla, +# but that might change in the future. +ifdef XFE_WIDGETS_BUILD_UNUSED + +XFE_EXTRA_DEFINES += -DXFE_WIDGETS_BUILD_UNUSED + +UNUSED_CSRCS = \ + Progress.c \ + $(NULL) + +UNUSED_EXPORTS = \ + Progress.h \ + ProgressP.h \ + $(NULL) +endif + +CSRCS = \ + $(UNUSED_CSRCS) \ + Folder.c \ + Grid.c \ + GridUtil.c \ + Tree.c \ + XmL.c \ + $(NULL) + +REQUIRES = Microline + +EXPORTS = \ + $(UNUSED_EXPORTS) \ + Folder.h \ + FolderP.h \ + Grid.h \ + GridP.h \ + Tree.h \ + TreeP.h \ + XmL.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/cmd/xfe/Microline3.0/examples/Makefile.in b/mozilla/cmd/xfe/Microline3.0/examples/Makefile.in new file mode 100644 index 00000000000..508b395adea --- /dev/null +++ b/mozilla/cmd/xfe/Microline3.0/examples/Makefile.in @@ -0,0 +1,173 @@ +#! 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. + + +# +# This make file was copied from ns/cmd/xfe/XfeWidgets/tests/Makefile +# and tweaked. A lot of the rules and logic can probably be shared. +# Stuff should be shared in +# +# +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +ifdef XFE_WIDGETS_BUILD_UNUSED +UNUSED_CSRCS = \ + prog1.c \ + prog2.c \ + prog3.c \ + tree1.c \ + tree2.c \ + tree3.c \ + tree4.c \ + tree5.c \ + $(NULL) +endif + +CSRCS = \ + $(UNUSED_CSRCS) \ + demo.c \ + folder1.c \ + folder2.c \ + folder3.c \ + folder4.c \ + grid1.c \ + grid2.c \ + grid3.c \ + grid4.c \ + grid5.c \ + grid6.c \ + uil1.c \ + util1.c \ + $(NULL) + +REQUIRES = \ + Microline + +PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=.exe)) + +include $(topsrcdir)/config/rules.mk +include $(topsrcdir)/cmd/xfe/XfeWidgets/XfeWidgets.mk + +all:: $(PROGS) +install:: $(PROGS) + +LDFLAGS = + +SHARED_XFE_LIBS = $(DIST)/bin/libXmL.$(DLL_SUFFIX) + +STATIC_XFE_LIBS = $(DIST)/lib/libXmL.a + +DIST_FLAGS = -L$(DIST)/bin + +ifeq ($(OS_ARCH),AIX) + + XFE_FLAGS = $(STATIC_XFE_LIBS) + +else + + XFE_FLAGS = $(SHARED_XFE_LIBS) + +endif + +ifeq ($(OS_ARCH),Linux) +-include $(DEPTH)/config/motif.mk +endif + +XM_LD_FLAGS = -lMrm -lXm $(NS_MOTIF2_XP_LD_FLAGS) + +X_LD_FLAGS = $(XM_LD_FLAGS) -lXt -lXmu -lXext -lX11 + +OS_BEFORE_FLAGS = +OS_AFTER_FLAGS = + +ifeq ($(OS_ARCH),SunOS) + +OS_BEFORE_LDFLAGS =\ + -L/usr/dt/lib \ + -L/usr/openwin/lib + +OS_AFTER_LDFLAGS =\ + -lw \ + -lintl \ + -lsocket \ + -lnsl \ + -lgen \ + -lm \ + -ldl +endif + +ifeq ($(OS_ARCH),AIX) + +OS_BEFORE_LDFLAGS =\ + -L/usr/dt/lib +endif + +ifeq ($(OS_ARCH),IRIX) +endif + +ifeq ($(OS_ARCH),Linux) + +OS_BEFORE_LDFLAGS = -L/usr/X11R6/lib + +endif + +ifeq ($(OS_ARCH),HP-UX) + +OS_BEFORE_LDFLAGS = -L$(DIST)/bin + +endif + +LDFLAGS =\ + $(OS_BEFORE_LDFLAGS) \ + $(DIST_FLAGS) \ + $(XFE_FLAGS) \ + $(X_LD_FLAGS) \ + $(OS_AFTER_LDFLAGS) + +## +## Test dependancies +## +#OTHER_DEPS = Makefile $(XFE_FLAGS) +OTHER_DEPS = $(XFE_FLAGS) + +## +## Resource source rule +## +#$(OBJDIR)/%.ad.c:: %.ad # Makefile +# @$(MAKE_OBJDIR) +# @echo 'char * fallback_resources[] = {' > $@; \ +# ./ad2c $< >> $@; \ +# echo '0};' >> $@ + +## +## Resource object rule +## +#$(OBJDIR)/%.ad.o: $(OBJDIR)/%.ad.c +# @$(MAKE_OBJDIR) +# $(CC) -o $@ -c $< + +## +## Binary link rule +## +$(OBJDIR)/%.exe: $(OBJDIR)/%.o $(OTHER_DEPS) + @$(MAKE_OBJDIR) + $(XFE_PURIFY) $(CC) -o $@ $< $(LDFLAGS) diff --git a/mozilla/cmd/xfe/XfeWidgets/Makefile.in b/mozilla/cmd/xfe/XfeWidgets/Makefile.in new file mode 100644 index 00000000000..3f0e45e70f1 --- /dev/null +++ b/mozilla/cmd/xfe/XfeWidgets/Makefile.in @@ -0,0 +1,53 @@ +#! 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. + + +########################################################################## +# +# Name: Makefile +# Description: Makefile for Xfe Widgets and related libraries +# Author: Ramiro Estrugo +# +########################################################################## + +DEPTH = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +ifdef ENABLE_TESTS +ifdef XFE_WIDGETS_BUILD_TESTS +TEST_DIRS = \ + XfeTest \ + tests \ + $(NULL) +endif +endif + +DIRS = \ + Xfe \ + XfeBm \ + $(TEST_DIRS) + +include $(topsrcdir)/config/rules.mk + +ifdef ENABLE_TESTS +tests:: + @$(MAKE) all XFE_WIDGETS_BUILD_TESTS=1 +endif diff --git a/mozilla/cmd/xfe/XfeWidgets/Xfe/Makefile.in b/mozilla/cmd/xfe/XfeWidgets/Xfe/Makefile.in new file mode 100644 index 00000000000..e4df6b98bda --- /dev/null +++ b/mozilla/cmd/xfe/XfeWidgets/Xfe/Makefile.in @@ -0,0 +1,200 @@ +#!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. + + +########################################################################## +# +# Name: Makefile +# Description: Makefile for XfeWidgets library +# Author: Ramiro Estrugo +# +########################################################################## + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +# XfeWidgets headers are exported to dist/public/XfeWidgets/Xfe +MODULE = XfeWidgets/Xfe + +LIBRARY_NAME = XfeWidgets + +# The XfeTempTwo widget is a demo. It has all the possible bells and +# whistles for a subclass of XfeManager. It can be used as a template +# when creating new XfeManager widgets. Its not built by default +ifdef XFE_WIDGETS_BUILD_DEMO + +XFE_EXTRA_DEFINES += -DXFE_WIDGETS_BUILD_DEMO + +DEMO_CSRCS = \ + TempTwo.c \ + $(NULL) + +DEMO_EXPORTS = \ + TempTwo.h \ + TempTwoP.h \ + $(NULL) +endif + +# There are unused widgets. They are currently not needed to build Mozilla. +# Some of them are works in progress for new features. Some of them are +# ideas partially implemented, but never used. Most of them are likely to +# be used in the future in some form. They also might contain usefull code, +# so leave them alone. +ifdef XFE_WIDGETS_BUILD_UNUSED + +XFE_EXTRA_DEFINES += -DXFE_WIDGETS_BUILD_UNUSED + +UNUSED_CSRCS = \ + FontChooser.c \ + $(NULL) + +UNUSED_EXPORTS = \ + FontChooser.h \ + FontChooserP.h \ + $(NULL) +endif + + +CSRCS = \ + $(DEMO_CSRCS) \ + $(UNUSED_CSRCS) \ + Arrow.c \ + Button.c \ + BypassShell.c \ + CallProcs.c \ + Cascade.c \ + ChildrenUtil.c \ + Chrome.c \ + Converters.c \ + Cursor.c \ + DashBoard.c \ + Debug.c \ + DialogUtil.c \ + Draw.c \ + Find.c \ + FrameShell.c \ + GcUtil.c \ + Geometry.c \ + Label.c \ + Linked.c \ + ListUtil.c \ + Logo.c \ + Manager.c \ + MenuUtil.c \ + Oriented.c \ + Pane.c \ + PixmapUtil.c \ + Primitive.c \ + Private.c \ + ProgressBar.c \ + RepType.c \ + Resources.c \ + SetValues.c \ + ShellUtil.c \ + StringUtil.c \ + Tab.c \ + TaskBar.c \ + ToolBar.c \ + ToolBox.c \ + ToolItem.c \ + ToolScroll.c \ + Translations.c \ + Util.c \ + WmUtil.c \ + $(NULL) + +REQUIRES = XfeWidgets + +EXPORTS = \ + $(DEMO_EXPORTS) \ + $(UNUSED_EXPORTS) \ + Arrow.h \ + ArrowP.h \ + BasicDefines.h \ + Button.h \ + ButtonP.h \ + BypassShell.h \ + BypassShellP.h \ + Cascade.h \ + CascadeP.h \ + ChildrenUtil.h \ + Chrome.h \ + ChromeP.h \ + Converters.h \ + DashBoard.h \ + DashBoardP.h \ + Debug.h \ + Defaults.h \ + DialogUtil.h \ + Draw.h \ + Find.h \ + FrameShell.h \ + FrameShellP.h \ + Geometry.h \ + GeometryP.h \ + Label.h \ + LabelP.h \ + Linked.h \ + LinkedP.h \ + ListUtil.h \ + ListUtilP.h \ + Logo.h \ + LogoP.h \ + Manager.h \ + ManagerP.h \ + MenuUtil.h \ + Oriented.h \ + OrientedP.h \ + Pane.h \ + PaneP.h \ + PrepareP.h \ + Primitive.h \ + PrimitiveP.h \ + ProgressBar.h \ + ProgressBarP.h \ + RepType.h \ + Resources.h \ + ShellUtil.h \ + StringDefs.h \ + StringUtil.h \ + Tab.h \ + TabP.h \ + TaskBar.h \ + TaskBarP.h \ + ToolBar.h \ + ToolBarP.h \ + ToolBox.h \ + ToolBoxP.h \ + ToolItem.h \ + ToolItemP.h \ + ToolScroll.h \ + ToolScrollP.h \ + WmUtil.h \ + Xfe.h \ + XfeAll.h \ + XfeP.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk + +DEFINES += $(XFE_EXTRA_DEFINES) diff --git a/mozilla/cmd/xfe/XfeWidgets/XfeBm/Makefile.in b/mozilla/cmd/xfe/XfeWidgets/XfeBm/Makefile.in new file mode 100644 index 00000000000..b47e6596b22 --- /dev/null +++ b/mozilla/cmd/xfe/XfeWidgets/XfeBm/Makefile.in @@ -0,0 +1,61 @@ +#!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. + + +########################################################################## +# +# Name: Makefile +# Description: Makefile for XfeBm library. +# Author: Ramiro Estrugo +# +########################################################################## + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +# XfeWidgets headers are exported to dist/public/XfeWidgets/Xfe +MODULE = XfeWidgets/Xfe + +LIBRARY_NAME = XfeBm + +CSRCS = \ + BmAccent.c \ + BmButton.c \ + BmCascade.c \ + BmGlobal.c \ + BmRepType.c \ + $(NULL) + +REQUIRES =\ + XfeWidgets \ + XfeBm + +EXPORTS = \ + BmButton.h \ + BmButtonP.h \ + BmCascade.h \ + BmCascadeP.h \ + XfeBm.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/cmd/xfe/XfeWidgets/XfeCaption/Makefile.in b/mozilla/cmd/xfe/XfeWidgets/XfeCaption/Makefile.in new file mode 100644 index 00000000000..4b2963f8394 --- /dev/null +++ b/mozilla/cmd/xfe/XfeWidgets/XfeCaption/Makefile.in @@ -0,0 +1,62 @@ +#!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. + + +########################################################################## +# +# Name: Makefile +# Description: Makefile for XfeCaption library +# Author: Ramiro Estrugo +# +########################################################################## + + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +# XfeWidgets headers are exported to dist/public/XfeCaption/Xfe. We use +# the 'Xfe' directory to avoid the hasstle of having to remember yet another +# include prefix. +MODULE = XfeCaption/Xfe + +LIBRARY_NAME = XfeCaption + +CSRCS = \ + Caption.c \ + TextCaption.c \ + $(NULL) + +REQUIRES = \ + XfeCaption \ + XfeWidgets + + +EXPORTS = \ + Caption.h \ + CaptionP.h \ + TextCaption.h \ + TextCaptionP.h \ + CaptionStringDefs.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/cmd/xfe/XfeWidgets/XfeComboBox/Makefile.in b/mozilla/cmd/xfe/XfeWidgets/XfeComboBox/Makefile.in new file mode 100644 index 00000000000..d0342a29319 --- /dev/null +++ b/mozilla/cmd/xfe/XfeWidgets/XfeComboBox/Makefile.in @@ -0,0 +1,62 @@ +#!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. + + +########################################################################## +# +# Name: Makefile +# Description: Makefile for XfeComboBox library +# Author: Ramiro Estrugo +# +########################################################################## + + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +# XfeWidgets headers are exported to dist/public/XfeComboBox/Xfe. We use +# the 'Xfe' directory to avoid the hasstle of having to remember yet another +# include prefix. +MODULE = XfeComboBox/Xfe + +LIBRARY_NAME = XfeComboBox + +CSRCS = \ + ComboBox.c \ + FancyBox.c \ + $(NULL) + +REQUIRES = \ + XfeComboBox \ + XfeWidgets + + +EXPORTS = \ + ComboBox.h \ + ComboBoxP.h \ + ComboBoxStringDefs.h \ + FancyBox.h \ + FancyBoxP.h \ + $(NULL) + +EXPORTS = $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/cmd/xfe/XfeWidgets/XfeTest/Makefile.in b/mozilla/cmd/xfe/XfeWidgets/XfeTest/Makefile.in new file mode 100644 index 00000000000..85afbc1f0a3 --- /dev/null +++ b/mozilla/cmd/xfe/XfeWidgets/XfeTest/Makefile.in @@ -0,0 +1,66 @@ +#!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. + + +########################################################################## +# +# Name: Makefile +# Description: Makefile for XfeTest library +# Author: Ramiro Estrugo +# +########################################################################## + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +# XfeTest headers (only one) are exported to dist/public/XfeTest/Xfe +MODULE = XfeTest/Xfe + +LIBRARY_NAME = XfeTest + +CSRCS = \ + TestAnim.c \ + TestApp.c \ + TestCallbacks.c \ + TestCreate.c \ + TestIcons.c \ + TestMenu.c \ + TestPixmap.c \ + TestToolBar.c \ + TestUtil.c \ + $(NULL) + +REQUIRES = \ + XfeTest \ + XfeWidgets \ + XfeBm + +EXPORTS = \ + XfeTest.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk + +include $(topsrcdir)/cmd/xfe/XfeWidgets/XfeWidgets.mk + +INCLUDES += -I$(srcdir)/../icons diff --git a/mozilla/cmd/xfe/XfeWidgets/tests/Makefile.in b/mozilla/cmd/xfe/XfeWidgets/tests/Makefile.in new file mode 100644 index 00000000000..efd4eb2b2e4 --- /dev/null +++ b/mozilla/cmd/xfe/XfeWidgets/tests/Makefile.in @@ -0,0 +1,47 @@ +#! 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. + + +########################################################################## +# +# Name: Makefile +# Description: Makefile for Xfe Widgets tests +# Author: Ramiro Estrugo +# +########################################################################## + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +ifdef XFE_WIDGETS_BUILD_UNUSED +UNUSED_DIRS = \ + XfeComboBox \ + XfeCaption \ + $(NULL) +endif + +DIRS = \ + Xfe \ + XfeBm \ + XmL \ + $(UNUSED_DIRS) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/cmd/xfe/XfeWidgets/tests/Xfe/Makefile.in b/mozilla/cmd/xfe/XfeWidgets/tests/Xfe/Makefile.in new file mode 100644 index 00000000000..555f3b8f928 --- /dev/null +++ b/mozilla/cmd/xfe/XfeWidgets/tests/Xfe/Makefile.in @@ -0,0 +1,79 @@ +#! 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. + +########################################################################## +# +# Name: Makefile +# Description: Makefile for Xfe widgets test programs. +# Author: Ramiro Estrugo +# +########################################################################## + +DEPTH = ../../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +ifdef XFE_WIDGETS_BUILD_UNUSED +UNUSED_CSRCS = \ + ChromeTest.c \ + FontChooserTest.c \ + FrameShellTest.c \ + $(NULL) + + +endif + +CSRCS = \ + $(UNUSED_CSRCS) \ + ArrowTest.c \ + ButtonTest.c \ + CascadeTest.c \ + DashBoardTest.c \ + LabelTest.c \ + LogoTest.c \ + PaneTestFour.c \ + PaneTestOne.c \ + PaneTestThree.c \ + PaneTestTwo.c \ + PixmapTest.c \ + ProgressBarTest.c \ + TaskBarTestOne.c \ + TaskBarTestTwo.c \ + ToolBarTest.c \ + ToolBoxTest.c \ + ToolScrollTest.c \ + $(NULL) + +REQUIRES = \ + XfeTest \ + XfeWidgets \ + XfeBm + +STATIC_PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=.static)) +SHARED_PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=.shared)) + +include $(topsrcdir)/config/rules.mk +include $(topsrcdir)/cmd/xfe/XfeWidgets/XfeWidgets.mk + +all:: $(STATIC_PROGS) $(SHARED_PROGS) +install:: $(STATIC_PROGS) $(SHARED_PROGS) + +shared: $(SHARED_PROGS) +static: $(STATIC_PROGS) diff --git a/mozilla/cmd/xfe/XfeWidgets/tests/XfeBm/Makefile.in b/mozilla/cmd/xfe/XfeWidgets/tests/XfeBm/Makefile.in new file mode 100644 index 00000000000..1e44cbe8a28 --- /dev/null +++ b/mozilla/cmd/xfe/XfeWidgets/tests/XfeBm/Makefile.in @@ -0,0 +1,47 @@ +#! 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 = ../../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +CSRCS = \ + MenuTest.c \ + $(NULL) + +REQUIRES = \ + XfeTest \ + XfeBm \ + XfeWidgets + +STATIC_PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=.static)) +SHARED_PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=.shared)) + +include $(topsrcdir)/config/rules.mk +include $(topsrcdir)/cmd/xfe/XfeWidgets/XfeWidgets.mk + +all:: $(STATIC_PROGS) $(SHARED_PROGS) +install:: $(STATIC_PROGS) $(SHARED_PROGS) + +shared: $(SHARED_PROGS) +static: $(STATIC_PROGS) diff --git a/mozilla/cmd/xfe/XfeWidgets/tests/XfeCaption/Makefile.in b/mozilla/cmd/xfe/XfeWidgets/tests/XfeCaption/Makefile.in new file mode 100644 index 00000000000..77317d97509 --- /dev/null +++ b/mozilla/cmd/xfe/XfeWidgets/tests/XfeCaption/Makefile.in @@ -0,0 +1,49 @@ +#! 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 = ../../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +CSRCS = \ + CaptionTest.c \ + TextCaptionTest.c \ + $(NULL) + +REQUIRES = \ + XfeTest \ + XfeCaption \ + XfeBm \ + XfeWidgets + +STATIC_PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=.static)) +SHARED_PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=.shared)) + +include $(topsrcdir)/config/rules.mk +include $(topsrcdir)/cmd/xfe/XfeWidgets/XfeWidgets.mk + +all:: $(STATIC_PROGS) $(SHARED_PROGS) +install:: $(STATIC_PROGS) $(SHARED_PROGS) + +shared: $(SHARED_PROGS) +static: $(STATIC_PROGS) diff --git a/mozilla/cmd/xfe/XfeWidgets/tests/XfeComboBox/Makefile.in b/mozilla/cmd/xfe/XfeWidgets/tests/XfeComboBox/Makefile.in new file mode 100644 index 00000000000..315f8416411 --- /dev/null +++ b/mozilla/cmd/xfe/XfeWidgets/tests/XfeComboBox/Makefile.in @@ -0,0 +1,48 @@ +#! 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 = ../../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +CSRCS = \ + ComboBoxTest.c \ + $(NULL) + +REQUIRES = \ + XfeTest \ + XfeComboBox \ + XfeBm \ + XfeWidgets + +STATIC_PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=.static)) +SHARED_PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=.shared)) + +include $(topsrcdir)/config/rules.mk +include $(topsrcdir)/cmd/xfe/XfeWidgets/XfeWidgets.mk + +all:: $(STATIC_PROGS) $(SHARED_PROGS) +install:: $(STATIC_PROGS) $(SHARED_PROGS) + +shared: $(SHARED_PROGS) +static: $(STATIC_PROGS) diff --git a/mozilla/cmd/xfe/XfeWidgets/tests/XmL/Makefile.in b/mozilla/cmd/xfe/XfeWidgets/tests/XmL/Makefile.in new file mode 100644 index 00000000000..1c2dbbc985c --- /dev/null +++ b/mozilla/cmd/xfe/XfeWidgets/tests/XmL/Makefile.in @@ -0,0 +1,53 @@ +#! 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. + +########################################################################## +# +# Name: Makefile +# Description: Makefile for Microline widgets test programs. +# Author: Ramiro Estrugo +# +########################################################################## + +DEPTH = ../../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +CSRCS = \ + TreeTest.c \ + $(NULL) + +REQUIRES = \ + XfeWidgets \ + XfeBm \ + XfeTest \ + Microline + +STATIC_PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=.static)) +SHARED_PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=.shared)) + +include $(topsrcdir)/config/rules.mk +include $(topsrcdir)/cmd/xfe/XfeWidgets/XfeWidgets.mk + +all:: $(STATIC_PROGS) $(SHARED_PROGS) +install:: $(STATIC_PROGS) $(SHARED_PROGS) + +shared: $(SHARED_PROGS) +static: $(STATIC_PROGS) diff --git a/mozilla/cmd/xfe/icons.c b/mozilla/cmd/xfe/icons.c index 8cd5f317f91..bcf0459a735 100644 --- a/mozilla/cmd/xfe/icons.c +++ b/mozilla/cmd/xfe/icons.c @@ -2709,15 +2709,15 @@ FE_AboutData (const char *which, a = strdup ( #ifdef JAVA #ifndef MOZ_COMMUNICATOR_ABOUT -# include "../../l10n/us/xp/about-java-lite.h" +# include "xp/about-java-lite.h" #else -# include "../../l10n/us/xp/about-java.h" +# include "xp/about-java.h" #endif #else #ifndef MOZ_COMMUNICATOR_ABOUT -# include "../../l10n/us/xp/about-lite.h" +# include "xp/about-lite.h" #else -# include "../../l10n/us/xp/about.h" +# include "xp/about.h" #endif #endif ); @@ -2737,15 +2737,15 @@ FE_AboutData (const char *which, a = strdup ( #ifdef JAVA #ifndef MOZ_COMMUNICATOR_ABOUT -# include "../../l10n/us/xp/splash-java-lite.h" +# include "xp/splash-java-lite.h" #else -# include "../../l10n/us/xp/splash-java.h" +# include "xp/splash-java.h" #endif #else #ifndef MOZ_COMMUNICATOR_ABOUT -# include "../../l10n/us/xp/splash-lite.h" +# include "xp/splash-lite.h" #else -# include "../../l10n/us/xp/splash.h" +# include "xp/splash.h" #endif #endif ); @@ -2755,7 +2755,7 @@ FE_AboutData (const char *which, { ever_loaded_map = TRUE; a = strdup ( -# include "../../l10n/us/xp/authors2.h" +# include "xp/authors2.h" ); } else if (!strcmp (which,"license")) @@ -2776,7 +2776,7 @@ FE_AboutData (const char *which, else if (!strcmp (which,"mozilla")) { a = strdup ( -# include "../../l10n/us/xp/mozilla.h" +# include "xp/mozilla.h" ); } else if (!strcmp (which, @@ -2792,7 +2792,7 @@ FE_AboutData (const char *which, else { a = strdup ( -# include "../../l10n/us/xp/mail.h" +# include "xp/mail.h" ); } } @@ -2817,7 +2817,7 @@ FE_AboutData (const char *which, else { a = strdup ( -# include "../../l10n/us/xp/aboutplg.h" +# include "xp/aboutplg.h" ); } } diff --git a/mozilla/cmd/xfe/icons/Makefile.in b/mozilla/cmd/xfe/icons/Makefile.in new file mode 100644 index 00000000000..c660056cb6c --- /dev/null +++ b/mozilla/cmd/xfe/icons/Makefile.in @@ -0,0 +1,221 @@ +#! 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +MODULE = xfeicons +LIBRARY_NAME = xfeicons + +CSRCS = $(ICONS_GEN_SRC) +EXPORTS = $(ICONS_GEN_HDR) $(srcdir)/icondata.h + +REQUIRES = img java jtools layer nspr util xp xpcom + +LOCAL_INCLUDES = -I$(srcdir) -I$(OBJDIR) + +ICONS_GEN_HDR = $(OBJDIR)/icon_extern.h +ICONS_GEN_SRC = $(OBJDIR)/icondata.c + +ANIM_PRIV = $(topsrcdir)/../ns_priv/xfe/icons/anim + +include $(topsrcdir)/config/rules.mk + +#### NEXT FEW LINES ARE ONLY FOR TESTING -- full build! +#MOZ_MAIL_NEWS = 1 +#EDITOR = 1 +#MOZ_OFFLINE = 1 +#MOZ_LOC_INDEP = 1 +#MOZ_TASKBAR = 1 +#MOZ_LDAP = 1 +#MOZ_ADMIN_LIB = 1 +#MOZ_COMMUNICATOR_NAME = 1 +#MOZ_JSD = 1 +#MOZ_IFC_TOOLS = 1 +#MOZ_NETCAST = 1 +#MOZ_COMMUNICATOR_IIDS = 1 +#MOZ_COMMUNICATOR_ABOUT = 1 +#MOZ_COMMUNICATOR_CONFIG_JS = 1 +#MOZ_COPY_ALL_JARS = 1 +#### END OF TESTING LINES + +# The cc compiler on OSF1 V4 cannot handle icondata.c (runs out of +# swap space) unless we give the -oldc option. +ifeq ($(OS_ARCH)$(OS_RELEASE),OSF1V4) +CFLAGS += -oldc +endif + +# See comment in icondata.c for why this is necessary. +DEFINES += -DXFE + +# Split the icons by portion of the product. +# Be careful to avoid hitting max line length on Irix, +# therefore, split the icon list among several variables. +ICONS = $(wildcard $(srcdir)/images/[AGIHL]*.gif $(srcdir)/images/BM*.gif $(srcdir)/images/DTB*.gif) +ICONS += $(wildcard $(srcdir)/images/Dash*.gif $(srcdir)/images/TB*.gif) +NICONS += \ + images/Desk_AdminKit.gif \ + images/Desk_Bookmark.gif \ + images/Desk_Calendar.gif \ + images/Desk_Communicator.gif \ + images/Desk_Conference.gif \ + images/Desk_History.gif \ + images/Desk_Navigator.gif \ + images/Desk_Search.gif \ + images/SEC_Replace.gif \ + images/Splash.gif \ + images/cparent.gif + +# Icons for the Outliner -- needed for Mail/News but also edit bookmarks +NICONS += \ + images/hidecolumn.gif \ + images/hidecolumn.i.gif \ + images/oparent.gif \ + images/showcolumn.gif \ + images/showcolumn.i.gif \ + images/threadoff.gif \ + images/threadon.gif + +ICONS += $(wildcard $(srcdir)/images/M*.gif) +NICONS += \ + images/Desk_Address.gif \ + images/Desk_Collabra.gif \ + images/Desk_Messenger.gif \ + images/Desk_MsgCenter.gif \ + images/Desk_MsgCompose.gif \ + images/Desk_NewMail.gif + +ifdef EDITOR +ICONS += $(wildcard $(srcdir)/images/e*.gif $(srcdir)/images/Desk_Composer.gif) +endif + +# Should the taskbar icons be broken up by type? +ifdef MOZ_TASKBAR +ICONS += $(wildcard $(srcdir)/images/Task*.gif) +endif + +ifdef MOZ_NETCAST +ICONS += $(srcdir)/images/Desk_Netcaster.gif +endif + +NICONS := $(addprefix $(srcdir)/, $(NICONS)) +ICONS += $(NICONS) + +# Alphabetical order seems to matter here. +ifdef NETSCAPE_PRIV +ANIM += $(wildcard $(ANIM_PRIV)/main/*.gif \ + $(ANIM_PRIV)/compass/*.gif \ + $(ANIM_PRIV)/mozilla/*.gif) +else +ANIM = $(wildcard $(srcdir)/anim/main/*.gif) +endif + +ICONLIST = $(OBJDIR)/icon.list +ICONANIMLIST = $(OBJDIR)/iconanim.list +MKICONS_EXE = $(OBJDIR)/mkicons + +ifdef JAVA_OR_NSJVM +JAVA_JMC = $(DIST)/lib/libjmc.a # XXX To be removed... +else +JAVA_JMC = $(DIST)/lib/libstubsj.a +endif + +ifndef NSPR20 +MKICONS_LIB = \ + $(DIST)/lib/libimg.a \ + $(JAVA_JMC) \ + $(DIST)/lib/libnspr.a \ + $(DIST)/lib/libutil.a \ + $(DIST)/lib/libxp.a +else +MKICONS_LIB = \ + $(DIST)/lib/libimg.a \ + $(JAVA_JMC) \ + $(DIST)/lib/libnspr21.a \ + $(DIST)/lib/libutil.a \ + $(DIST)/lib/libxp.a \ + $(DIST)/lib/libplc21.a \ + $(DIST)/lib/libxpcom.a +endif + +ifdef MOZ_NATIVE_JPEG +MKICONS_LIB += -ljpeg +else +MKICONS_LIB += $(DIST)/lib/libjpeg.a +endif + +ifdef MOZ_NATIVE_PNG +MKICONS_LIB += -lpng +else +MKICONS_LIB += $(DIST)/lib/libpng.a +endif + +ifdef MOZ_NATIVE_ZLIB +MKICONS_LIB += -lz +else +MKICONS_LIB += $(DIST)/lib/libzlib.a +endif + +GARBAGE += $(MKICONS_EXE) \ + $(ICONS_GEN_HDR) \ + $(ICONS_GEN_HDR).tmp \ + $(ICONS_GEN_SRC) \ + $(ICONLIST) \ + $(ICONANIMLIST) + +MKICONS_EXTRA = $(OS_LIBS) -lm + +####################################################################### +# Rules to build mkicons program and then icondata.c + +# XXX We need to reach into the Image Library modules's source directory to +# get the file if.h +$(MKICONS_EXE): mkicons.cpp $(MKICONS_LIB) + $(CCC) $(CFLAGS) -o $@ -I$(topsrcdir)/modules/libimg/src $< $(MKICONS_LIB) $(MKICONS_EXTRA) + +$(ICONLIST): $(ICONS) + @echo Adding icons to $@ + @$(MAKE_OBJDIR) + @rm -f $@ + @ls $(ICONS) > $@ + +$(ICONANIMLIST): $(ICONLIST) $(ANIM) + @echo Adding icons and animations to $(ICONANIMLIST) + @rm -f $(ICONANIMLIST) + @cat $(ICONLIST) > $(ICONANIMLIST) +ifneq ($(ANIM),) + @ls $(ANIM) >> $(ICONANIMLIST) +endif + +$(ICONS_GEN_HDR): $(ICONLIST) + @sed 's/.*\/images\/\(.*\)\.gif.*/extern struct fe_icon_data \1;/; y/./_/;' \ + $(ICONLIST) > $@.$$$$ \ + && if [ ! -f $(ICONS_GEN_HDR) -o "`cmp $@.$$$$ $@`" != "" ] ; then \ + echo Generating $@ from $(ICONLIST); \ + \mv -f $@.$$$$ $@; \ + fi + +$(ICONS_GEN_SRC): icondata.h $(ICONANIMLIST) $(MKICONS_EXE) $(ICONS_GEN_HDR) + $(MKICONS_EXE) -no-xfe-define - < $(ICONANIMLIST) > $@.$$$$ && mv $@.$$$$ $@ + +$(LIBRARY): $(OBJS) diff --git a/mozilla/cmd/xfe/make-resources b/mozilla/cmd/xfe/make-resources index d32f865ab58..bd3c38b6858 100755 --- a/mozilla/cmd/xfe/make-resources +++ b/mozilla/cmd/xfe/make-resources @@ -19,10 +19,15 @@ DEST=$1; shift NAME=$1; shift CLASS=$1; shift +VERSIONN=$1; shift +STRS=$1; shift +RESOURCES=$1; shift +MOZ_USER_DIR=$1; shift VSUFFIX=$1; shift SS=$1; shift LOCALE_MAP=$1 + if test $# -eq 2 then shift @@ -37,7 +42,7 @@ PROGNAME="mozilla" echo "Generating ${DEST} from resources..." -VN=`sed -n 's/^#define VERSION_NUMBER *\(.*\)$/\1/p' versionn.h` +VN=`sed -n 's/^#define VERSION_NUMBER *\(.*\)$/\1/p' ${VERSIONN}` VERS=`echo ${VN}${VSUFFIX}` SGIP=`echo ${DEST} | sed -n 's/.*IRIX.*/TRUE/p'` @@ -66,7 +71,7 @@ else fi rm -f ${DEST} -cat resources ${LOCALE_MAP} strs | sed \ +cat ${RESOURCES} ${LOCALE_MAP} ${STRS} | sed \ "s/@NAME@/${NAME}/g; s/@CLASS@/${CLASS}/g; s/@PROGNAME@/${PROGNAME}/g; @@ -81,5 +86,6 @@ cat resources ${LOCALE_MAP} strs | sed \ s:@LIBDIR@:${LOC_LIB_DIR}:g; s/@MAIL_IM_HACK@/${MAIL_IM_HACK}/g; s/@NEWS_IM_HACK@/${NEWS_IM_HACK}/g; - s/@URLVERSION@/${VERS}/g" > ${DEST} + s/@URLVERSION@/${VERS}/g; + s/@MOZ_USER_DIR@/${MOZ_USER_DIR}/g" > ${DEST} diff --git a/mozilla/cmd/xfe/plugins/ImAlive/Makefile.in b/mozilla/cmd/xfe/plugins/ImAlive/Makefile.in new file mode 100644 index 00000000000..970b0c99cb7 --- /dev/null +++ b/mozilla/cmd/xfe/plugins/ImAlive/Makefile.in @@ -0,0 +1,61 @@ +#!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. + +################################################################################ +# +# +# Template plugin makefile +# +# Platform: Solaris 2.4 and above +# +# The output of the make process will be ImAlive.so +# Install this file either in +# /usr/lib/netscape/plugins/ +# (or) +# ~/.netscape/plugins/ +# (or) in any convenient directory and point environment variable +# NPX_PLUGIN_PATH to point to the directory. It is advisable +# that the plugins (.so) are the only files in that directory. +# +# This makefile contains some of our defines for the compiler: +# +# PLUGIN_TRACE Enable this define to get debug prints whenever the plugin +# api gets control. +# +################################################################################ + +# Assuming we are in ns/cmd/xfe/plugins/ImAlive +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +CSRCS = ImAlive.c stubs.c + +LIBRARY_NAME = ImAlive + +include $(topsrcdir)/config/rules.mk + +PLUGIN_DEFINES = -DPLUGIN_TRACE + +#CFLAGS += $(PLUGIN_DEFINES) + +GARBAGE += Worked.nscp + +$(OBJDIR)/stubs.o: npunix.c diff --git a/mozilla/cmd/xfe/plugins/Makefile.in b/mozilla/cmd/xfe/plugins/Makefile.in new file mode 100644 index 00000000000..aab020c0eb1 --- /dev/null +++ b/mozilla/cmd/xfe/plugins/Makefile.in @@ -0,0 +1,29 @@ +#! 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = nullplugin javatest + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/cmd/xfe/plugins/javatest/Makefile.in b/mozilla/cmd/xfe/plugins/javatest/Makefile.in new file mode 100644 index 00000000000..f95e11e3def --- /dev/null +++ b/mozilla/cmd/xfe/plugins/javatest/Makefile.in @@ -0,0 +1,96 @@ +#! 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 = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +# This is required for compilation of only this directory +ifeq ($(OS_ARCH),HP-UX) +CFLAGS += $(DSO_CFLAGS) +endif + +CSRCS = npshell.c stubs.c +OBJS = $(CSRCS:.c=.o) + +LIBTARGETS = $(OBJDIR)/javatestplugin.so +TARGETS = targets + +# Rules to build generated headers + +JRI_HEADER_CLASSES = \ + JavaTestPlugin \ + java.lang.String \ + java.awt.Window \ + java.awt.Component \ + java.awt.Color \ + java.lang.Class + +JRI_STUB_CLASSES = \ + JavaTestPlugin \ + java.lang.String \ + java.awt.Window \ + java.awt.Component \ + java.awt.Color + +include $(topsrcdir)/config/rules.mk + +CLASSSRC := .:$(DEPTH)/sun-java/classsrc + +INCLUDES += -I_gen + +targets: + @$(MAKE) classes + @$(MAKE) jri_headers jri_stubs + @$(MAKE) libtargets + +JAVAC = $(JAVAI) -classpath /usr/local/netscape/java/lib/javac.zip \ + -ms8m sun.tools.javac.Main + +classes: JavaTestPlugin.java + $(JAVAC) -classpath $(CLASSSRC) JavaTestPlugin.java + +libtargets: $(LIBTARGETS) + +$(OBJDIR)/javatestplugin.so: $(OBJS) + $(LD) $(DSO_LDOPTS) -o $@ $(OBJS) $(DSO_LDFLAGS) + +install:: $(TARGETS) + $(INSTALL) $(TARGETS) $(DIST)/bin + +INCLUDES += -I$(topsrcdir)/lib/plugin +GARBAGE += so_locations + +clobber:: + rm -rf _gen _stubs so_locations + +export:: targets + $(INSTALL) $(LIBTARGETS) $(DIST)/lib + +install:: export + +$(OBJDIR)/stubs.o: \ + ../common/npunix.c \ + _stubs/JavaTestPlugin.c \ + _stubs/java_lang_String.c \ + _stubs/java_awt_Color.c \ + _stubs/java_awt_EmbeddedFrame.c diff --git a/mozilla/cmd/xfe/plugins/nullplugin/Makefile.in b/mozilla/cmd/xfe/plugins/nullplugin/Makefile.in new file mode 100644 index 00000000000..c31056f5d4a --- /dev/null +++ b/mozilla/cmd/xfe/plugins/nullplugin/Makefile.in @@ -0,0 +1,67 @@ +#! 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 = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +CSRCS = npshell.c stubs.c nullplugin.c + +PLUGIN = $(OBJDIR)/libnullplugin.so +TARGETS = $(PLUGIN) + +include $(topsrcdir)/config/rules.mk + +# This is required for compilation of only this directory +ifeq ($(OS_ARCH),HP-UX) +CFLAGS += $(DSO_CFLAGS) +endif + +ifeq ($(OS_ARCH),AIX) +LD = svld +endif + +ifeq ($(OS_ARCH)$(OS_RELEASE)$(CPU_ARCH),Linux2.0x86) +DYNMOTIF = -L/usr/X11R6/lib -lXm +STATMOTIF = /usr/X11R6/lib/libXm.a +TARGETS += $(OBJDIR)/libnullplugin-dynMotif.so +endif + +#DEFINES += -DPLUGIN_TRACE +INCLUDES += -I$(topsrcdir)/lib/plugin + +ifdef MOZ_JAVA +INCLUDES += -I$(topsrcdir)/sun-java/include +else +INCLUDES += -I$(topsrcdir)/sun-java/stubs +endif + +install:: $(TARGETS) + $(INSTALL) $(TARGETS) $(DIST)/bin + +$(OBJDIR)/libnullplugin-dynMotif.so: $(OBJS) + $(LD) $(DSO_LDOPTS) -o $@ $(OBJS) $(DSO_LDFLAGS) $(EXTRA_DSO_LDOPTS) $(DYNMOTIF) + +$(PLUGIN): $(OBJS) + $(LD) $(DSO_LDOPTS) -o $@ $(OBJS) $(DSO_LDFLAGS) $(EXTRA_DSO_LDOPTS) $(STATMOTIF) + +$(OBJDIR)/stubs.c: ../common/npunix.c diff --git a/mozilla/cmd/xfe/plugins/textplugin/Makefile.in b/mozilla/cmd/xfe/plugins/textplugin/Makefile.in new file mode 100644 index 00000000000..6eff3cf1662 --- /dev/null +++ b/mozilla/cmd/xfe/plugins/textplugin/Makefile.in @@ -0,0 +1,105 @@ +#! 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 = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +# This is required for compilation of only this directory +ifeq ($(OS_ARCH),HP-UX) +CFLAGS += $(DSO_CFLAGS) +DSO_LDOPTS += +e NP_GetValue +e NP_Initialize +e NP_Shutdown +e NP_GetMIMEDescription +endif + +# On Linux ELF, motif cannot be used by plugin. So diable the motif part. +# and enable plugin trace +ifeq ($(OS_ARCH),Linux) +ifdef BUILD_UNIX_PLUGINS +CFLAGS += -DPLUGIN_TRACE -UTEXT_PLUGIN -I$(DEPTH)/dist/public/java +endif +else +CFLAGS += -DTEXT_PLUGIN -I$(DEPTH)/dist/public/java +endif + +CSRCS = npshell.c stubs.c +OBJS = $(CSRCS:.c=.o) + +ifeq ($(OS_ARCH),AIX) +LD = svld +endif + +# +# Defines to build the unix plugin sdk automatically +# +SDK_FILES = README \ + Test.html \ + Test.txt \ + makefile.hpux \ + makefile.osf1 \ + makefile.sgi \ + makefile.sol23 \ + makefile.sol24 \ + makefile.sun4 \ + makefile.linux \ + npshell.c \ + $(DEPTH)/cmd/xfe/plugins/common/npunix.c \ + $(DEPTH)/lib/plugin/npupp.h \ + $(DEPTH)/include/npapi.h \ + $(DEPTH)/dist/public/java/jri.h \ + $(DEPTH)/dist/public/java/jri_md.h + +SDK_TEST_FILES = $(wildcard $(topsrcdir)/cmd/xfe/plugins/test/text*) + +UNIX_SDK = unix-sdk + +TARGETS = $(OBJDIR)/libtextplugin.so + +all default:: $(TARGETS) install + +install:: $(TARGETS) + $(INSTALL) $(TARGETS) $(DIST)/bin + +unix-sdk:: $(SDK_FILES) + echo "Generating unix plugin sdk..."; \ + rm -rf $(OBJDIR)/sdk; \ + mkdir -p $(OBJDIR)/sdk; \ + cp $(SDK_FILES) $(OBJDIR)/sdk/.; \ + mkdir -p $(OBJDIR)/sdk/test; \ + cp $(SDK_TEST_FILES) $(OBJDIR)/sdk/test/.; \ + cd $(OBJDIR)/sdk; \ + FILES=`echo *`; \ + tar cvf - $$FILES | compress -c > $(UNIX_SDK).tar.Z; \ + rm -rf $$FILES + +include $(topsrcdir)/config/rules.mk + +#DEFINES += -DPLUGIN_TRACE +INCLUDES += -I$(topsrcdir)/lib/plugin +GARBAGE += so_locations $(UNIX_SDK) +OPTIMIZER = -g + +$(OBJDIR)/libtextplugin.so: $(OBJS) + $(LD) $(DSO_LDOPTS) -o $@ $(OBJS) $(DSO_LDFLAGS) $(EXTRA_DSO_LDOPTS) + +$(OBJDIR)/stubs.o: ../common/npunix.c diff --git a/mozilla/cmd/xfe/resources b/mozilla/cmd/xfe/resources index ad6257ea42d..8067c49507d 100644 --- a/mozilla/cmd/xfe/resources +++ b/mozilla/cmd/xfe/resources @@ -11,7 +11,7 @@ ! on the Preferences dialogs under the Options menu first. ! Most things are customizable from there. Things which are ! settable via the Preferences dialog boxes are stored in -! the ~/.netscape/preferences file, and not in X resources. +! the ~/@MOZ_USER_DIR@/preferences file, and not in X resources. ! ========================================================== ! ! This file lists the default resources built in to @NAME@. @@ -216,7 +216,7 @@ ! By default, the geometries of components (browsers, mail, address book, etc) -! are saved in ~/.netscape/preferences.js. If this pisses you off, uncomment +! are saved in ~/@MOZ_USER_DIR@/preferences.js. If this pisses you off, uncomment ! the following line and Mozilla will not remember component geometries. ! ! Equivalent to using the '-dont-save-geometry-prefs' startup flag. diff --git a/mozilla/cmd/xfe/src/FindDialog.cpp b/mozilla/cmd/xfe/src/FindDialog.cpp index 88f85c6ddd2..19f4a9de957 100644 --- a/mozilla/cmd/xfe/src/FindDialog.cpp +++ b/mozilla/cmd/xfe/src/FindDialog.cpp @@ -331,6 +331,8 @@ fe_replace_cb(Widget w, XtPointer closure, XtPointer ) else findData->replace_all = FALSE; +/* This should be replaced by something that doesn't require the editor -cls */ +#ifdef EDITOR EDT_ReplaceText(ctxt, findData->replace_string, findData->replace_all, @@ -338,6 +340,7 @@ fe_replace_cb(Widget w, XtPointer closure, XtPointer ) findData->case_sensitive_p, findData->backward_p, FALSE /*bDoWrap*/); +#endif /* Continue to search for next string unless we replaced all if( bReplaceAll && find_data && find_data->shell) diff --git a/mozilla/cmd/xfe/src/Makefile.in b/mozilla/cmd/xfe/src/Makefile.in new file mode 100644 index 00000000000..d9e219c9a05 --- /dev/null +++ b/mozilla/cmd/xfe/src/Makefile.in @@ -0,0 +1,371 @@ +#! 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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +MODULE = xfe2 + +USE_3PANE = 1 +USE_ABCOM = 1 +GLUE_COMPO_CONTEXT = 1 + +LIBRARY_NAME = xfe2 + +REQUIRES =\ + XfeWidgets \ + XfeBm \ + Microline \ + nspr \ + layer \ + js \ + jtools \ + applet \ + security \ + img \ + util \ + parse \ + layout \ + hook \ + pref \ + java \ + oji \ + libfont \ + ldap \ + lay \ + style \ + xfeicons \ + rdf \ + progress \ + xpcom \ + plugin \ + plugimpl \ + raptor \ + netcnvts \ + msg \ + progress \ + privacy + +ifdef OJI +REQUIRES += oji \ + ojiimpl +endif + +CPPSRCS = \ + plugin.cpp \ + BackForwardMenu.cpp \ + BookmarkBase.cpp \ + BookmarkFindDialog.cpp \ + BookmarkMenu.cpp \ + BookmarkPropDialog.cpp \ + BookmarkWhatsNewDialog.cpp \ + Button.cpp \ + BookmarkFrame.cpp \ + BookmarkView.cpp \ + BrowserDrop.cpp \ + BrowserFrame.cpp \ + BrowserView.cpp \ + ColorDialog.cpp \ + Command.cpp \ + Component.cpp \ + DesktopTypes.cpp \ + Dialog.cpp \ + DisplayFactory.cpp \ + Dashboard.cpp \ + DownloadFrame.cpp \ + DragDrop.cpp \ + FindDialog.cpp \ + FrameListMenu.cpp \ + Frame.cpp \ + HTMLDialogFrame.cpp \ + HistoryMenu.cpp \ + HistoryView.cpp \ + HTMLDrag.cpp \ + HTMLView.cpp \ + HistoryFrame.cpp \ + IconGroup.cpp \ + LocationDrag.cpp \ + Logo.cpp \ + Menu.cpp \ + MenuBar.cpp \ + Minibuffer.cpp \ + MozillaApp.cpp \ + NavCenterFrame.cpp \ + NavCenterView.cpp \ + RDFImage.cpp \ + Netcaster.cpp \ + NotificationCenter.cpp \ + Outliner.cpp \ + PersonalToolbar.cpp \ + PopupMenu.cpp \ + PrefsDialogAppl.cpp \ + PropertyTabView.cpp \ + ProxyIcon.cpp \ + PrefsApplEdit.cpp \ + PrefsDialog.cpp \ + PrefsDialogBrowser.cpp \ + PrefsDialogGeneral.cpp \ + PrefsDialogMailnews.cpp \ + PrefsLang.cpp \ + PrefsProxiesView.cpp \ + RDFView.cpp \ + RadioGroup.cpp \ + Splash.cpp \ + Toolbar.cpp \ + ToolbarDrop.cpp \ + Toolbox.cpp \ + ToolboxItem.cpp \ + URLBar.cpp \ + ViewDialog.cpp \ + ViewGlue.cpp \ + View.cpp \ + context_funcs.cpp \ + pref.cpp \ + $(NULL) + + +ifdef USE_MOTIF_DND +CPPSRCS += \ + OutlinerDrop.cpp \ + $(NULL) +endif + +ifdef MOZ_MAIL_NEWS +CPPSRCS += \ + ABComplPickerDlg.cpp \ + ABComplPickerView.cpp \ + ABDirGenTabView.cpp \ + ABDirPropertyDlg.cpp \ + ABSearchDlg.cpp \ + ABSearchView.cpp \ + AB2PaneView.cpp \ + ABDirListView.cpp \ + ABAddrSearchView.cpp \ + ABAddresseeView.cpp \ + ABAddressingDlg.cpp \ + ABListSearchView.cpp\ + ABMListDlg.cpp \ + ABMListView.cpp \ + ABNameCTalkTab.cpp \ + ABNameConTab.cpp \ + ABNameFolderDlg.cpp \ + ABNameGenTab.cpp \ + AddrBookFrame.cpp \ + AddrBookView.cpp \ + AddressFolderView.cpp \ + AddressOutliner.cpp \ + AdvSearchDialog.cpp \ + AttachPanel.cpp \ + AttachmentMenu.cpp \ + ComposeAttachDialog.cpp \ + ComposeAttachFolderView.cpp \ + ComposeFolderView.cpp \ + ComposeFrame.cpp \ + ComposeView.cpp \ + EditHdrDialog.cpp \ + $(NULL) +endif + + +ifdef EDITOR +CPPSRCS += \ + EditorDrop.cpp \ + EditorFrame.cpp \ + EditorToolbar.cpp \ + EditorView.cpp \ + EditRecentMenu.cpp \ + EditTableDialog.cpp \ + EmbeddedEditorView.cpp \ + $(NULL) +endif + +ifdef MOZ_MAIL_NEWS +CPPSRCS += \ + FolderDropdown.cpp \ + FolderFrame.cpp \ + FolderPromptDialog.cpp \ + FolderMenu.cpp \ + FolderView.cpp \ + $(NULL) +endif + +ifdef MOZ_LDAP +CPPSRCS += \ + LdapSearchFrame.cpp \ + LdapSearchView.cpp \ + $(NULL) +endif + +ifdef MOZ_MAIL_NEWS +CPPSRCS += \ + MNBanner.cpp \ + MNListView.cpp \ + MNSearchFrame.cpp \ + MNSearchView.cpp \ + MNView.cpp \ + MailDownloadFrame.cpp \ + MailFilterDlg.cpp \ + MailFilterRulesDlg.cpp \ + MailFilterRulesView.cpp \ + MailFilterView.cpp \ + MailFolderPropDialog.cpp \ + MsgFrame.cpp \ + MsgView.cpp \ + NewsPromptDialog.cpp \ + NewsServerDialog.cpp \ + NewsServerPropDialog.cpp \ + NewsgroupPropDialog.cpp \ + OptionFolderView.cpp \ + PrefsDialogMServer.cpp \ + PrefsDialogNServer.cpp \ + PrefsMailFolderDlg.cpp \ + PrefsPageAddress.cpp \ + PrefsPageMessages.cpp \ + PrefsPageNServer.cpp \ + ProgressFrame.cpp \ + SubUpgradeDialog.cpp \ + TabView.cpp \ + XmLFolderDialog.cpp \ + XmLFolderView.cpp \ + ViewDashBDlg.cpp \ + $(NULL) +endif + +ifdef EDITOR +CPPSRCS += \ + PrefsDialogEditor.cpp \ + $(NULL) +endif + +ifdef MOZ_MAIL_NEWS +CPPSRCS += \ + PropertySheetDialog.cpp \ + PropertySheetView.cpp \ + $(NULL) +endif + +ifdef MOZ_MAIL_NEWS +CPPSRCS += \ + ReadAttachDrag.cpp \ + ReadAttachPanel.cpp \ + SearchRuleView.cpp \ + SubAllView.cpp \ + SubNewView.cpp \ + SubSearchView.cpp \ + SubTabView.cpp \ + SubscribeDialog.cpp \ + SubscribeView.cpp \ + $(NULL) +endif + +ifdef MOZ_TASKBAR +CPPSRCS += \ + TaskBar.cpp \ + TaskBarDrop.cpp \ + $(NULL) + +DEFINES += -DMOZ_TASKBAR +endif + +ifdef XFE_PREF_ADVANCED_PASSIVE_FTP +DEFINES += -DXFE_PREF_ADVANCED_PASSIVE_FTP +endif + +ifdef MOZ_MAIL_NEWS +CPPSRCS += \ + TextEditorView.cpp \ + $(NULL) +endif + +ifdef MOZ_MAIL_NEWS +CPPSRCS += \ + ThreadFrame.cpp \ + ThreadView.cpp \ + $(NULL) + +ifdef USE_3PANE +CPPSRCS += \ + ThreePaneView.cpp \ + $(NULL) +endif +endif + +ifdef EDITOR +CPPSRCS += \ + SpellHandler.cpp \ + $(NULL) +endif + +CSRCS = commands.c + +include $(topsrcdir)/config/rules.mk + +INCLUDES += -I$(OBJDIR) -I$(srcdir)/.. -I$(srcdir)/../DtWidgets -I$(topsrcdir)/modules/libreg/include \ + -I$(topsrcdir)/lib/libmsg -I$(DEPTH)/dist/public/security -I$(DEPTH)/dist/public/ldap + +#ifdef MOZ_MAIL_NEWS +#CFLAGS += -DEDITOR +#endif + +DEFINES += -DNEW_DECODERS -DDELAYED_MENU_CREATION -DNETCASTER_ZAXIS_HACKERY +DEFINES += -DUSE_MAGIC_TOOLBAR + +ifdef USE_3PANE +DEFINES += -DUSE_3PANE +endif + +ifdef MOZ_MAIL_NEWS +ifdef USE_ABCOM +DEFINES += -DUSE_ABCOM +endif +endif + +ifdef GLUE_COMPO_CONTEXT +DEFINES += -DGLUE_COMPO_CONTEXT +endif + +ifdef USE_MOTIF_DND +DEFINES += -DUSE_MOTIF_DND +endif + +$(LIBRARY): $(OBJS) + +# note the header file is generated as a side effect here. +$(OBJDIR)/commands.c $(OBJDIR)/commands.h: $(OBJDIR)/mkcommands xfe_commands + @echo Generating command table information... ; \ + $(OBJDIR)/mkcommands -table $(OBJDIR)/commands.c -header $(OBJDIR)/commands.h $(srcdir)/xfe_commands + +$(OBJDIR)/commands.o: $(OBJDIR)/commands.c + $(CC) -c -I. -o $@ $(OBJDIR)/commands.c + +$(OBJDIR)/mkcommands: mkcommands.c + @$(MAKE_OBJDIR) + $(CCF) -o $@ $< + + +# This rule is needed for 'make -j' to work since just about everything +# is dependant on commands.h. +$(OBJS): $(OBJDIR)/commands.h + +NetcasterIncluders:=Frame.o PrefsDialogGeneral.o Netcaster.o +$(foreach f,$(NetcasterIncluders),$(OBJDIR)/$(f)): Netcaster.h diff --git a/mozilla/config/AIX.mk b/mozilla/config/AIX.mk index 18ecb4ffe55..cd5c63e0885 100644 --- a/mozilla/config/AIX.mk +++ b/mozilla/config/AIX.mk @@ -39,7 +39,11 @@ MOVEMAIL_FLAGS = PORT_FLAGS = -DSYSV -DNEED_CDEFS_H -DNEED_SELECT_H -DNEED_IOCTL_H -DSYS_MACHINE_H -DUSE_NODL_TABS -DHAVE_SIGNED_CHAR -DHAVE_SYS_SELECT_H -DNEED_SYS_WAIT_H -DHAVE_INT32_T -DNEED_H_ERRNO PDJAVA_FLAGS = +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS) +endif LOCALE_MAP = $(DEPTH)/cmd/xfe/intl/aix.lm EN_LOCALE = en_US.ISO8859-1 diff --git a/mozilla/config/BSD_OS.mk b/mozilla/config/BSD_OS.mk index e42720de3d9..c48de970de6 100644 --- a/mozilla/config/BSD_OS.mk +++ b/mozilla/config/BSD_OS.mk @@ -39,7 +39,11 @@ MOVEMAIL_FLAGS = -DHAVE_STRERROR PORT_FLAGS = -DSW_THREADS -DNEED_BSDREGEX -DNTOHL_ENDIAN_H -DUSE_NODL_TABS -DNEED_SYS_WAIT_H -DNO_TZNAME -DHAVE_NETINET_IN_H -DNO_INT64_T -DNEED_UINT_T -DHAVE_SYS_SELECT_H PDJAVA_FLAGS = +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS) +endif LOCALE_MAP = $(DEPTH)/cmd/xfe/intl/bsd386.lm EN_LOCALE = C diff --git a/mozilla/config/FreeBSD.mk b/mozilla/config/FreeBSD.mk index 6fc37c54323..e928a2bd0c4 100644 --- a/mozilla/config/FreeBSD.mk +++ b/mozilla/config/FreeBSD.mk @@ -42,7 +42,11 @@ PDJAVA_FLAGS = -mx128m OS_GPROF_FLAGS = -pg LD_FLAGS = -L/usr/X11R6/lib -lXm +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS) +endif LOCALE_MAP = $(DEPTH)/cmd/xfe/intl/bsd386.lm EN_LOCALE = C diff --git a/mozilla/config/IRIX.mk b/mozilla/config/IRIX.mk index e900f6472a2..57d965e7a11 100644 --- a/mozilla/config/IRIX.mk +++ b/mozilla/config/IRIX.mk @@ -39,7 +39,11 @@ MOVEMAIL_FLAGS = PORT_FLAGS = -DSVR4 -DHAVE_LCHOWN -DHAVE_SIGNED_CHAR -DHAVE_FILIO_H -DHAS_PGNO_T -DMITSHM -DHAVE_WAITID -DNEED_VBASE -DNEED_SYS_TIME_H -DHAVE_SYSTEMINFO_H -DNO_JNI_STUBS -D_MIPS_SIM_ABI32 PDJAVA_FLAGS = +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS) +endif LOCALE_MAP = $(DEPTH)/cmd/xfe/intl/irix.lm EN_LOCALE = en_US diff --git a/mozilla/config/Linux.mk b/mozilla/config/Linux.mk index fd081549899..6082d62fc1b 100644 --- a/mozilla/config/Linux.mk +++ b/mozilla/config/Linux.mk @@ -51,9 +51,13 @@ MOVEMAIL_FLAGS = -DHAVE_STRERROR PORT_FLAGS = -D_POSIX_SOURCE -D_BSD_SOURCE -DNEED_ENDIAN_H -DNEED_GETOPT_H -DNEED_IOCTL_H -DUSE_NODL_TABS -DHAVE_SIGNED_CHAR -DNEED_SYS_TIME_H -DHAVE_SYS_BITYPES_H -DNEED_UINT_T PDJAVA_FLAGS = -mx128m +ifdef USE_AUTOCONF +OS_CFLAGS = #-include $(DEPTH)/include/config.h +else OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS) +endif -LOCALE_MAP = $(DEPTH)/cmd/xfe/intl/linux.lm +LOCALE_MAP = $(topsrcdir)/cmd/xfe/intl/linux.lm EN_LOCALE = C DE_LOCALE = de_DE.ISO8859-1 FR_LOCALE = fr_FR.ISO8859-1 diff --git a/mozilla/config/Makefile.in b/mozilla/config/Makefile.in new file mode 100644 index 00000000000..89bb1517e39 --- /dev/null +++ b/mozilla/config/Makefile.in @@ -0,0 +1,119 @@ +# -*- Mode: Makefile -*- +# +# 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 = .. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +HSRCS = pathsub.h +CSRCS = nsinstall.c pathsub.c + +ifeq ($(subst /,_,$(shell uname -s)),OS2) +DIRS = os2 +LOCAL_INCLUDES += -I$(srcdir)/os2 +HSRCS += dirent.h getopt.h +endif + +PLSRCS = nfspwd.pl revdepth.pl + +TARGETS = $(PROGRAM) $(PLSRCS:.pl=) + +# Generate the build number on the fly. +TARGETS += $(DEPTH)/build/build_number + +ifneq ($(subst /,_,$(shell uname -s)),WINNT) +PROGRAM = nsinstall$(BIN_SUFFIX) +TARGETS += $(OBJDIR)/bsdecho$(BIN_SUFFIX) +endif + +# IMPORTANT: Disable NSBUILDROOT for this directory only, otherwise we have +# a recursive rule for finding nsinstall and the perl scripts +ifdef NSBUILDROOT +override NSBUILDROOT := +endif + +include $(topsrcdir)/config/rules.mk + +ifeq ($(OS_ARCH)$(OS_RELEASE),SunOS4.1) +INCLUDES += -I$(srcdir)/../nsprpub/pr/include/md +endif + +ifeq ($(OS_ARCH)$(OS_RELEASE),IRIX5) +TARGETS += $(OBJDIR)/gtscc$(BIN_SUFFIX) +endif + +# Redefine MAKE_OBJDIR for just this directory +define MAKE_OBJDIR +if test ! -d $(@D); then rm -rf $(@D); mkdir $(@D); fi +endef + +export:: $(TARGETS) + +ifeq ($(OS_ARCH),OS2) +# could not get bsdecho rules to work implicitly, so here is explicit ones +$(OBJDIR)/bsdecho.o: bsdecho.c + @$(MAKE_OBJDIR) + $(CC) -Fo$@ $(CFLAGS) -c $< + +$(OBJDIR)/bsdecho$(BIN_SUFFIX): $(OBJDIR)/bsdecho.o + @$(MAKE_OBJDIR) + $(LINK_EXE) -OUT:$@ $< $(LDFLAGS) + $(INSTALL) -m 444 $@ $(DIST)/bin +else +$(OBJDIR)/bsdecho$(BIN_SUFFIX): $(OBJDIR)/bsdecho.o + @$(MAKE_OBJDIR) + $(CCF) $(LDFLAGS) -o $@ $< + $(INSTALL) -m 444 $@ $(DIST)/bin +endif + +$(OBJDIR)/gtscc$(BIN_SUFFIX): $(OBJDIR)/gtscc.o + @$(MAKE_OBJDIR) + $(CCF) $(LDFLAGS) -o $@ $< -lelf + $(INSTALL) -m 444 $@ $(DIST)/bin + +#update build number from within make script +$(DEPTH)/build/build_number: $(OBJDIR)/bdate$(BIN_SUFFIX) FORCE + @$(MAKE_OBJDIR) + $(RM) $@ + $(OBJDIR)/bdate$(BIN_SUFFIX) > $@ + +$(OBJDIR)/bdate$(BIN_SUFFIX): $(OBJDIR)/bdate.o + @$(MAKE_OBJDIR) + $(CCF) $(LDFLAGS) -o $@ $< + $(INSTALL) -m 444 $@ $(DIST)/bin + +FORCE: + +ifdef MKDEPEND_DIR +clean clobber realclean clobber_all:: + cd $(MKDEPEND_DIR); $(MAKE) $@ +endif + +ifdef MOZILLA_DETECT +clean clobber realclean clobber_all:: + cd $(MOZILLA_DETECT_DIR); $(MAKE) $@ +endif + +# For the continuous build scripts. +show_objname: + @echo $(OBJDIR) + +.PHONY: show_objname diff --git a/mozilla/config/NCR.mk b/mozilla/config/NCR.mk index da7c1cd54fe..3860514c925 100644 --- a/mozilla/config/NCR.mk +++ b/mozilla/config/NCR.mk @@ -39,7 +39,11 @@ MOVEMAIL_FLAGS = -DUSG -DHAVE_STRERROR PORT_FLAGS = -DSVR4 -DSYSV -DSW_THREADS -DHAVE_FILIO_H -DHAVE_LCHOWN -DNEED_S_ISLNK -DNEED_S_ISSOCK -DSYS_ENDIAN_H -DSYS_BYTEORDER_H -DUSE_NODL_TABS -DMITSHM -DHAVE_WAITID -DHAVE_NETINET_IN_H -DHAVE_REMAINDER -DHAVE_SYS_BITYPES_H -DPRFSTREAMS_BROKEN PDJAVA_FLAGS = +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS) +endif LOCALE_MAP = EN_LOCALE = C diff --git a/mozilla/config/NEC.mk b/mozilla/config/NEC.mk index 12ec0b316df..6f9273055fc 100644 --- a/mozilla/config/NEC.mk +++ b/mozilla/config/NEC.mk @@ -39,7 +39,11 @@ MOVEMAIL_FLAGS = -DUSG -DHAVE_STRERROR PORT_FLAGS = -DSVR4 -DSW_THREADS -DHAVE_FILIO_H -DHAVE_LCHOWN -DNEED_S_ISLNK -DNEED_CDEFS_H -DNO_LONG_LONG -DSYS_BYTEORDER_H -DMITSHM -DHAVE_NETINET_IN_H -DHAVE_ARPA_NAMESER_H PDJAVA_FLAGS = +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS) +endif LOCALE_MAP = $(DEPTH)/cmd/xfe/intl/nec.lm EN_LOCALE = C diff --git a/mozilla/config/NEWS-OS.mk b/mozilla/config/NEWS-OS.mk index 8b7598ef3bc..3a5962e0d25 100644 --- a/mozilla/config/NEWS-OS.mk +++ b/mozilla/config/NEWS-OS.mk @@ -39,7 +39,11 @@ MOVEMAIL_FLAGS = -DHAVE_STRERROR PORT_FLAGS = -DSYSV -DSVR4 -D__svr4 -D__svr4__ -DSW_THREADS -DHAVE_INT32_T -DHAVE_STDDEF_H -DHAVE_STDLIB_H -DHAVE_FILIO_H -DSYS_BYTEORDER_H -DNO_CDEFS_H -DHAVE_LCHOWN -DHAS_PGNO_T -DNO_MULTICAST PDJAVA_FLAGS = +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS) +endif LOCALE_MAP = EN_LOCALE = C diff --git a/mozilla/config/NEXTSTEP.mk b/mozilla/config/NEXTSTEP.mk index 04ee63d6649..0abb9f1ce15 100644 --- a/mozilla/config/NEXTSTEP.mk +++ b/mozilla/config/NEXTSTEP.mk @@ -39,7 +39,11 @@ MOVEMAIL_FLAGS = -DHAVE_STRERROR PORT_FLAGS = -DSW_THREADS -DNO_CDEFS_H -DNO_REGEX -DNEED_BSDREGEX -DNO_REGCOMP -DHAS_PGNO_T -DNO_MULTICAST -DNO_TZNAME -D_POSIX_SOURCE -DNEED_S_ISLNK -DNEEDS_GETCWD -DNO_X11 PDJAVA_FLAGS = +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS) +endif ###################################################################### # Version-specific stuff diff --git a/mozilla/config/NetBSD.mk b/mozilla/config/NetBSD.mk index 9e2a512f4da..009c7c37b6c 100644 --- a/mozilla/config/NetBSD.mk +++ b/mozilla/config/NetBSD.mk @@ -48,7 +48,11 @@ PDJAVA_FLAGS = -mx128m OS_GPROF_FLAGS = -pg LD_FLAGS = -L/usr/X11R6/lib -lXm +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS) +endif LOCALE_MAP = $(DEPTH)/cmd/xfe/intl/bsd386.lm EN_LOCALE = C diff --git a/mozilla/config/OSF1.mk b/mozilla/config/OSF1.mk index 923abc935ed..57f97c1e44d 100644 --- a/mozilla/config/OSF1.mk +++ b/mozilla/config/OSF1.mk @@ -39,7 +39,11 @@ MOVEMAIL_FLAGS = PORT_FLAGS = -D_REENTRANT -DHAVE_LCHOWN -DNEED_CDEFS_H -DNTOHL_ENDIAN_H -DNEED_IOCTL_H -DMACHINE_ENDIAN_H -DHAVE_VA_LIST_STRUCT -DNEED_BYTE_ALIGNMENT -DMITSHM -DNEED_REALPATH -DHAVE_WAITID -DNEED_H_ERRNO -DNEED_SYS_TIME_H -DHAVE_SYSTEMINFO_H -DNEED_SYS_PARAM_H -DHAVE_INT32_T -DODD_VA_START -DHAVE_REMAINDER PDJAVA_FLAGS = -mx32m +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS) +endif LOCALE_MAP = $(DEPTH)/cmd/xfe/intl/osf1.lm EN_LOCALE = en_US.ISO8859-1 diff --git a/mozilla/config/Rhapsody.mk b/mozilla/config/Rhapsody.mk index f21ef19e34d..e96ef4c2b6b 100644 --- a/mozilla/config/Rhapsody.mk +++ b/mozilla/config/Rhapsody.mk @@ -57,7 +57,11 @@ PDJAVA_FLAGS = # Also, common symbols are not allowed with Rhapsody dynamic libraries. DSO_FLAGS = -fno-common +ifdef USE_AUTOCONF +OS_CFLAGS = $(DSO_FLAGS) +else OS_CFLAGS = $(PLATFORM_FLAGS) $(DSO_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS) +endif ###################################################################### # Version-specific stuff diff --git a/mozilla/config/SCOOS.mk b/mozilla/config/SCOOS.mk index afbeae0fe6f..1cdb3b1e578 100644 --- a/mozilla/config/SCOOS.mk +++ b/mozilla/config/SCOOS.mk @@ -39,7 +39,11 @@ MOVEMAIL_FLAGS = -DUSG -DHAVE_STRERROR PORT_FLAGS = -DSYSV -DSW_THREADS -DNO_SIGNED -DNEED_SOCKET_H -DNEED_S_ISLNK -DNO_LONG_LONG -DNEED_S_ISSOCK -DNEED_MATH_H -DSYS_BYTEORDER_H -DHAVE_BITYPES_H -DUSE_NODL_TABS -DMOTIF_WARNINGS_UPSET_JAVA -DMITSHM -DNO_ID_T -DHAVE_WAITID -DHAVE_SYS_NETINET_IN_H -DHAVE_REMAINDER -DNEED_SYS_SELECT_H -DHAVE_SYS_BITYPES_H -DNEED_H_ERRNO PDJAVA_FLAGS = +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS) +endif LOCALE_MAP = $(DEPTH)/cmd/xfe/intl/sco.lm EN_LOCALE = C diff --git a/mozilla/config/SINIX.mk b/mozilla/config/SINIX.mk index c852953b70d..d9df5e97197 100644 --- a/mozilla/config/SINIX.mk +++ b/mozilla/config/SINIX.mk @@ -43,7 +43,11 @@ MOVEMAIL_FLAGS = -DUSG PORT_FLAGS = -DSVR4 -DHAVE_FILIO_H -DNEED_S_ISSOCK -DNEED_TIMEVAL -DNEED_SELECT_H -DHAVE_LCHOWN -DNEED_S_ISLNK -DNEED_FCHMOD_PROTO -DNO_CDEFS_H -DSYS_BYTEORDER_H -DUSE_NODL_TABS -DMITSHM -DNO_MULTICAST -DHAVE_NETINET_IN_H -DHAVE_INT32_T PDJAVA_FLAGS = +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS) +endif LOCALE_MAP = $(DEPTH)/cmd/xfe/intl/sinix.lm EN_LOCALE = en_US.88591 diff --git a/mozilla/config/SunOS.mk b/mozilla/config/SunOS.mk index 261f0cf666f..1780fa258a4 100644 --- a/mozilla/config/SunOS.mk +++ b/mozilla/config/SunOS.mk @@ -19,7 +19,7 @@ # Config stuff for SunOS. 4 and 5 are vastly different, so we use 2 different files. # ifeq ($(OS_RELEASE),4.1) -include $(DEPTH)/config/SunOS4.mk +include $(topsrcdir)/config/SunOS4.mk else -include $(DEPTH)/config/SunOS5.mk +include $(topsrcdir)/config/SunOS5.mk endif diff --git a/mozilla/config/SunOS4.mk b/mozilla/config/SunOS4.mk index 962e08b3862..f6e5d34aa2d 100644 --- a/mozilla/config/SunOS4.mk +++ b/mozilla/config/SunOS4.mk @@ -39,7 +39,11 @@ MOVEMAIL_FLAGS = PORT_FLAGS = -DSW_THREADS -DNEED_SYSCALL -DSTRINGS_ALIGNED -DNO_REGEX -DNO_ISDIR -DUSE_RE_COMP -DNO_REGCOMP -DUSE_GETWD -DNO_MEMMOVE -DNO_ALLOCA -DBOGUS_MB_MAX -DNO_CONST -DHAVE_ODD_SEND -DHAVE_ODD_IOCTL -DHAVE_FILIO_H -DMITSHM -DNEED_SYS_WAIT_H -DNO_TZNAME -DNEED_SYS_TIME_H -DNO_MULTICAST -DHAVE_INT32_T -DNEED_UINT_T -DUSE_ODD_SSCANF -DUSE_ODD_SPRINTF -DNO_IOSTREAM_H PDJAVA_FLAGS = +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS) +endif LOCALE_MAP = $(DEPTH)/cmd/xfe/intl/sunos.lm EN_LOCALE = en_US diff --git a/mozilla/config/SunOS5.mk b/mozilla/config/SunOS5.mk index 14f8adca4c1..be493434d00 100644 --- a/mozilla/config/SunOS5.mk +++ b/mozilla/config/SunOS5.mk @@ -41,10 +41,14 @@ OS_LIBS = $(THREAD_LIB) -lposix4 $(RESOLV_LIB) -lsocket -lnsl -ldl PLATFORM_FLAGS = $(DSO_CFLAGS) -DSOLARIS -D__svr4 -D__svr4__ MOVEMAIL_FLAGS = -DUSG -PORT_FLAGS = -DSVR4 -DSYSV -DHAVE_WEAK_IO_SYMBOLS -DHAVE_FILIO_H -DHAVE_LCHOWN -DNEED_CDEFS_H -DMITSHM -DHAVE_WAITID -DHAVE_FORK1 -DHAVE_REMAINDER -DHAVE_SYSTEMINFO_H -DHAVE_INT32_T -DNO_JNI_STUBS +PORT_FLAGS = -DSVR4 -DSYSV -DHAVE_WEAK_IO_SYMBOLS -DHAVE_FILIO_H -DHAVE_LCHOWN -DNEED_CDEFS_H -DMITSHM -DHAVE_WAITID -DHAVE_FORK1 -DHAVE_REMAINDER -DHAVE_SYSTEMINFO_H -DHAVE_INT32_T -DNO_JNI_STUBS -DHAVE_QSORT -DBROKEN_QSORT PDJAVA_FLAGS = +ifdef USE_AUTOCONF +OS_CFLAGS = $(DSO_CFLAGS) #-DSOLARIS +else OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS) +endif LOCALE_MAP = $(DEPTH)/cmd/xfe/intl/sunos.lm EN_LOCALE = en_US @@ -84,16 +88,14 @@ PLATFORM_FLAGS += -DSOLARIS_24 endif ifeq ($(OS_VERSION),.5) PLATFORM_FLAGS += -DSOLARIS2_5 -DSOLARIS_55_OR_GREATER -PORT_FLAGS += -D_SVID_GETTOD endif ifeq ($(OS_RELEASE)$(OS_VERSION),5.5.1) PLATFORM_FLAGS += -DSOLARIS2_5 -DSOLARIS_55_OR_GREATER -PORT_FLAGS += -D_SVID_GETTOD RESOLV_LIB = -lresolv endif ifeq ($(OS_VERSION),.6) PLATFORM_FLAGS += -DSOLARIS2_6 -DSOLARIS_55_OR_GREATER -DSOLARIS_56_OR_GREATER -PORT_FLAGS += -D_SVID_GETTOD -DHAVE_SNPRINTF +PORT_FLAGS += -DHAVE_SNPRINTF RESOLV_LIB = -lresolv else PORT_FLAGS += -DNEED_INET_TCP_H diff --git a/mozilla/config/UNIXWARE.mk b/mozilla/config/UNIXWARE.mk index d91ecbede3d..9dbd515db76 100644 --- a/mozilla/config/UNIXWARE.mk +++ b/mozilla/config/UNIXWARE.mk @@ -39,7 +39,11 @@ MOVEMAIL_FLAGS = -DUSG -DHAVE_STRERROR PORT_FLAGS = -DSVR4 -DSYSV -DSW_THREADS -DHAVE_FILIO_H -DHAVE_ODD_ACCEPT -DNEED_S_ISLNK -DLAME_READDIR -DNO_CDEFS_H -DNO_LONG_LONG -DNEED_S_ISSOCK -DSYS_BYTEORDER_H -DUSE_NODL_TABS -DMOTIF_WARNINGS_UPSET_JAVA -DMITSHM -DNEED_SYS_TIME_H -DNO_MULTICAST -DHAVE_NETINET_IN_H -DHAVE_REMAINDER -DHAVE_INT32_T PDJAVA_FLAGS = +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS) +endif LOCALE_MAP = $(DEPTH)/cmd/xfe/intl/unixware.lm EN_LOCALE = C diff --git a/mozilla/config/autoconf.mk.in b/mozilla/config/autoconf.mk.in new file mode 100644 index 00000000000..1088ff7893f --- /dev/null +++ b/mozilla/config/autoconf.mk.in @@ -0,0 +1,82 @@ +# The contents of this file are subject to the Mozilla Public License +# Version 1.0 (the "License"); you may not use this file except in +# compliance with the License. You may obtain a copy of the License +# at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" +# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See +# the License for the specific language governing rights and +# limitations under the License. +# +# The Original Code is this file as it was released upon August 6, 1998. +# +# The Initial Developer of this code under the MPL is Christopher +# Seawood, . Portions created by Christopher Seawood +# are Copyright (C) 1998 Christopher Seawood. All Rights Reserved. + +# A netscape style .mk file for autoconf builds + +USE_AUTOCONF = 1 +MOZILLA_CLIENT = 1 +MOZ_MEDIUM = 1 +NO_MDUPDATE = 1 + +MOZ_FE = @MOZ_FE@ +MOZ_SECURITY = @MOZ_SECURITY@ +NO_SECURITY = @NO_SECURITY@ +MOZ_JAVA = @MOZ_JAVA@ +MOZ_OJI = @MOZ_OJI@ +MOZ_NETCAST = @MOZ_NETCAST@ +MOZ_DEBUG = @MOZ_DEBUG@ +MOZILLA_GPROF = @MOZILLA_GPROF@ +BUILD_PROFILE = @MOZILLA_GPROF@ +MOZ_DARK = @MOZ_DARK@ +NO_EDITOR = @NO_EDITOR@ +UNIX_SKIP_ASSERTS = @UNIX_SKIP_ASSERTS@ +NO_UNIX_ASYNC_DNS = @NO_UNIX_ASYNC_DNS@ +SHACK = @SHACK@ +NO_SHARED_LIB = @NO_SHARED_LIB@ +NO_NETSCAPE_SHARED = @NO_SHARED_LIB@ +NO_STATIC_LIB = @NO_STATIC_LIB@ +NO_NETSCAPE_STATIC = @NO_STATIC_LIB@ +ENABLE_TESTS = @ENABLE_TESTS@ +MOZ_USER_DIR = @MOZ_USER_DIR@ + +MOZ_NATIVE_ZLIB = @SYSTEM_ZLIB@ +MOZ_NATIVE_JPEG = @SYSTEM_JPEG@ +MOZ_NATIVE_PNG = @SYSTEM_PNG@ + +ACCFLAGS = @CFLAGS@ @DEFS@ +ACLFLAGS = @LDFLAGS@ +ACLIBS = @LIBS@ + +CC = @CC@ +CXX = @CXX@ +GNU_CC = @GNU_CC@ +GNU_CXX = @GNU_CXX@ + +ACEMACS = @EMACS@ +ACPERL = @PERL@ +ACRANLIB = @RANLIB@ +ACWHOAMI = @WHOAMI@ +ACUNZIP = @UNZIP@ +ACZIP = @ZIP@ + +OBJDIR_TAG = _AC +OBJDIR_NAME = . +XCFLAGS = $(LCFLAGS) +XLFLAGS = $(LLFLAGS) + +XCFLAGS = @XCFLAGS@ +XLFLAGS = @XLFLAGS@ +XLIBS = @XLIBS@ + +FE_X_CFLAGS = @FE_X_CFLAGS@ +FE_X_LIBS = @FE_X_LIBS@ +FE_QT_CFLAGS = @FE_QT_CFLAGS@ +FE_QT_LIBS = @FE_QT_LIBS@ +FE_GNOME_CFLAGS = @FE_GNOME_CFLAGS@ +FE_GNOME_LIBS = @FE_GNOME_LIBS@ +FE_GTK_CFLAGS = @FE_GTK_CFLAGS@ +FE_GTK_LIBS = @FE_GTK_LIBS@ + diff --git a/mozilla/config/config.mk b/mozilla/config/config.mk index 0066a53da3f..bb7c4dd2fc8 100644 --- a/mozilla/config/config.mk +++ b/mozilla/config/config.mk @@ -22,9 +22,12 @@ # appropriate platform-specific .mk file, then defines all (most?) # of the generic macros. # +ifndef topsrcdir +topsrcdir = $(DEPTH) +endif # This wastes time. -include $(DEPTH)/config/common.mk +include $(topsrcdir)/config/common.mk # # Important internal static macros @@ -106,7 +109,7 @@ MY_RULES := $(DEPTH)/config/myrules.mk # Relative pathname from top-of-tree to current source directory # ifneq (,$(filter-out OS2 WINNT,$(OS_ARCH))) -REVDEPTH := $(DEPTH)/config/revdepth +REVDEPTH := $(topsrcdir)/config/revdepth SRCDIR = $(shell $(PERL) $(REVDEPTH).pl $(DEPTH)) endif @@ -213,6 +216,12 @@ WHOAMI = /usr/bin/whoami endif endif +ifdef USE_AUTOCONF +OPTIMIZER = $(ACCFLAGS) +DEFINES = -UDEBUG -DNDEBUG -DTRIMMED +XBCFLAGS = +else + # # Debug by default. # @@ -260,6 +269,14 @@ DEFINES = -UDEBUG -DNDEBUG -DTRIMMED endif endif endif +endif # !USE_AUTOCONF + +ifdef MOZ_DEBUG +OPTIMIZER = -g +JAVA_OPTIMIZER = -g +DEFINES = -DDEBUG -UNDEBUG -DDEBUG_$(shell $(WHOAMI)) -DTRACING +XBCFLAGS = -FR$* +endif # # XXX For now, we're including $(DEPTH)/include directly instead of @@ -267,7 +284,7 @@ endif # be put in the library directories where it belongs so that it can # get exported to dist properly. # -INCLUDES = $(LOCAL_PREINCLUDES) $(MODULE_PREINCLUDES) -I$(DEPTH)/include $(LOCAL_INCLUDES) $(OS_INCLUDES) +INCLUDES = $(LOCAL_PREINCLUDES) $(MODULE_PREINCLUDES) -I$(topsrcdir)/include $(LOCAL_INCLUDES) $(OS_INCLUDES) LIBNT = $(DIST)/lib/libnt.$(LIB_SUFFIX) LIBAWT = $(DIST)/lib/libawt.$(LIB_SUFFIX) @@ -318,7 +335,7 @@ NOMD_CFLAGS = $(XP_DEFINE) $(OPTIMIZER) $(OS_CFLAGS) $(DEFINES) $(INCLUDES) $(XC # Include the binary distrib stuff, if necessary. # ifdef NS_BUILD_CORE -include $(DEPTH)/config/coreconf.mk +include $(topsrcdir)/config/coreconf.mk endif # @@ -329,7 +346,7 @@ endif ifneq (,$(filter Linux,$(OS_ARCH))) MOZILLA_DETECT = 1 MOZILLA_DETECT_DIR = $(DEPTH)/config/mkdetect -MOZILLA_DETECT_IDENT = $(shell $(MOZILLA_DETECT_DIR)/detect_hostident.sh) +MOZILLA_DETECT_IDENT = $(shell $(topsrcdir)/config/mkdetect/detect_hostident.sh) MOZILLA_DETECT_NAME = detect_$(MOZILLA_DETECT_IDENT)_gen.mk MOZILLA_DETECT_GEN = $(MOZILLA_DETECT_DIR)/$(MOZILLA_DETECT_NAME) endif @@ -337,7 +354,7 @@ endif # # Now include the platform-specific stuff. # -include $(DEPTH)/config/$(OS_ARCH).mk +include $(topsrcdir)/config/$(OS_ARCH).mk # # Some platforms (Solaris) might require builds using either @@ -350,12 +367,24 @@ endif # # Name of the binary code directories # +ifndef USE_AUTOCONF ifeq ($(OS_ARCH)_$(PROCESSOR_ARCHITECTURE),WINNT_x86) OBJDIR_NAME = $(OS_CONFIG)$(OS_VERSION)$(OBJDIR_TAG).OBJ else OBJDIR_NAME = $(OS_CONFIG)$(OS_VERSION)$(PROCESSOR_ARCHITECTURE)$(COMPILER)$(IMPL_STRATEGY)$(OBJDIR_TAG).OBJ endif +else +# We're autoconf freaks here +# Override defaults +EMACS = $(ACEMACS) +PERL = $(ACPERL) +RANLIB = $(ACRANLIB) +UNZIP_PROG = $(ACUNZIP) +WHOAMI = $(ACWHOAMI) +ZIP_PROG = $(ACZIP) +endif + # Figure out where the binary code lives. It either lives in the src # tree (NSBUILDROOT is undefined) or somewhere else. ifdef NSBUILDROOT @@ -373,8 +402,10 @@ endif # all public include files go in subdirectories of PUBLIC: PUBLIC = $(XPDIST)/public +ifndef USE_AUTOCONF VPATH = $(OBJDIR) DEPENDENCIES = $(OBJDIR)/.md +endif ifneq ($(OS_ARCH),WINNT) MKDEPEND_DIR = $(DEPTH)/config/mkdepend @@ -413,8 +444,11 @@ MOZ_JSD = 1 MOZ_NAV_BUILD_PREFIX = 1 endif ifdef MOZ_MEDIUM -DEFINES += -DEDITOR -DMOZ_COMMUNICATOR_IIDS +DEFINES += -DMOZ_COMMUNICATOR_IIDS +ifndef NO_EDITOR +DEFINES += -DEDITOR EDITOR = 1 +endif MOZ_JSD = 1 MOZ_COMMUNICATOR_IIDS = 1 MOZ_COMMUNICATOR_CONFIG_JS = 1 @@ -428,10 +462,13 @@ NO_SECURITY = 1 endif endif ifdef MOZ_DARK -DEFINES += -DEDITOR -DMOZ_COMMUNICATOR_IIDS -DMOZ_MAIL_NEWS -DMOZ_OFFLINE \ +DEFINES += -DMOZ_COMMUNICATOR_IIDS -DMOZ_MAIL_NEWS -DMOZ_OFFLINE \ -DMOZ_TASKBAR -DMOZ_LDAP -DMOZ_NEO #-DMOZ_CALENDAR +ifndef NO_EDITOR +DEFINES += -DEDITOR EDITOR = 1 +endif MOZ_JSD = 1 MOZ_COMMUNICATOR_IIDS = 1 MOZ_COMMUNICATOR_CONFIG_JS = 1 @@ -580,6 +617,16 @@ ifdef MODULAR_NETLIB DEFINES += -DMODULAR_NETLIB endif +ifndef MOZ_FE +MOZ_FE = x +endif + +ifndef MOZ_USER_DIR +MOZ_USER_DIR = \".netscape\" +endif + +DEFINES += -DMOZ_USER_DIR=$(MOZ_USER_DIR) + ###################################################################### GARBAGE = $(DEPENDENCIES) core $(wildcard core.[0-9]*) diff --git a/mozilla/config/mkdepend/Makefile.in b/mozilla/config/mkdepend/Makefile.in new file mode 100644 index 00000000000..139bc47dbfa --- /dev/null +++ b/mozilla/config/mkdepend/Makefile.in @@ -0,0 +1,37 @@ +# +# 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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = mkdepend +PROGRAM = mkdepend + +CSRCS = cppsetup.c \ + ifparser.c \ + include.c \ + main.c \ + parse.c \ + pr.c + +include $(topsrcdir)/config/rules.mk + +DEFINES += -DINCLUDEDIR=\"/usr/include\" -DOBJSUFFIX=\".o\" diff --git a/mozilla/config/mkdetect/Makefile.in b/mozilla/config/mkdetect/Makefile.in new file mode 100644 index 00000000000..5dc2e6dcc6f --- /dev/null +++ b/mozilla/config/mkdetect/Makefile.in @@ -0,0 +1,207 @@ +# -*- Mode: Makefile -*- +# +# 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 = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +# A uniq identifier that describes this host +DETECT_UNIQ_IDENT = $(shell $(DETECT_DIR)/detect_hostident.sh) + +# Where we live +DETECT_DIR = $(topsrcdir)/config/mkdetect + +# Name of genereated makefile +DETECT_NAME = detect_$(DETECT_UNIQ_IDENT)_gen.mk + +# The glibc detection script +DETECT_GLIBC = $(DETECT_DIR)/detect_glibc.sh -o $(DETECT_UNIQ_IDENT) + +# The motif detection script +DETECT_MOTIF =\ + $(DETECT_DIR)/detect_motif.sh -o $(DETECT_UNIQ_IDENT) \ + -xif $(X11_INCLUDE_FLAGS) + +# The X11 detection script +DETECT_X11 = $(DETECT_DIR)/detect_x11.sh -o $(DETECT_UNIQ_IDENT) + +# The following macros are generated: +# +# MOZILLA_XFE_GLIBC_BROKEN_LOCALE_FLAGS +# Needed because of currently broken locale support when mixing gnu +# libc2 with any version of motif. +# +# +# MOZILLA_XFE_MOTIF_PRINT_SHELL_FLAGS +# X Print Shell Extension (available starting with X11R6.3) needed +# by motif 2.1. +# +# +# MOZILLA_XFE_USE_WINNING_FILE_SELECTION +# Hacks to the motif file selection code to "fix" it. Where "fix" +# means "make the motif fsb not suck as hell". Motif source code +# is needed for this hack (it breaks with lesstif) +# +# +# Questions about any of these flags or this wacky scheme in general, should +# go to ramiro@netscape.com. +# + +all: export + +export: $(DETECT_NAME) +detect: $(DETECT_NAME) + +realclean clobber clobber_all clean: + @rm -f $(DETECT_NAME) + @$(DETECT_X11) --cleanup + @$(DETECT_MOTIF) --cleanup + @$(DETECT_GLIBC) --cleanup + +# This is needed for DETECT_MOTIF to work +X11_INCLUDE_FLAGS=$(shell $(DETECT_X11) -if) + +$(DETECT_NAME): + @echo "Generating $(DETECT_NAME)." + @rm -f $@ + @touch $@ + @echo "#" >> $@ + @echo "# Do Not edit." >> $@ + @echo "# Automagically generated file." >> $@ + @echo "#" >> $@ + @echo >> $@ + @echo >> $@ + +## +## GLIBC +## + +## +## In theory, you can use glibc2 in many platforms. Right now only Linux +## seems to be using it, though. +## +## Test whether -lBrokenLocale is needed. Locale support is broken +## when using motif (any version) with gnu libc2. +## +ifeq ($(shell $(DETECT_GLIBC)),2) + @echo "# GLIBC2" >> $@ + @echo "MOZILLA_XFE_USING_GLIBC2 = 1" >> $@ + @echo >> $@ + @echo "# Broken Locale" >> $@ + @echo "MOZILLA_XFE_GLIBC_BROKEN_LOCALE_FLAGS = -lBrokenLocale" >> $@ +endif + +## +## X11 +## + +## +## Set the x11 include flags +## + @echo >> $@ + @echo "# X11" >> $@ + @echo "MOZILLA_XFE_X11_INCLUDE_FLAGS = `$(DETECT_X11) -if`" >> $@ + +## +## Determine if we have static x11 libs and set static flags. +## +ifneq ($(shell $(DETECT_X11) -sl),unknown) + @echo "MOZILLA_XFE_X11_HAVE_STATIC_LIB = 1" >> $@ + @echo "MOZILLA_XFE_X11_STATIC_FLAGS = `$(DETECT_X11) -sf`" >> $@ +endif + +## +## Determine if we have dynamic x11 libs and set dynamic flags. +## +ifneq ($(shell $(DETECT_X11) -dl),unknown) + @echo "MOZILLA_XFE_X11_HAVE_DYNAMIC_LIB = 1" >> $@ + @echo "MOZILLA_XFE_X11_DYNAMIC_PATHS = `$(DETECT_X11) -dp`" >> $@ + @echo "MOZILLA_XFE_X11_DYNAMIC_FLAGS = `$(DETECT_X11) -df`" >> $@ +endif + +## +## Test whether -lSM -lICE are needed. These libs are need for session +## management in X11R6. +## +ifeq ($(shell $(DETECT_X11)),6) + @echo "MOZILLA_XFE_X11_SM_FLAGS = -lSM -lICE" >> $@ +endif + +## +## Motif +## + +## +## Set the motif include flags +## + @echo >> $@ + @echo "# Motif" >> $@ + @echo "MOZILLA_XFE_MOTIF_INCLUDE_FLAGS = `$(DETECT_MOTIF) -if`" >> $@ + +## +## Determine if we have static motif libs and set static flags. +## +ifneq ($(shell $(DETECT_MOTIF) -sl),unknown) + @echo "MOZILLA_XFE_MOTIF_HAVE_STATIC_LIB = 1" >> $@ + @echo "MOZILLA_XFE_MOTIF_STATIC_FLAGS = `$(DETECT_MOTIF) -sf`" >> $@ +endif + +## +## Determine if we have dynamic motif libs and set dynamic flags. +## +ifneq ($(shell $(DETECT_MOTIF) -dl),unknown) + @echo "MOZILLA_XFE_MOTIF_HAVE_DYNAMIC_LIB = 1" >> $@ + @echo "MOZILLA_XFE_MOTIF_DYNAMIC_PATHS = `$(DETECT_MOTIF) -dp`" >> $@ + @echo "MOZILLA_XFE_MOTIF_DYNAMIC_FLAGS = `$(DETECT_MOTIF) -df`" >> $@ +endif + +## +## Test whether -lXp is needed. The -lXp (Print Shell Extensions) +## are needed only with motif 2.1. +## +ifeq ($(shell $(DETECT_MOTIF)),2.1) + @echo "MOZILLA_XFE_MOTIF_PRINT_SHELL_FLAGS = -lXp" >> $@ +endif + +## +## Test whether -lXpm is needed. The -lXpm (X Pixmap Libary) is needed +## by some versions of motif. Some vendors try to do their customers +## favours by hacking the stock motif libs to include Xpm support. +## +ifeq ($(shell $(DETECT_MOTIF) -xpm),True) + @echo "MOZILLA_XFE_MOTIF_XPM_FLAGS = -lXpm" >> $@ +endif + +## +## Test whether we are using "real" motif libraries. If we are, then +## we can turn on the file selection hack which only works with motif +## (not lesstif) +## +ifneq ($(shell $(DETECT_MOTIF) -l),True) + @echo >> $@ + @echo "# Winning File Selection" >> $@ + @echo "MOZILLA_XFE_USE_WINNING_FILE_SELECTION = 1" >> $@ +endif + +## +## Lots of other magical things can be detected here. +## + diff --git a/mozilla/config/nsinstall.c b/mozilla/config/nsinstall.c index 1a9abc09845..5a744c377c1 100644 --- a/mozilla/config/nsinstall.c +++ b/mozilla/config/nsinstall.c @@ -23,6 +23,7 @@ #include /* OSF/1 requires this before grp.h, so put it first */ #include #include +#include #ifndef XP_OS2 #include @@ -110,6 +111,7 @@ mkdirs(char *path, mode_t mode) { char *cp; struct stat sb; + int res; while (*path == '/' && path[1] == '/') path++; @@ -123,7 +125,12 @@ mkdirs(char *path, mode_t mode) } *cp = '/'; } - return mkdir(path, mode); + + res = mkdir(path, mode); + if ((res != 0) && (errno == EEXIST)) + return 0; + else + return res; } #ifndef XP_OS2 diff --git a/mozilla/config/ports/Makefile.in b/mozilla/config/ports/Makefile.in new file mode 100644 index 00000000000..404dbdfca4f --- /dev/null +++ b/mozilla/config/ports/Makefile.in @@ -0,0 +1,34 @@ +# -*- Mode: Makefile -*- +# +# 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. +# + +# +# A pitifully inadequate tool for starting a port to a new platform. +# +OS_ARCH := $(subst /,_,$(shell uname -s)) +OS_RELEASE := $(shell uname -r) + +MK_FILE = $(OS_ARCH)$(OS_RELEASE).mk + +all: $(MK_FILE) + +$(MK_FILE): configure.sh + @rm -f $@ + @$< $(OS_ARCH) $(OS_RELEASE) $@ + +clean: + rm -f $(MK_FILE) $(wildcard *.add) diff --git a/mozilla/config/rules.mk b/mozilla/config/rules.mk index 57a870133d5..41ff050c269 100644 --- a/mozilla/config/rules.mk +++ b/mozilla/config/rules.mk @@ -66,12 +66,15 @@ # (output goes into the _jmc sub-dir) # ################################################################################ +ifndef topsrcdir +topsrcdir = $(DEPTH) +endif # # Common rules used by lots of makefiles... # ifndef NS_CONFIG_MK -include $(DEPTH)/config/config.mk +include $(topsrcdir)/config/config.mk endif ifdef PROGRAM @@ -133,6 +136,10 @@ ifdef NO_STATIC_LIB LIBRARY = $(NULL) endif +ifdef NO_SHARED_LIB +DLL_SUFFIX = a +endif + ifndef TARGETS TARGETS = $(LIBRARY) $(SHARED_LIBRARY) $(PROGRAM) endif @@ -262,11 +269,21 @@ TARGETS += tweak_nspr # Since the NSPR folks won't help, we'll fix things the sneaky way. # tweak_nspr: +ifdef USE_AUTOCONF + @( cp $(topsrcdir)/nsprpub/config/UNIX.mk $(DEPTH); \ + cd $(DEPTH)/nsprpub/config; \ + if test -f UNIX.mk.orig; then rm -f UNIX.mk; mv UNIX.mk.orig UNIX.mk; fi; \ + cp ../../UNIX.mk UNIX.mk.orig; \ + awk '/^OBJDIR_NAME[ ]*=/ { \ + printf("OBJDIR_NAME\t= %s%s%s%s%s%s.OBJ\n","$(OS_CONFIG)","$(OS_VERSION)","$(PROCESSOR_ARCHITECTURE)","$(COMPILER)","$(IMPL_STRATEGY)","$(OBJDIR_TAG)"); next} {print}' UNIX.mk.orig > UNIX.mk); \ + rm -f $(DEPTH)/UNIX.mk +else @(cd $(DEPTH)/nsprpub/config; \ if test -f UNIX.mk.orig; then rm -f UNIX.mk; mv UNIX.mk.orig UNIX.mk; fi; \ mv UNIX.mk UNIX.mk.orig; \ awk '/^OBJDIR_NAME[ ]*=/ { \ printf("OBJDIR_NAME\t= %s%s%s%s%s%s.OBJ\n","$(OS_CONFIG)","$(OS_VERSION)","$(PROCESSOR_ARCHITECTURE)","$(COMPILER)","$(IMPL_STRATEGY)","$(OBJDIR_TAG)"); next} {print}' UNIX.mk.orig > UNIX.mk) +endif ifdef ALL_PLATFORMS all_platforms:: $(NFSPWD) @@ -404,37 +421,37 @@ endif $(OBJDIR)/%: %.c @$(MAKE_OBJDIR) ifneq (,$(filter OS2 WINNT,$(OS_ARCH))) - $(CC) -Fo$@ -c $(CFLAGS) $*.c + $(CC) -Fo$@ -c $(CFLAGS) $< else - $(CCF) $(LDFLAGS) -o $@ $*.c + $(CCF) $(LDFLAGS) -o $@ $< endif $(OBJDIR)/%.o: %.c @$(MAKE_OBJDIR) ifneq (,$(filter OS2 WINNT,$(OS_ARCH))) - $(CC) -Fo$@ -c $(CFLAGS) $*.c + $(CC) -Fo$@ -c $(CFLAGS) $< else - $(CC) -o $@ -c $(CFLAGS) $*.c + $(CC) -o $@ -c $(CFLAGS) $< endif $(OBJDIR)/%.o: %.s @$(MAKE_OBJDIR) - $(AS) -o $@ $(ASFLAGS) -c $*.s + $(AS) -o $@ $(ASFLAGS) -c $< $(OBJDIR)/%.o: %.S @$(MAKE_OBJDIR) - $(AS) -o $@ $(ASFLAGS) -c $*.S + $(AS) -o $@ $(ASFLAGS) -c $< $(OBJDIR)/%: %.cpp @$(MAKE_OBJDIR) - $(CCC) -o $@ $(CFLAGS) $*.c $(LDFLAGS) + $(CCC) -o $@ $(CFLAGS) $< $(LDFLAGS) # # Please keep the next two rules in sync. # $(OBJDIR)/%.o: %.cc @$(MAKE_OBJDIR) - $(CCC) -o $@ -c $(CFLAGS) $*.cc + $(CCC) -o $@ -c $(CFLAGS) $< $(OBJDIR)/%.o: %.cpp @$(MAKE_OBJDIR) @@ -444,9 +461,9 @@ ifdef STRICT_CPLUSPLUS_SUFFIX rm -f $(OBJDIR)/t_$*.cc else ifneq (,$(filter OS2 WINNT,$(OS_ARCH))) - $(CCC) -Fo$@ -c $(CFLAGS) $*.cpp + $(CCC) -Fo$@ -c $(CFLAGS) $< else - $(CCC) -o $@ -c $(CFLAGS) $*.cpp + $(CCC) -o $@ -c $(CFLAGS) $< endif endif #STRICT_CPLUSPLUS_SUFFIX @@ -457,10 +474,10 @@ endif #STRICT_CPLUSPLUS_SUFFIX $(CC) -C -E $(CFLAGS) $< > $*.i %: %.pl - rm -f $@; cp $*.pl $@; chmod +x $@ + rm -f $@; cp $< $@; chmod +x $@ %: %.sh - rm -f $@; cp $*.sh $@; chmod +x $@ + rm -f $@; cp $< $@; chmod +x $@ ifdef DIRS $(DIRS):: @@ -492,7 +509,7 @@ $(JAVA_DESTPATH) $(JAVA_DESTPATH)/$(PACKAGE) $(JMCSRCDIR):: ifneq ($(JSRCS),) ifdef JAVA_OR_NSJVM export:: $(JAVA_DESTPATH) $(JAVA_DESTPATH)/$(PACKAGE) - list=`$(PERL) $(DEPTH)/config/outofdate.pl $(PERLARG) \ + list=`$(PERL) $(topsrcdir)/config/outofdate.pl $(PERLARG) \ -d $(JAVA_DESTPATH)/$(PACKAGE) $(JSRCS)`; \ if test "$$list"x != "x"; then \ echo $(JAVAC) $$list; \ @@ -521,7 +538,7 @@ export:: $(JAVA_DESTPATH) $(JAVA_DESTPATH)/$(PACKAGE) if test -d $$d; then \ set $(EXIT_ON_ERROR); \ files=`echo $$d/*.java`; \ - list=`$(PERL) $(DEPTH)/config/outofdate.pl $(PERLARG) \ + list=`$(PERL) $(topsrcdir)/config/outofdate.pl $(PERLARG) \ -d $(JAVA_DESTPATH)/$(PACKAGE) $$files`; \ if test "$${list}x" != "x"; then \ echo Building all java files in $$d; \ @@ -723,6 +740,10 @@ endif ################################################################################ + +ifdef USE_AUTOCONF +ALL_TRASH := $(filter-out $(OBJDIR), $(ALL_TRASH)) +else -include $(DEPENDENCIES) ifneq (,$(filter-out OS2 WINNT,$(OS_ARCH))) @@ -757,6 +778,7 @@ ifneq (,$(filter-out OS2 WINNT,$(OS_ARCH))) exit(1); \ }' endif +endif # USE_AUTOCONF ############################################################################# # X dependency system diff --git a/mozilla/dbm/Makefile.in b/mozilla/dbm/Makefile.in new file mode 100644 index 00000000000..dcd6f8c7019 --- /dev/null +++ b/mozilla/dbm/Makefile.in @@ -0,0 +1,18 @@ +#! gmake + +DEPTH = .. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = dbm + +RELEASE = dbm + +DIRS = include \ + src \ + $(NULL) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/dbm/include/Makefile.in b/mozilla/dbm/include/Makefile.in new file mode 100644 index 00000000000..a3e0c5517f7 --- /dev/null +++ b/mozilla/dbm/include/Makefile.in @@ -0,0 +1,36 @@ +#! gmake + +DEPTH = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = dbm + +EXPORTS = nsres.h \ + cdefs.h \ + mcom_db.h \ + ncompat.h \ + winfile.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +PRIVATE_EXPORTS = hsearch.h \ + page.h \ + extern.h \ + ndbm.h \ + queue.h \ + hash.h \ + mpool.h \ + search.h \ + $(NULL) + +PRIVATE_EXPORTS := $(addprefix $(srcdir)/, $(PRIVATE_EXPORTS)) + +include $(topsrcdir)/config/rules.mk + + + diff --git a/mozilla/dbm/include/mcom_db.h b/mozilla/dbm/include/mcom_db.h index 5abf0a8f0a9..1657c5724d3 100644 --- a/mozilla/dbm/include/mcom_db.h +++ b/mozilla/dbm/include/mcom_db.h @@ -49,7 +49,7 @@ #define BIG_ENDIAN 4321 #define LITTLE_ENDIAN 1234 /* LSB first: i386, vax, all NT risc */ -#ifndef SVR4 +#if !defined(SVR4) && !defined(__svr4__) /* compat.h is only in 4.1.3 machines. - dp */ #include #endif diff --git a/mozilla/dbm/src/Makefile.in b/mozilla/dbm/src/Makefile.in new file mode 100644 index 00000000000..0a8a5b4721f --- /dev/null +++ b/mozilla/dbm/src/Makefile.in @@ -0,0 +1,38 @@ +#! gmake + +DEPTH = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = dbm + +CSRCS = db.c \ + h_bigkey.c \ + h_func.c \ + h_log2.c \ + h_page.c \ + hash.c \ + hash_buf.c \ + hsearch.c \ + memmove.c \ + mktemp.c \ + ndbm.c \ + snprintf.c \ + strerror.c \ + nsres.c \ + $(NULL) + +LIBRARY_NAME = dbm + +include $(topsrcdir)/config/rules.mk + +DEFINES += -DMEMMOVE -D__DBINTERFACE_PRIVATE $(SECURITY_FLAG) -DNSPR20=1 + +INCLUDES += -I$(srcdir)/../include + +ifeq ($(OS_ARCH),AIX) + OS_LIBS += -lc_r +endif diff --git a/mozilla/dbm/src/snprintf.c b/mozilla/dbm/src/snprintf.c index 1778df19ad3..451a17a66cf 100644 --- a/mozilla/dbm/src/snprintf.c +++ b/mozilla/dbm/src/snprintf.c @@ -2,7 +2,7 @@ #include #include #include -#if defined(_WINDOWS) || defined(SOLARIS) || defined(AIXV3) || defined(AIX) || defined(OSF1) || defined(NEC) +#if defined(_WINDOWS) || defined(SOLARIS) || defined(AIXV3) || defined(AIX) || defined(OSF1) || defined(NEC) || !defined(HAVE_SYS_CDEFS_H) #include "cdefs.h" #elif !defined(HPUX) && !defined(UNIXWARE) && !defined(SNI) #include diff --git a/mozilla/dbm/tests/Makefile.in b/mozilla/dbm/tests/Makefile.in new file mode 100644 index 00000000000..ab45d89ffb6 --- /dev/null +++ b/mozilla/dbm/tests/Makefile.in @@ -0,0 +1,82 @@ +DEPTH = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +CORE_DEPTH = ../.. + +MODULE = dbm + +CSRCS = lots.c + +PROGRAM = lots + +include $(topsrcdir)/coreconf/config.mk + +ifeq ($(OS_ARCH),WINNT) +DEFINES += -DSTDARG +LIBDBM = ../src/$(PLATFORM)/dbm$(STATIC_LIB_SUFFIX) +else +LIBDBM = ../src/$(PLATFORM)/libdbm$(STATIC_LIB_SUFFIX) +endif + +ifeq ($(OS_ARCH),AIX) +CFLAGS += -DSTDARG +endif + +ifeq ($(OS_ARCH),BSD_386) +CFLAGS += -g -I$(srcdir)/../../../include -DXP_UNIX -g -DBSDI -DHAVE_STRERROR -D__386BSD__ -DDEBUG -DMEMMOVE -D__DBINTERFACE_PRIVATE +endif + +ifeq ($(OS_ARCH),FreeBSD) +CFLAGS += -DSTDARG +endif + +ifeq ($(OS_ARCH),HP-UX) +CFLAGS += -DSTDARG +endif + +ifeq ($(OS_ARCH),IRIX) +CFLAGS += -g -I$(srcdir)/../../../include -DDEBUG -DSTDARG +endif + +ifeq ($(OS_ARCH),OSF1) +CFLAGS += -DSTDARG +endif + +ifeq ($(OS_ARCH),Linux) +CFLAGS += -DSTDARG +endif + +ifeq ($(OS_ARCH),NCR) +CFLAGS += -DSTDARG +endif + +ifeq ($(OS_ARCH),SCO_SV) +CFLAGS += -DSTDARG +endif + +ifeq ($(OS_ARCH),SunOS) +CFLAGS += -g -I$(srcdir)/../../../include -D_sun_ +endif + +ifeq ($(OS_ARCH),UNIXWARE) +CFLAGS += -DSTDARG +endif + +INCLUDES += -I$(srcdir)/../include + +LDFLAGS = $(LDOPTS) $(LIBDBM) + +include $(topsrcdir)/coreconf/rules.mk + +lots.pure: lots + purify $(CC) -o lots.pure $(CFLAGS) $(OBJS) $(MYLIBS) + +crash: crash.o $(MYLIBS) + $(CC) -o crash $(CFLAGS) crash.o $(MYLIBS) + +crash.pure: crash.o $(MYLIBS) + purify $(CC) -o crash.pure $(CFLAGS) crash.o $(MYLIBS) + diff --git a/mozilla/include/Makefile.in b/mozilla/include/Makefile.in new file mode 100644 index 00000000000..e8e4ba22c0a --- /dev/null +++ b/mozilla/include/Makefile.in @@ -0,0 +1,25 @@ +#! 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 = .. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk diff --git a/mozilla/include/config.h.in b/mozilla/include/config.h.in new file mode 100644 index 00000000000..43ecd38c7e2 --- /dev/null +++ b/mozilla/include/config.h.in @@ -0,0 +1,153 @@ +/* + * The contents of this file are subject to the Mozilla Public License + * Version 1.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License + * at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See + * the License for the specific language governing rights and + * limitations under the License. + * + * The Original Code is this file as it was released upon August 6, 1998. + * + * The Initial Developer of this code under the MPL is Christopher + * Seawood, . Portions created by Christopher Seawood + * are Copyright (C) 1998 Christopher Seawood. All Rights Reserved. + */ + +/* Define if using alloca.c. */ +#undef C_ALLOCA + +/* Define to empty if the keyword does not work. */ +#undef const + +/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. + This function is required for alloca.c support on those systems. */ +#undef CRAY_STACKSEG_END + +/* Define if you have alloca, as a function or macro. */ +#undef HAVE_ALLOCA + +/* Define if you have and it should be used (not on Ultrix). */ +#undef HAVE_ALLOCA_H + +/* Define if you don't have vprintf but do have _doprnt. */ +#undef HAVE_DOPRNT + +/* Define if you have that is POSIX.1 compatible. */ +#undef HAVE_SYS_WAIT_H + +/* Define if you have the vprintf function. */ +#undef HAVE_VPRINTF + +/* Define to `int' if doesn't define. */ +#undef pid_t + +/* Define if you need to in order for stat and other things to work. */ +#undef _POSIX_SOURCE + +/* Define for reasons UNKNOWN */ +#undef _BSD_SOURCE + +/* Define as the return type of signal handlers (int or void). */ +#undef RETSIGTYPE + +/* Define to `unsigned' if doesn't define. */ +#undef size_t + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown + */ +#undef STACK_DIRECTION + +/* Define if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define if `sys_siglist' is declared by . */ +#undef SYS_SIGLIST_DECLARED + +/* Define if you can safely include both and . */ +#undef TIME_WITH_SYS_TIME + +/* Define if the X Window System is missing or not being used. */ +#undef X_DISPLAY_MISSING + +/* package name */ +#undef PACKAGE + +/* package version */ +#undef VERSION + +/* Define if you have the gethostname function. */ +#undef HAVE_GETHOSTNAME + +/* Define if you have the gettimeofday function. */ +#undef HAVE_GETTIMEOFDAY + +/* Define if you have the memmove function. */ +#undef HAVE_MEMMOVE + +/* Define if you have the poll function. */ +#undef HAVE_POLL + +/* Define if you have the qsort function. */ +#undef HAVE_QSORT + +#undef BROKEN_QSORT + +/* Define if you have the select function. */ +#undef HAVE_SELECT + +/* Define if you have the strcspn function. */ +#undef HAVE_STRCSPN + +/* Define if you have the strdup function. */ +#undef HAVE_STRDUP + +/* Define if you have the strerror function. */ +#undef HAVE_STRERROR + +/* Define if you have the strncasecmp function. */ +#undef HAVE_STRNCASECMP + +/* Define if you have the usleep function. */ +#undef HAVE_USLEEP + +/* Define if you have the header file. */ +#undef HAVE_FCNTL_H + +/* Define if you have the header file. */ +#undef HAVE_GETOPT_H + +/* Define if you have the header file. */ +#undef HAVE_IOCTL_H + +/* Define if you have the header file. */ +#undef HAVE_LIBINTL_H + +/* Define if you have the header file. */ +#undef HAVE_LIMITS_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_BITYPES_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_CDEFS_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_IOCTL_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_TIME_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define if you have the header file. */ +#undef HAVE_UNISTD_H + diff --git a/mozilla/include/mcom_db.h b/mozilla/include/mcom_db.h index 3037075d484..f2ed6fcf63d 100644 --- a/mozilla/include/mcom_db.h +++ b/mozilla/include/mcom_db.h @@ -67,7 +67,7 @@ #define BIG_ENDIAN 4321 #define LITTLE_ENDIAN 1234 /* LSB first: i386, vax, all NT risc */ -#ifndef SVR4 +#if !defined(SVR4) && !defined(__svr4__) /* compat.h is only in 4.1.3 machines. - dp */ #include #endif diff --git a/mozilla/jpeg/Makefile.in b/mozilla/jpeg/Makefile.in new file mode 100644 index 00000000000..efc68abcd89 --- /dev/null +++ b/mozilla/jpeg/Makefile.in @@ -0,0 +1,89 @@ +# +# 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 = .. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = jpeg +LIBRARY_NAME = jpeg + +REQUIRES = java nspr + +EXPORTS = jconfig.h jerror.h jinclude.h jmorecfg.h jpeglib.h jpegint.h jwinfig.h jos2fig.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +CSRCS = jdapimin.c \ + jdapistd.c \ + jdatasrc.c \ + jdatadst.c \ + jdmaster.c \ + jdinput.c \ + jdmarker.c \ + jdhuff.c \ + jdphuff.c \ + jdmainct.c \ + jdcoefct.c \ + jdpostct.c \ + jddctmgr.c \ + jidctfst.c \ + jidctflt.c \ + jidctint.c \ + jdsample.c \ + jdcolor.c \ + jquant1.c \ + jquant2.c \ + jdmerge.c \ + jcomapi.c \ + jutils.c \ + jerror.c \ + jmemmgr.c \ + jmemnobs.c \ + jfdctflt.c \ + jfdctfst.c \ + jfdctint.c \ + $(NULL) + +ifeq ($(subst /,_,$(shell uname -s)),OS2) +CSRCS += jcapimin.c \ + jcparam.c \ + jcapistd.c \ + jcmarker.c \ + jcinit.c \ + jcmainct.c \ + jchuff.c \ + jcsample.c \ + jcmaster.c \ + jccoefct.c \ + jccolor.c \ + jcphuff.c \ + jcdctmgr.c \ + jcprepct.c \ + $(NULL) + +OS2_IMPLIB = 1 +LIBRARY = $(LIBRARY_NAME)$(MOZ_BITS)$(VERSION_NUMBER).$(LIB_SUFFIX) +DEF_FILE = $(LIBRARY_NAME).def +TARGETS = $(LIBRARY) +endif + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/js/Makefile.in b/mozilla/js/Makefile.in new file mode 100644 index 00000000000..3c28f0c88f6 --- /dev/null +++ b/mozilla/js/Makefile.in @@ -0,0 +1,52 @@ +#! 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 = .. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +# Normally DIRS should contain all sub-dirs, but this +# directory was built to organize code rather than to +# reflect build order. +# +# Thus on the first pass we build the core classes and the +# top-level Makefile will control the order of subsequent +# directories by going directly into the specific directories +# +# The proper way to do this would be to introduce different +# stages into the java code build cycle, but that has the +# potential to introduce too many changes +# +# This is necessary to break circular dependencies the logical +# tree directory structure would otherwise introduce. +# +# See top-level makefile for details +# + +DIRS = src + +ifdef MOZ_JAVA +DIRS += jsj +endif + +ifdef ENABLE_TESTS +DIRS += tests +endif + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/js/jsd/Makefile.in b/mozilla/js/jsd/Makefile.in new file mode 100644 index 00000000000..9316dcbedb7 --- /dev/null +++ b/mozilla/js/jsd/Makefile.in @@ -0,0 +1,78 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = jsdebug +LIBRARY_NAME = jsd + +# Switching on MOZ_JAVA is a short-term hack. This is really for no Java/IFC +ifdef MOZ_JAVA +JAVA_OR_OJI = 1 +endif +ifdef MOZ_OJI +JAVA_OR_OJI = 1 +endif + +ifdef JAVA_OR_OJI +DIRS = classes +endif + +REQUIRES = java js nspr + +EXPORTS = $(srcdir)/jsdebug.h + +CSRCS = \ + jsdebug.c \ + jsd_high.c \ + jsd_hook.c \ + jsd_scpt.c \ + jsd_stak.c \ + jsd_text.c \ + jsd_lock.c \ + $(NULL) + +ifndef MOZ_JSD +CSRCS += jsdstubs.c jsd_java.c + +JDK_GEN = \ + netscape.jsdebug.Script \ + netscape.jsdebug.DebugController \ + netscape.jsdebug.JSThreadState \ + netscape.jsdebug.JSStackFrameInfo \ + netscape.jsdebug.JSPC \ + netscape.jsdebug.JSSourceTextProvider \ + netscape.jsdebug.JSErrorReporter \ + $(NULL) +endif + +include $(topsrcdir)/config/rules.mk + +$(OBJDIR)\jsdstubs.o: \ + $(JDK_STUB_DIR)\netscape_jsdebug_Script.c \ + $(JDK_STUB_DIR)\netscape_jsdebug_DebugController.c \ + $(JDK_STUB_DIR)\netscape_jsdebug_JSThreadState.c \ + $(JDK_STUB_DIR)\netscape_jsdebug_JSStackFrameInfo.c \ + $(JDK_STUB_DIR)\netscape_jsdebug_JSPC.c \ + $(JDK_STUB_DIR)\netscape_jsdebug_JSSourceTextProvider.c diff --git a/mozilla/js/jsd/classes/Makefile.in b/mozilla/js/jsd/classes/Makefile.in new file mode 100644 index 00000000000..973465e0715 --- /dev/null +++ b/mozilla/js/jsd/classes/Makefile.in @@ -0,0 +1,64 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = java + +JJSD = netscape/jsdebug + +# +# JDIRS is dependant on JAVA_DESTPATH in config/rules.m[a]k. +# Be sure to touch that directory if you add a new directory to +# JDIRS, or else it will not build. XXX +# +JDIRS = $(JJSD) + +JAR_JSD = jsd10.jar +JAR_JSD_CLASSES = $(JJSD) + +# +# jars to build at install time +# +JARS = $(JAR_JSD) + +include $(topsrcdir)/config/rules.mk + +JAVA_SOURCEPATH = $(DEPTH)/js/jsd/classes + +doc:: + $(JAVADOC) -d $(DIST)/doc netscape.jsdebug + +natives_list:: FORCE + rm -rf $@ + find . -name "*.class" -print | sed 's@\./\(.*\)\.class$$@\1@' | \ + sed 's@/@.@g' | xargs $(JVH) -natives | sort > $@ + +check_natives:: natives_list + rm -f found_natives + nm -B ../$(OBJDIR)/*.o \ + | egrep "Java.*_stub" | awk '{ print $$3; }' | sort > found_natives + diff found_natives natives_list + +FORCE: diff --git a/mozilla/js/jsj/Makefile.in b/mozilla/js/jsj/Makefile.in new file mode 100644 index 00000000000..7976c695b03 --- /dev/null +++ b/mozilla/js/jsj/Makefile.in @@ -0,0 +1,86 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +ifdef JAVA_OR_OJI +DIRS = classes +endif + +MODULE = java +LIBRARY_NAME = jsj + +REQUIRES = java js applet nspr img util layer + +CSRCS = \ + jsjava.c \ + jsStubs.c \ + $(NULL) + + +JRI_GEN = netscape.javascript.JSObject netscape.javascript.JSException + +ifdef JAVA_OR_OJI +CSRCS += jsjsa.c \ + stubs.c \ + jsj_nodl.c \ + $(NULL) +EXPORTS = jsjava.h \ + $(JRI_GEN_DIR)/netscape_javascript_JSObject.h \ + $(JRI_GEN_DIR)/netscape_javascript_JSException.h \ + $(NULL) + +else +EXPORTS = jsjava.h \ + $(NULL) +endif + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk + +###################################################################### + +# Generate jsj_nodl.c (so that you can check it in) +# These make rules only works on IRIX...sigh + +ifeq ($(OS_ARCH),IRIX) +jsj_nodl.c: $(OBJDIR)/stubs.o Makefile $(DEPTH)/config/nodl.pl + rm -f $@ + $(PERL) $(DEPTH)/config/nodl.pl "jsj_nodl_tab" \ + `nm -Bn $(OBJDIR)/stubs.o | egrep Java_.*_stub | awk '{print $$3;}'` > $@ +endif + +ifdef JAVA_OR_OJI +$(OBJDIR)/stubs.o: \ + $(JRI_GEN_DIR)/netscape_javascript_JSObject.c \ + $(JRI_GEN_DIR)/netscape_javascript_JSException.c \ + $(NULL) +else +$(OBJDIR)/stubs.o: +endif + +export:: install diff --git a/mozilla/js/jsj/classes/Makefile.in b/mozilla/js/jsj/classes/Makefile.in new file mode 100644 index 00000000000..514feb893ad --- /dev/null +++ b/mozilla/js/jsj/classes/Makefile.in @@ -0,0 +1,70 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = java + +# +# the idea is that the install phase for those modules will +# make their own signed jar files +# there are some exceptions here that we deal with +# stuff in modules and in ns/js/jsj +# +JMODS = netscape/javascript netscape/javascript/adapters + +# +# JDIRS is dependant on JAVA_DESTPATH in config/rules.m[a]k. +# Be sure to touch that directory if you add a new directory to +# JDIRS, or else it will not build. FIXME +# +JDIRS = $(JMODS) + +JAR_JSJ = jsj10.jar +JAR_JSJ_CLASSES = $(JMODS) + +# +# jars to build at install time +# +JARS = $(JAR_JSJ) + +include $(topsrcdir)/config/rules.mk + +JAVA_SOURCEPATH = $(DEPTH)/js/jsj/classes + +doc:: + $(JAVADOC) -d $(DIST)/doc netscape.javascript + +natives_list:: FORCE + rm -rf $@ + find . -name "*.class" -print | sed 's@\./\(.*\)\.class$$@\1@' | \ + sed 's@/@.@g' | xargs $(JVH) -natives | sort > $@ + +check_natives:: natives_list + rm -f found_natives + nm -B ../$(OBJDIR)/*.o \ + | egrep "Java.*_stub" | awk '{ print $$3; }' | sort > found_natives + diff found_natives natives_list + +FORCE: diff --git a/mozilla/js/ref/Makefile.in b/mozilla/js/ref/Makefile.in new file mode 100644 index 00000000000..e447db99b69 --- /dev/null +++ b/mozilla/js/ref/Makefile.in @@ -0,0 +1,303 @@ +# +# 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. + +# +# JSRef GNUmake makefile. +# + +# Set os+release dependent make variables +OS_ARCH := $(subst /,_,$(shell uname -s)) + +# Attempt to differentiate between SunOS 5.4 and x86 5.4 +OS_CPUARCH := $(shell uname -m) +ifeq ($(OS_CPUARCH),i86pc) +OS_RELEASE := $(shell uname -r)_$(OS_CPUARCH) +else +OS_RELEASE := $(shell uname -r) +endif + +# Virtually all Linux versions are identical. +# Any distinctions are handled in linux.h +ifeq ($(OS_ARCH),Linux) +OS_CONFIG := Linux_All +else +OS_CONFIG := $(OS_ARCH)$(OS_OBJTYPE)$(OS_RELEASE) +endif + +ASFLAGS = +DEFINES = + +include config/$(OS_CONFIG).mk + +ifndef USE_AUTOCONF +ifdef BUILD_OPT +OPTIMIZER += -O +DEFINES += -UDEBUG -DNDEBUG -UDEBUG_$(shell whoami) +OBJDIR_TAG = _OPT +else +ifdef USE_MSVC +OPTIMIZER = -Zi +else +OPTIMIZER = -g +endif +DEFINES += -DDEBUG -DDEBUG_$(shell whoami) +OBJDIR_TAG = _DBG +endif +endif + +#DEFINES += -DJS_THREADSAFE + +ifdef JS_NO_THIN_LOCKS +DEFINES += -DJS_USE_ONLY_NSPR_LOCKS +endif + +ifndef USE_AUTOCONF +# Name of the binary code directories +OBJDIR = $(OS_CONFIG)$(OBJDIR_TAG).OBJ +VPATH = $(OBJDIR) + +# Automatic make dependencies file +DEPENDENCIES = $(OBJDIR)/.md +endif + +define MAKE_OBJDIR +if test ! -d $(@D); then rm -rf $(@D); mkdir $(@D); fi +endef + +# Look in OBJDIR to find prcpucfg.h +INCLUDES = -I$(OBJDIR) + +# +# XCFLAGS may be set in the environment or on the gmake command line +# +ifndef USE_AUTOCONF +CFLAGS = $(OPTIMIZER) $(OS_CFLAGS) $(DEFINES) $(INCLUDES) \ + -DJSFILE $(XCFLAGS) +LDFLAGS = -lm $(XLDFLAGS) + +# For purify +PURE_CFLAGS = -DXP_UNIX $(OPTIMIZER) $(PURE_OS_CFLAGS) $(DEFINES) \ + $(INCLUDES) $(XCFLAGS) +endif + +# +# JS file lists +# +PR_HFILES = \ + prarena.h \ + prassert.h \ + prclist.h \ + prdtoa.h \ + prhash.h \ + prlong.h \ + prmacos.h \ + prosdep.h \ + prpcos.h \ + prprintf.h \ + prtime.h \ + prtypes.h \ + prunixos.h \ + $(NULL) + +JS_HFILES = \ + jsarray.h \ + jsatom.h \ + jsbool.h \ + jsconfig.h \ + jscntxt.h \ + jsdate.h \ + jsemit.h \ + jsfun.h \ + jsgc.h \ + jsinterp.h \ + jslock.h \ + jsmath.h \ + jsnum.h \ + jsobj.h \ + jsopcode.h \ + jsparse.h \ + jsprvtd.h \ + jspubtd.h \ + jsregexp.h \ + jsscan.h \ + jsscope.h \ + jsscript.h \ + jsstr.h \ + jsxdrapi.h \ + $(NULL) + +API_HFILES = \ + jsapi.h \ + jsdbgapi.h \ + $(NULL) + +HFILES = $(PR_HFILES) $(JS_HFILES) $(API_HFILES) +HFILES := $(addprefix $(srcdir)/, $(EXPORTS)) + +PR_CFILES = \ + prarena.c \ + prassert.c \ + prdtoa.c \ + prhash.c \ + prlog2.c \ + prlong.c \ + prprintf.c \ + prtime.c \ + $(NULL) + +JS_CFILES = \ + jsapi.c \ + jsarray.c \ + jsatom.c \ + jsbool.c \ + jscntxt.c \ + jsdate.c \ + jsdbgapi.c \ + jsemit.c \ + jsfun.c \ + jsgc.c \ + jsinterp.c \ + jslock.c \ + jsmath.c \ + jsnum.c \ + jsobj.c \ + jsopcode.c \ + jsparse.c \ + jsregexp.c \ + jsscan.c \ + jsscope.c \ + jsscript.c \ + jsstr.c \ + jsxdrapi.c \ + $(NULL) + +LIB_CFILES = $(PR_CFILES) $(JS_CFILES) +LIB_ASFILES := $(wildcard $(srcdir)/*_$(OS_ARCH).s) +PROG_CFILES = js.c + +ifdef USE_MSVC +LIB_OBJS = $(addprefix $(OBJDIR)/, $(LIB_CFILES:.c=.obj)) +PROG_OBJS = $(addprefix $(OBJDIR)/, $(PROG_CFILES:.c=.obj)) +else +LIB_OBJS = $(addprefix $(OBJDIR)/, $(LIB_CFILES:.c=.o)) +LIB_OBJS += $(addprefix $(OBJDIR)/, $(LIB_ASFILES:.s=.o)) +PROG_OBJS = $(addprefix $(OBJDIR)/, $(PROG_CFILES:.c=.o)) +endif + +CFILES = $(LIB_CFILES) $(PROG_CFILES) +OBJS = $(LIB_OBJS) $(PROG_OBJS) + +ifdef USE_MSVC +LIBRARY = $(OBJDIR)/js32.dll +PROGRAM = $(OBJDIR)/js +else +LIBRARY = $(OBJDIR)/libjs.a +PROGRAM = $(OBJDIR)/js +endif + +ifdef USE_MSVC +TARGETS = $(LIBRARY) # $(PROGRAM) not supported for MSVC yet +else +TARGETS = $(LIBRARY) $(PROGRAM) +endif + +all: $(TARGETS) + +clean: + rm -rf $(OBJS) + +clobber: + rm -rf $(OBJS) $(TARGETS) $(DEPENDENCIES) + +depend: + gcc -MM $(CFLAGS) $(JS_CFILES) + +$(OBJDIR)/%: %.c + @$(MAKE_OBJDIR) + $(CC) -o $@ $(CFLAGS) $< $(LDFLAGS) + +$(OBJDIR)/%.o: %.c + @$(MAKE_OBJDIR) + $(CC) -o $@ -c $(CFLAGS) $< + +$(OBJDIR)/%.o: %.s + @$(MAKE_OBJDIR) + $(AS) -o $@ $(ASFLAGS) $< + +# windows only +$(OBJDIR)/%.obj: %.c + @$(MAKE_OBJDIR) + $(CC) -Fo$(OBJDIR)/ -c $(CFLAGS) $*.c + +ifeq ($(OS_ARCH),OS2) +$(LIBRARY): $(LIB_OBJS) + $(AR) $@ $? $(AR_OS2_SUFFIX) + $(RANLIB) $@ +else +ifdef USE_MSVC +$(LIBRARY): $(LIB_OBJS) + link.exe $(LIB_LINK_FLAGS) /base:0x61000000 \ + /out:"$@" /pdb:"$(OBJDIR)/js32.pdb" /implib:"$(OBJDIR)/js32.lib" $? +else +$(LIBRARY): $(LIB_OBJS) + $(AR) rv $@ $? + $(RANLIB) $@ +endif +endif + +#NSPR_LIBRARY = ../../dist/$(OBJDIR)/lib/libnspr21.so +NSPR_LIBRARY = + +$(PROGRAM): $(PROG_OBJS) $(LIBRARY) + $(CC) -o $@ $(CFLAGS) $(PROG_OBJS) $(LIBRARY) $(NSPR_LIBRARY) $(LDFLAGS) + +$(PROGRAM).pure: $(PROG_OBJS) $(LIBRARY) + purify $(PUREFLAGS) \ + $(CC) -o $@ $(PURE_OS_CFLAGS) $(PROG_OBJS) $(LIBRARY) $(LDFLAGS) + +$(HFILES) $(CFILES): $(OBJDIR)/prcpucfg.h + +ifdef PREBUILT_CPUCFG +$(OBJDIR)/prcpucfg.h: prcpucfg.h + cp prcpucfg.h $(OBJDIR) +else +$(OBJDIR)/prcpucfg.h: $(OBJDIR)/prcpucfg + rm -f $@ + $(OBJDIR)/prcpucfg > $@ + +$(OBJDIR)/prcpucfg: $(OBJDIR)/prcpucfg.o + $(CC) -o $@ $(OBJDIR)/prcpucfg.o +endif + +# +# Hardwire dependencies on jsopcode.def +# +jsopcode.h jsopcode.c: jsopcode.def + +ifndef USE_AUTOCONF +-include $(DEPENDENCIES) +endif + +TARNAME = jsref.tar +TARFILES = files `cat files` + +tar: + tar cvf $(TARNAME) $(TARFILES) + gzip $(TARNAME) + +SUFFIXES: .i +%.i: %.c + $(CC) -C -E $(CFLAGS) $< > $*.i diff --git a/mozilla/js/ref/prtime.c b/mozilla/js/ref/prtime.c index 84b6d7ed2a0..3cb33516316 100644 --- a/mozilla/js/ref/prtime.c +++ b/mozilla/js/ref/prtime.c @@ -46,10 +46,6 @@ #ifdef XP_UNIX -#ifdef SOLARIS -extern int gettimeofday(struct timeval *tv); -#endif - #include #ifdef NEED_TIME_R @@ -298,11 +294,7 @@ PR_Now(void) #endif #ifdef XP_UNIX -#if defined(SOLARIS) - gettimeofday(&tv); -#else gettimeofday(&tv, 0); -#endif /* SOLARIS */ LL_UI2L(s2us, PR_USEC_PER_SEC); LL_UI2L(s, tv.tv_sec); LL_UI2L(us, tv.tv_usec); diff --git a/mozilla/js/src/Makefile.in b/mozilla/js/src/Makefile.in new file mode 100644 index 00000000000..0932d05f007 --- /dev/null +++ b/mozilla/js/src/Makefile.in @@ -0,0 +1,241 @@ +#! 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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = liveconnect + +LIBRARY_NAME = js + +ifeq ($(subst /,_,$(shell uname -s)),OS2) +ifndef XCFLAGS +OS2_IMPLIB=1 +LIBRARY = js$(MOZ_BITS)$(VERSION_NUMBER).$(LIB_SUFFIX) +DEF_FILE = jsos2$(VERSION_NUMBER).def +EXTRA_LIBS = $(LIBNSPR) $(LIBNSJAVA) +else +EXTRA_LIBS = $(LIBNSPR) $(LIBNSJAVA) $(OBJDIR)/libjs.lib +endif +endif + +MODULE = js + +CSRCS = jsapi.c \ + jsarray.c \ + jsatom.c \ + jsbool.c \ + jscntxt.c \ + jsdate.c \ + jsdbgapi.c \ + jsemit.c \ + jsfun.c \ + jsgc.c \ + jsinterp.c \ + jsmath.c \ + jsnum.c \ + jsobj.c \ + jsopcode.c \ + jsparse.c \ + jsregexp.c \ + jsscan.c \ + jsscope.c \ + jsscript.c \ + jsstr.c \ + jslock.c \ + jsxdrapi.c \ + prmjtime.c \ + $(NULL) + +EXPORTS = jsapi.h \ + jsarray.h \ + jsatom.h \ + jsbool.h \ + jscntxt.h \ + jscompat.h \ + jsconfig.h \ + jsdate.h \ + jsdbgapi.h \ + jsemit.h \ + jsfun.h \ + jsgc.h \ + jsinterp.h \ + jslock.h \ + jsmath.h \ + jsnum.h \ + jsobj.h \ + jsopcode.def \ + jsopcode.h \ + jsparse.h \ + jsprvtd.h \ + jspubtd.h \ + jsregexp.h \ + jsscan.h \ + jsscope.h \ + jsscript.h \ + jsstr.h \ + jsxdrapi.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +# when using gcc the assembly is inlined in the C-file (see jslock.c) +ifdef NS_USE_NATIVE +ASFILES = $(wildcard $(srcdir)/*_$(OS_ARCH).s) +endif + +JS_SAFE_ARENA = 1 + +ifdef JS_SAFE_ARENA +DEFINES += -DJS_USE_SAFE_ARENA +CSRCS += prarena.c +endif + +include $(topsrcdir)/config/rules.mk + +export:: install + +ifndef BUILD_OPT +MOCHAFILE = 1 +endif + +ifdef JSFILE +DEFINES += -DJSFILE +endif + +ifdef JS_THREADSAFE +DEFINES += -DJS_THREADSAFE +endif + +ifdef JS_NO_THIN_LOCKS +DEFINES += -DJS_USE_ONLY_NSPR_LOCKS +endif + +ifdef JS_VERSION +DEFINES += -DJS_VERSION=$(JS_VERSION) +endif + +ifeq ($(CPU_ARCH),sparc) + +ifndef JS_NO_ULTRA +ULTRA_OPTIONS := -xarch=v8plus,-DULTRA_SPARC +ULTRA_OPTIONSCC := -DULTRA_SPARC +else +ULTRA_OPTIONS := -xarch=v8 +ULTRA_OPTIONSCC := +endif + +ifeq ($(shell uname -m),sun4u) +ASFLAGS += -Wa,$(ULTRA_OPTIONS),-P,-L,-D_ASM,-D__STDC__=0 $(ULTRA_OPTIONSCC) +else +ASFLAGS += -Wa,-xarch=v8,-P,-L,-D_ASM,-D__STDC__=0 +endif + +endif # sparc + +INCLUDES += -I$(srcdir) + +ifdef NSPR20 +INCLUDES += -I$(DIST)/include/nspr20/pr +else +INCLUDES += -I$(XPDIST)/public/nspr +endif + +ifndef NSBUILDROOT +JSJAVA_STUBHEADERS = -I$(topsrcdir)/sun-java/include/_gen \ + -I$(topsrcdir)/sun-java/netscape/javascript/_jri \ + -I$(topsrcdir)/sun-java/netscape/security/_jri +else +JSJAVA_STUBHEADERS = -I$(JRI_GEN_DIR) -I$(JDK_GEN_DIR) +endif + +JSJAVA_CFLAGS = -I$(topsrcdir)/sun-java/md-include \ + -I$(topsrcdir)/sun-java/include \ + $(JSJAVA_STUBHEADERS) + +# LIBNSPR includes unneeded libmsgc21.a, but abstracts nspr version, +# etc. nicely. +LDFLAGS = $(LIBNSPR) -lm + +ifeq ($(OS_ARCH), OSF1) +LDFLAGS += -lc_r +endif +ifeq ($(OS_ARCH), SunOS) +LDFLAGS += -lposix4 -ldl -lnsl -lsocket +endif +ifeq ($(OS_ARCH), Linux) +LDFLAGS += -ldl +endif + +# this requires clobbering and recompiling with XCFLAGS=-DJSFILE +js: + $(MAKE) clobber + $(MAKE) XCFLAGS=-DJSFILE $(OBJDIR)/js$(BIN_SUFFIX) + +.PHONY: js$(BIN_SUFFIX) + +ifneq ($(OS_ARCH),OS2) +$(OBJDIR)/js$(BIN_SUFFIX): $(OBJDIR)/js.o $(LIBRARY) + @$(MAKE_OBJDIR) + $(CC) -o $@ $(OBJDIR)/js.o $(LIBRARY) $(LDFLAGS) +else +OS_CFLAGS += -tm- +$(OBJDIR)/js$(BIN_SUFFIX): $(OBJDIR)/js.o $(LIBRARY) + @$(MAKE_OBJDIR) + $(LINK_EXE) -OUT:$@ $(OBJDIR)/js.o $(LIBRARIES) $(EXTRA_LIBS) +endif + +# hardwire dependencies on jsopcode.def +jsopcode.h jsopcode.c: jsopcode.def + +# this section was put in the merged by danda into the +# JAVA_*_MERGE section and normally would have +# been removed. However it looks like it shouldn't have +# been put there in the first place, so we're leaving it +# here until danda can confirm (we don't have OS/2 machines +# to build on) - hshaw/sudu +# +ifeq ($(OS_ARCH),OS2) +$(OBJDIR)/js.o: js.c + @$(MAKE_OBJDIR) + $(CC) -Fo$@ -c $(CFLAGS) $(JSJAVA_CFLAGS) js.c +endif + + +refdiff: + @for f in `cat commfiles`; do \ + t=/tmp/refdiff.$$$$; \ + trap 'rm -f $$t' 0 1 2 15; \ + sed -f prconv.sed ../ref/$$f > $$t; \ + cmp -s $$t $$f; \ + if test $$? -ne 0; then \ + echo "=== $$f"; \ + diff $$f $$t; \ + fi; \ + rm -f $$t; \ + done + +refconv: + @for f in `cat commfiles`; do \ + echo "=== $$f"; \ + sed -f prconv.sed ../ref/$$f > $$f; \ + done + +.PHONY: refdiff refconv diff --git a/mozilla/js/src/liveconnect/Makefile.in b/mozilla/js/src/liveconnect/Makefile.in new file mode 100644 index 00000000000..ead9a0f4331 --- /dev/null +++ b/mozilla/js/src/liveconnect/Makefile.in @@ -0,0 +1,100 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +ifdef JAVA_OR_OJI +ifdef REGENERATE +DIRS = classes +endif +endif + +ifdef MOZ_OJI + +MODULE = java +LIBRARY_NAME = jsj + +REQUIRES = java js applet nspr img util layer + +CSRCS = jsj.c \ + jsj_JSObject.c \ + jsj_JavaArray.c \ + jsj_JavaClass.c \ + jsj_JavaObject.c \ + jsj_JavaPackage.c \ + jsj_array.c \ + jsj_class.c \ + jsj_convert.c \ + jsj_field.c \ + jsj_hash.c \ + jsj_method.c \ + jsj_utils.c + +endif + +ifdef MOZ_OJI +ifdef REGENERATE +JNI_GEN = netscape.javascript.JSObject netscape.javascript.JSException +endif +else # MOZ_JAVA +JRI_GEN = netscape.javascript.JSObject netscape.javascript.JSException +endif + +ifdef JAVA_OR_OJI +EXPORTS = $(srcdir)/jsjava.h \ + $(srcdir)/$(JRI_GEN_DIR)/netscape_javascript_JSObject.h \ + $(srcdir)/$(JRI_GEN_DIR)/netscape_javascript_JSException.h \ + $(NULL) + +else +EXPORTS = $(srcdir)/jsjava.h \ + $(NULL) +endif + + +include $(topsrcdir)/config/rules.mk + +###################################################################### + +# Generate jsj_nodl.c (so that you can check it in) +# These make rules only works on IRIX...sigh + +ifeq ($(OS_ARCH),IRIX) +jsj_nodl.c: $(OBJDIR)/stubs.o Makefile $(topsrcdir)/config/nodl.pl + rm -f $@ + $(PERL) $(topsrcdir)/config/nodl.pl "jsj_nodl_tab" \ + `nm -Bn $(OBJDIR)/stubs.o | egrep Java_.*_stub | awk '{print $$3;}'` > $@ +endif + +ifdef JAVA_OR_OJI +$(OBJDIR)/stubs.o: \ + $(JRI_GEN_DIR)/netscape_javascript_JSObject.c \ + $(JRI_GEN_DIR)/netscape_javascript_JSException.c \ + $(NULL) +else +$(OBJDIR)/stubs.o: +endif + diff --git a/mozilla/js/src/liveconnect/classes/Makefile.in b/mozilla/js/src/liveconnect/classes/Makefile.in new file mode 100644 index 00000000000..718b1d347b0 --- /dev/null +++ b/mozilla/js/src/liveconnect/classes/Makefile.in @@ -0,0 +1,70 @@ +#!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 = ../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = java + +# +# the idea is that the install phase for those modules will +# make their own signed jar files +# there are some exceptions here that we deal with +# stuff in modules and in ns/js/jsj +# +JMODS = netscape/javascript netscape/javascript/adapters + +# +# JDIRS is dependant on JAVA_DESTPATH in config/rules.m[a]k. +# Be sure to touch that directory if you add a new directory to +# JDIRS, or else it will not build. FIXME +# +JDIRS = $(JMODS) + +JAR_JSJ = jsj10.jar +JAR_JSJ_CLASSES = $(JMODS) + +# +# jars to build at install time +# +JARS = $(JAR_JSJ) + +include $(topsrcdir)/config/rules.mk + +JAVA_SOURCEPATH = $(topsrcdir)/js/src/liveconnect/classes + +doc:: + $(JAVADOC) -d $(DIST)/doc netscape.javascript + +natives_list:: FORCE + rm -rf $@ + find . -name "*.class" -print | sed 's@\./\(.*\)\.class$$@\1@' | \ + sed 's@/@.@g' | xargs $(JVH) -natives | sort > $@ + +check_natives:: natives_list + rm -f found_natives + nm -B ../$(OBJDIR)/*.o \ + | egrep "Java.*_stub" | awk '{ print $$3; }' | sort > found_natives + diff found_natives natives_list + +FORCE: diff --git a/mozilla/js/src/prmjtime.c b/mozilla/js/src/prmjtime.c index e57bc529021..c882a0f9dbe 100644 --- a/mozilla/js/src/prmjtime.c +++ b/mozilla/js/src/prmjtime.c @@ -57,10 +57,6 @@ #ifdef XP_UNIX -#ifdef SOLARIS -extern int gettimeofday(struct timeval *tv); -#endif - #include #endif /* XP_UNIX */ @@ -240,11 +236,7 @@ PRMJ_Now(void) #endif #ifdef XP_UNIX -#if defined(SOLARIS) - gettimeofday(&tv); -#else gettimeofday(&tv, 0); -#endif /* SOLARIS */ LL_UI2L(s2us, PRMJ_USEC_PER_SEC); LL_UI2L(s, tv.tv_sec); LL_UI2L(us, tv.tv_usec); diff --git a/mozilla/js/src/xpcom/Makefile.in b/mozilla/js/src/xpcom/Makefile.in new file mode 100644 index 00000000000..dbdbcdc6fa9 --- /dev/null +++ b/mozilla/js/src/xpcom/Makefile.in @@ -0,0 +1,163 @@ +#! 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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +LIBRARY_NAME = jsxpcom + +ifeq ($(subst /,_,$(shell uname -s)),OS2) +ifndef XCFLAGS +OS2_IMPLIB=1 +LIBRARY = jsxpcom$(MOZ_BITS)$(VERSION_NUMBER).$(LIB_SUFFIX) +DEF_FILE = jsxpcomos2$(VERSION_NUMBER).def +EXTRA_LIBS = $(LIBNSPR) $(LIBNSJAVA) +else +EXTRA_LIBS = $(LIBNSPR) $(LIBNSJAVA) $(OBJDIR)/libjs.lib +endif +endif + +MODULE = jsxpcom + +REQUIRES = xpcom js nspr + +CSRCS = $(NULL) + +CPPSRCS = jxext.cpp \ + jsContext.cpp \ + jsRuntime.cpp \ + jsScriptable.cpp \ + $(NULL) + +PROGCSRCS = common.c \ + $(NULL) + +PROGCPPSRCS = jsxpcom.cpp \ + $(NULL) + +PROGOBJS = $(addprefix $(OBJDIR)/, $(PROGCPPSRCS:.cpp=.o)) \ + $(addprefix $(OBJDIR)/, $(PROGCSRCS:.c=.o)) \ + $(NULL) + +EXPORTS = jsIExtension.h \ + jsIContext.h \ + jsIRuntime.h \ + jsIScript.h \ + jsIScriptable.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +INCLUDES += -I$(PUBLIC)/xpcom -I$(PUBLIC)/js + +PROGRAM = jsxpcom + +# use the C++ compiler to do the final link +CPP_PROG_LINK = 1 + +# `libs' just does libs, `install' does programs +LIBS_NEQ_INSTALL = 1 + +# XXX this is not XP +LDFLAGS += -rdynamic + +include $(topsrcdir)/config/rules.mk + +export:: + +libs:: $(SHARED_LIBRARY) $(LIBRARY) + +install:: $(PROGRAM) + +ifndef BUILD_OPT +MOCHAFILE = 1 +endif + +ifdef JSFILE +DEFINES += -DJSFILE +endif + +ifdef JS_THREADSAFE +DEFINES += -DJS_THREADSAFE +endif + +ifdef JS_NO_THIN_LOCKS +DEFINES += -DJS_USE_ONLY_NSPR_LOCKS +endif + +ifdef JS_VERSION +DEFINES += -DJS_VERSION=$(JS_VERSION) +endif + +ifeq ($(CPU_ARCH),sparc) + +ifndef JS_NO_ULTRA +ULTRA_OPTIONS := -xarch=v8plus,-DULTRA_SPARC +ULTRA_OPTIONSCC := -DULTRA_SPARC +else +ULTRA_OPTIONS := -xarch=v8 +ULTRA_OPTIONSCC := +endif + +ifeq ($(shell uname -m),sun4u) +ASFLAGS += -Wa,$(ULTRA_OPTIONS),-P,-L,-D_ASM,-D__STDC__=0 $(ULTRA_OPTIONSCC) +else +ASFLAGS += -Wa,-xarch=v8,-P,-L,-D_ASM,-D__STDC__=0 +endif + +endif # sparc + +INCLUDES += -I. + +ifdef NSPR20 +INCLUDES += -I$(DIST)/include/nspr20/pr +else +INCLUDES += -I$(XPDIST)/public/nspr +endif + +ifndef NSBUILDROOT +JSJAVA_STUBHEADERS = -I$(DEPTH)/sun-java/include/_gen \ + -I$(DEPTH)/sun-java/netscape/javascript/_jri \ + -I$(DEPTH)/sun-java/netscape/security/_jri +else +JSJAVA_STUBHEADERS = -I$(JRI_GEN_DIR) -I$(JDK_GEN_DIR) +endif + +JSJAVA_CFLAGS = -I$(DEPTH)/sun-java/md-include \ + -I$(DEPTH)/sun-java/include \ + $(JSJAVA_STUBHEADERS) + +# LIBNSPR includes unneeded libmsgc21.a, but abstracts nspr version, +# etc. nicely. +LDFLAGS += -L$(DIST)/bin -lxpcom -lreg -ljsxpcom -ljs $(LIBNSPR) -lplc21 -lm + +ifeq ($(OS_ARCH), OSF1) +LDFLAGS += -lc_r +endif +ifeq ($(OS_ARCH), SunOS) +LDFLAGS += -lposix4 -ldl -lnsl -lsocket +endif +ifeq ($(OS_ARCH), Linux) +LDFLAGS += -ldl +endif + +jsxpcom: $(PROGRAM) + +.PHONY: jsxpcom$(BIN_SUFFIX) diff --git a/mozilla/l10n/Makefile.in b/mozilla/l10n/Makefile.in new file mode 100644 index 00000000000..a495400f1dd --- /dev/null +++ b/mozilla/l10n/Makefile.in @@ -0,0 +1,26 @@ +# +# 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 = .. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +DIRS = us + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/l10n/us/Makefile.in b/mozilla/l10n/us/Makefile.in new file mode 100644 index 00000000000..440359f1a93 --- /dev/null +++ b/mozilla/l10n/us/Makefile.in @@ -0,0 +1,27 @@ +# -*- Mode: Makefile -*- +# +# 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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +DIRS = xp + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/l10n/us/xp/Makefile.in b/mozilla/l10n/us/xp/Makefile.in new file mode 100644 index 00000000000..4f09cddda10 --- /dev/null +++ b/mozilla/l10n/us/xp/Makefile.in @@ -0,0 +1,208 @@ +# -*- Mode: Makefile -*- +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +REAL_XPDIR = $(topsrcdir)/lib/xp + +HSRCS = $(wildcard $(srcdir)/*.html) +MSRCS = $(wildcard $(srcdir)/*.msg) + +RM = /bin/rm -f + +# +# tr has a bug on linux. +# tr '[\001-\272]' '[\106-\377]' +# does not translate char ']' So we use our own program to do this +# +TR69 = $(OBJDIR)/tr69 + +TARGETS = $(TR69) $(HSRCS:.html=.h) $(MSRCS:.msg=.h) splash.h splash-java.h \ + about-lite.h about-java-lite.h splash-lite.h splash-java-lite.h + +include $(topsrcdir)/config/rules.mk + +GARBAGE += about-lite.html about-java-lite.html $(wildcard splash*.html) \ + $(wildcard *.pc) $(wildcard *.input) $(wildcard *.h) $(wildcard *~) + +.SUFFIXES: .html .msg + +$(TR69): tr69.c + @$(MAKE_OBJDIR) +ifeq ($(OS_ARCH),OS2) + $(CCF) -Fe $@ $< +else + $(CC) -o $@ $< +endif + +# +# Welcome to sHELL.... +# +# The awk command before the tee is for Windows, the one after the +# tee is for Unix only. The about.pc file is for Win16, and the +# about-java.pc is for Win32. They become .rc files with a trivial +# tweak, if necessary. +# +# Mac: default +# Win32: no Mercutio MDEF +# Win16: no Mercutio MDEF +# Unix: no Mercutio MDEF, no Macromedia, no Symantec, no Quicktime +# +about.h: about-all.html + @echo generating $@ from $<; \ + NAME=Netscape; \ + CLASS=Netscape; \ + RTMP=/tmp/nsrot$$$$; \ + $(RM) $@ $*.pc; \ + sed "s/@NAME@/$$NAME/g; \ + s/@CLASS@/$$CLASS/g; \ + s/@PROGNAME@/$(PROGNAME)/g" $< | \ + awk 'BEGIN { skipline = 0 } \ + /Mercutio/ { next } { print }' | \ + tee $$RTMP | \ + awk 'BEGIN { skipline = 0 } \ + /about:qtlogo/,/<\/TD>/ { skipline = 1; next } \ + /about:mmlogo/,/<\/TD>/ { skipline = 1; next } \ + /about:symlogo/,/<\/TD>/ { skipline = 1; next } \ + skipline == 1 && $$1 !~ /<\/TD>/ { next } \ + skipline == 1 && $$1 ~ /<\/TD>/ { skipline = 0; next } \ + { print }' | \ + tee splash.input | \ + $(TR69) '[\001-\272]' '[\106-\377]' | \ + od -b | \ + sed 's/^[0-7][0-7]* *\(.*\)/\\\1/; \ + s/ /\\/g; \ + s/\(.*\)/ "\1"/; \ + s/^ *"\\"$$//' >> $@; \ + echo generating $*.pc from $<; \ + $(EMACS) -batch -q -l $(REAL_XPDIR)/html-to-pc.el \ + -f batch-html-to-pc $* $$RTMP $*.pc; \ + echo; \ + $(RM) $$RTMP + +about-java.h: about-all.html + @echo generating $@ from $<; \ + NAME=Netscape; \ + CLASS=Netscape; \ + RTMP=/tmp/nsrot$$$$; \ + $(RM) $@ $*.pc; \ + sed "s/@NAME@/$$NAME/g; \ + s/@CLASS@/$$CLASS/g; \ + s/@PROGNAME@/$(PROGNAME)/g" $< | \ + awk 'BEGIN { skipline = 0 } \ + /Mercutio/ { next } { print }' | \ + tee $$RTMP | \ + awk 'BEGIN { skipline = 0 } \ + /about:qtlogo/,/<\/TD>/ { skipline = 1; next } \ + /about:mmlogo/,/<\/TD>/ { skipline = 1; next } \ + /about:symlogo/,/<\/TD>/ { skipline = 1; next } \ + skipline == 1 && $$1 !~ /<\/TD>/ { next } \ + skipline == 1 && $$1 ~ /<\/TD>/ { skipline = 0; next } \ + { print }' | \ + tee splash-java.input | \ + $(TR69) '[\001-\272]' '[\106-\377]' | \ + od -b | \ + sed 's/^[0-7][0-7]* *\(.*\)/\\\1/; \ + s/ /\\/g; \ + s/\(.*\)/ "\1"/; \ + s/^ *"\\"$$//' >> $@; \ + echo generating $*.pc from $<; \ + $(EMACS) -batch -q -l $(REAL_XPDIR)/html-to-pc.el \ + -f batch-html-to-pc $* $$RTMP $*.pc; \ + echo; \ + $(RM) $$RTMP + +about-all.h: about-all.html + @echo "Garbage file" > $@ + +splash.input: about.h +splash-java.input: about-java.h + +splash.html: splash.input + @echo generating $@ from $<... + @sed 's|||g;s|||g' $< > $@ + +splash-java.html: splash-java.input + @echo generating $@ from $<... + @sed 's|||g;s|||g' $< > $@ + +splash-lite.html: about-lite.html + @echo generating $@ from $<... + @sed 's|||g;s|||g' $< > $@ + +splash-java-lite.html: about-java-lite.html + @echo generating $@ from $<... + @sed 's|||g;s|||g' $< > $@ + +about-lite.html: splash.input + @echo generating $@ from $<... + @sed 's/Communicator/Navigator/' $< > $@ + +about-java-lite.html: splash-java.input + @echo generating $@ from $<... + @sed 's/Communicator/Navigator/' $< > $@ + +# +# Handle the rest of the HTML files. +# +.html.h: + @echo generating $*.h from $<; \ + NAME=Netscape; \ + CLASS=Netscape; \ + RTMP=/tmp/nsrot$$$$; \ + $(RM) $*.h $*.pc; \ + sed "s/@NAME@/$$NAME/g; \ + s/@CLASS@/$$CLASS/g; \ + s/@PROGNAME@/$(PROGNAME)/g" \ + < $< > $$RTMP; \ + $(TR69) < $$RTMP | \ + od -b | \ + sed 's/^[0-7][0-7]* *\(.*\)/\\\1/; \ + s/ /\\/g; \ + s/\(.*\)/ "\1"/; \ + s/^ *"\\"$$//' >> $*.h; \ + echo generating $*.pc from $<; \ + $(EMACS) -batch -q -l $(REAL_XPDIR)/html-to-pc.el \ + -f batch-html-to-pc $* $$RTMP $*.pc; \ + echo; \ + $(RM) $$RTMP + +.msg.h: + @echo generating $*.h from $<; \ + NAME=Netscape; \ + CLASS=Netscape; \ + $(RM) $*.h; \ + RTMP=/tmp/nsrot$$$$; \ + sed "s/@NAME@/$$NAME/g; \ + s/@CLASS@/$$CLASS/g; \ + s/@PROGNAME@/$(PROGNAME)/g" \ + < $< > $$RTMP; \ + $(TR69) '[\001-\272]' '[\106-\377]' < $$RTMP | \ + od -b | sed 's/^[0-7][0-7]* *\(.*\)/\\\1/; \ + s/ /\\/g;s/\(.*\)/ "\1"/;s/^ *"\\"$$//' \ + >> $*.h; \ + $(RM) $$RTMP + +$(TARGETS): Makefile + +export:: $(TARGETS) diff --git a/mozilla/lib/htmldlgs/Makefile.in b/mozilla/lib/htmldlgs/Makefile.in new file mode 100644 index 00000000000..6cb5f0385a5 --- /dev/null +++ b/mozilla/lib/htmldlgs/Makefile.in @@ -0,0 +1,35 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = htmldlgs +LIBRARY_NAME = htmldlgs + +CSRCS = htmldlgs.c + +REQUIRES = security dbm nspr img util layer js + +EXPORTS = $(srcdir)/htmldlgs.h + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/lib/layout/Makefile.in b/mozilla/lib/layout/Makefile.in new file mode 100644 index 00000000000..0d93868167e --- /dev/null +++ b/mozilla/lib/layout/Makefile.in @@ -0,0 +1,102 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = lay +LIBRARY_NAME = lay + +EXPORTS = laylayer.h layout.h lo_funcs.h + +CSRCS = bullet.c \ + clipline.c \ + layarena.c \ + layblock.c \ + laybuiltin.c \ + laycell.c \ + laycols.c \ + laydisp.c \ + layembed.c \ + layfind.c \ + layform.c \ + laygrid.c \ + layhrule.c \ + layinfo.c \ + laylist.c \ + laymap.c \ + layobj.c \ + layscrip.c \ + layspace.c \ + layspan.c \ + laystyle.c \ + laysub.c \ + ptinpoly.c \ + laymocha.c \ + layjava.c \ + laylayer.c \ + layrelay.c \ + laytrav.c \ + $(NULL) + +REQUIRES = parse style js layer applet nspr security dbm img util jtools edtplug java hook pref libfont lay rdf network htmldigs privacy + +include $(topsrcdir)/config/config.mk + +CSRCS += layedit.c \ + layfree.c \ + layimage.c \ + layout.c \ + laysel.c \ + laytable.c \ + laytags.c \ + laytext.c \ + layutil.c \ + $(NULL) + +ifdef EDITOR +CPPSRCS = streams.cpp \ + fsfile.cpp \ + editor.cpp \ + edtbuf.cpp \ + edtcmd.cpp \ + edtele.cpp \ + edtjava.cpp \ + edtsave.cpp \ + edtutil.cpp \ + $(NULL) +endif + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk + +ifneq ($(OS_ARCH),OS2) +$(OBJDIR)/laymocha.o: laymocha.c + @$(MAKE_OBJDIR) + $(CC) -o $@ -c $(CFLAGS) -I$(topsrcdir)/mocha/include $< +else +$(OBJDIR)/laymocha.o: laymocha.c + @$(MAKE_OBJDIR) + $(CC) -Fo$@ -c $(CFLAGS) -I$(topsrcdir)/mocha/include $< +endif + +$(LIBRARY): $(OBJS) diff --git a/mozilla/lib/libaddr/Makefile.in b/mozilla/lib/libaddr/Makefile.in new file mode 100644 index 00000000000..956c67a4718 --- /dev/null +++ b/mozilla/lib/libaddr/Makefile.in @@ -0,0 +1,113 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = addr +LIBRARY_NAME = addr + +CSRCS = line64.c vobject.c vcc.c abfault.c abdeque.c abcolumn.c + +CPPSRCS = ab.cpp \ + export.cpp \ + import.cpp \ + abcinfo.cpp \ + abpane2.cpp \ + abcpane.cpp \ + abglue.cpp \ + abntfy.cpp \ + namecomp.cpp \ + abpicker.cpp \ + addrprsr.cpp \ + abview.cpp \ + abtracer.cpp \ + abthumb.cpp \ + abtable.cpp \ + abstring.cpp \ + abstore.cpp \ + absearch.cpp \ + abrow.cpp \ + abprint.cpp \ + abpart.cpp \ + abobject.cpp \ + abobjset.cpp \ + abnamset.cpp \ + abmodel.cpp \ + abfile.cpp \ + abenv.cpp \ + abdefalt.cpp \ + abdebug.cpp \ + abcolset.cpp \ + abchange.cpp \ + abcell.cpp \ + $(NULL) + +EXPORTS = aberror.h \ + ab.h \ + abcallbk.h \ + abcinfo.h \ + abcpane.h \ + abinfo.h \ + abntfy.h \ + abpane2.h \ + ldif.h \ + abmodel.h \ + namecomp.h \ + abpicker.h \ + addrprsr.h \ + abtable.h \ + abdeque.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +REQUIRES = net msg dbm nspr img util layer pref js ldap security + +include $(topsrcdir)/config/rules.mk + +ifndef NO_UNIX_LDAP +INCLUDES += -I$(DIST)/include -I$(PUBLIC)/security -I$(srcdir)/../libmsg -I$(PUBLIC)/ldap \ + -I$(PUBLIC)/neo -I$(PUBLIC)/msg +DEFINES += -DLIBMSG_LDAP +endif + +ifeq ($(OS_ARCH),OS2) +OS_CFLAGS += -Fi- -Si- +endif + +DEFINES += -DqNeoStandAlone + + + + + + + + + + + + + + + + diff --git a/mozilla/lib/libi18n/Makefile.in b/mozilla/lib/libi18n/Makefile.in new file mode 100644 index 00000000000..9355c6434ef --- /dev/null +++ b/mozilla/lib/libi18n/Makefile.in @@ -0,0 +1,77 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = i18n +LIBRARY_NAME = i18n + +DIRS = unicode + +CSRCS = autokr.c \ + autocvt.c \ + b52cns.c \ + cns2b5.c \ + cvchcode.c \ + detectu2.c \ + euc2jis.c \ + euc2sjis.c \ + euckr2is.c \ + is2euckr.c \ + intl_csi.c \ + jis2oth.c \ + net_junk.c \ + nscstr.c \ + metatag.c \ + sjis2euc.c \ + sjis2jis.c \ + ugen.c \ + ugendata.c \ + ucs2.c \ + umap.c \ + unicvt.c \ + uscan.c \ + fontencd.c \ + csnamefn.c \ + csnametb.c \ + sbconvtb.c \ + acptlang.c \ + csstrlen.c \ + sblower.c \ + dblower.c \ + kinsokud.c \ + kinsokuf.c \ + katakana.c \ + $(NULL) + +REQUIRES = i18n dbm nspr img util layer pref js + +CSRCS += doc_ccc.c fe_ccc.c intlcomp.c mime2fun.c + +include $(topsrcdir)/config/rules.mk + +DEFINES += -DHAS_FE + +$(LIBRARY): $(OBJS) + diff --git a/mozilla/lib/libi18n/unicode/Makefile.in b/mozilla/lib/libi18n/unicode/Makefile.in new file mode 100644 index 00000000000..4926074a235 --- /dev/null +++ b/mozilla/lib/libi18n/unicode/Makefile.in @@ -0,0 +1,31 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = ufrmtbl utotbl + +REQUIRES = dbm + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/lib/libi18n/unicode/tbltool/Makefile.in b/mozilla/lib/libi18n/unicode/tbltool/Makefile.in new file mode 100644 index 00000000000..eb6c4588afd --- /dev/null +++ b/mozilla/lib/libi18n/unicode/tbltool/Makefile.in @@ -0,0 +1,54 @@ +#!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. + + + +INCLUDES = -I../.. +BIN_SUFFIX = .exe +ifneq ($(subst /,_,$(shell uname -s)),OS2) +.c.o: + cc -c $(CFLAGS) $(INCLUDES) $*.c +else +.c.o: + icc -c -Fo$*.o $(CFLAGS) $(INCLUDES) $*.c + +endif + +all: fromu$(BIN_SUFFIX) tou$(BIN_SUFFIX) fromu0208$(BIN_SUFFIX) \ + tou0208$(BIN_SUFFIX) xlatgen$(BIN_SUFFIX) xlatgenmac$(BIN_SUFFIX) + +xlatgenmac$(BIN_SUFFIX): xlatgenmac.o xlatgenutil.o + ILINK -NOFREE -PMTYPE:VIO $?; + +xlatgen$(BIN_SUFFIX): xlatgen.o + ILINK -NOFREE -PMTYPE:VIO $?; + +fromu$(BIN_SUFFIX): fromu.o utblutil.o + ILINK -NOFREE -PMTYPE:VIO $?; + +tou$(BIN_SUFFIX): tou.o utblutil.o + ILINK -NOFREE -PMTYPE:VIO $?; + +fromu0208$(BIN_SUFFIX): fromu0208.o utblutil.o + ILINK -NOFREE -PMTYPE:VIO $?; + +tou0208$(BIN_SUFFIX): tou0208.o utblutil.o + ILINK -NOFREE -PMTYPE:VIO $?; + +utblutil.o$(BIN_SUFFIX): ../../umap.h + ILINK -NOFREE -PMTYPE:VIO $?; + diff --git a/mozilla/lib/libi18n/unicode/ufrmtbl/Makefile.in b/mozilla/lib/libi18n/unicode/ufrmtbl/Makefile.in new file mode 100644 index 00000000000..9cd2701034e --- /dev/null +++ b/mozilla/lib/libi18n/unicode/ufrmtbl/Makefile.in @@ -0,0 +1,32 @@ +#!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 = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = i18n + +EXPORTS = $(wildcard $(srcdir)/*.uf) + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/lib/libi18n/unicode/utotbl/Makefile.in b/mozilla/lib/libi18n/unicode/utotbl/Makefile.in new file mode 100644 index 00000000000..09efc906bb6 --- /dev/null +++ b/mozilla/lib/libi18n/unicode/utotbl/Makefile.in @@ -0,0 +1,33 @@ +#!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 = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = i18n + +EXPORTS = $(wildcard $(srcdir)/*.ut) +DIST_HEADERS = $(EXPORTS) + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/lib/liblayer/Makefile.in b/mozilla/lib/liblayer/Makefile.in new file mode 100644 index 00000000000..59d95228f9e --- /dev/null +++ b/mozilla/lib/liblayer/Makefile.in @@ -0,0 +1,29 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = include src + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/lib/liblayer/include/Makefile.in b/mozilla/lib/liblayer/include/Makefile.in new file mode 100644 index 00000000000..3c59d9e8477 --- /dev/null +++ b/mozilla/lib/liblayer/include/Makefile.in @@ -0,0 +1,33 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = layer + +EXPORTS = layers.h xp_rect.h cl_types.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/lib/liblayer/src/Makefile.in b/mozilla/lib/liblayer/src/Makefile.in new file mode 100644 index 00000000000..e7917fe1ad6 --- /dev/null +++ b/mozilla/lib/liblayer/src/Makefile.in @@ -0,0 +1,41 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = layer +LIBRARY_NAME = layer + +CSRCS = \ + cl_comp.c \ + cl_drwbl.c \ + cl_layer.c \ + cl_util.c \ + cl_group.c \ + xp_rect.c \ + $(NULL) + +REQUIRES = layer dbm nspr img util + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/lib/libmime/Makefile.in b/mozilla/lib/libmime/Makefile.in new file mode 100644 index 00000000000..e262ad51d47 --- /dev/null +++ b/mozilla/lib/libmime/Makefile.in @@ -0,0 +1,123 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = mime +LIBRARY_NAME = mime + +CSRCS = \ + mimecont.c \ + mimedrft.c \ + mimeebod.c \ + mimeenc.c \ + mimeeobj.c \ + mimehdrs.c \ + mimei.c \ + mimeiimg.c \ + mimeleaf.c \ + mimemalt.c \ + mimemapl.c \ + mimemdig.c \ + mimemmix.c \ + mimemoz.c \ + mimempar.c \ + mimemrel.c \ + mimemsg.c \ + mimemsig.c \ + mimemult.c \ + mimeobj.c \ + mimepbuf.c \ + mimesun.c \ + mimetenr.c \ + mimetext.c \ + mimethtm.c \ + mimetpla.c \ + mimetric.c \ + mimeunty.c \ + mimevcrd.c \ + $(NULL) + +REQUIRES = mime nspr dbm img util layer security pref js julian nls + +include $(topsrcdir)/config/rules.mk + +FILT_SRCS = mimefilt.c mimestub.c +FILT_OBJS = $(addprefix $(OBJDIR)/,$(FILT_SRCS:.c=.o)) + +ifdef MOZ_SECURITY +INCLUDES += -I$(DEPTH)/lib/libmime -I$(DIST)/public/security +endif + +INCLUDES += -I$(srcdir)/ +# +# Building the "mimefilt" executable, which reads a message from stdin and +# writes HTML to stdout +# +LIBMSG_DIR = ../libmsg +LIBXP_DIR = ../xp +LIBXP_BIN_DIR = $(LIBXP_DIR)/$(OBJDIR) +LIBMSG_BIN_DIR = $(LIBMSG_DIR)/$(OBJDIR) + +EXT_OBJECTS = $(LIBMSG_BIN_DIR)/addr.o \ + $(LIBXP_BIN_DIR)/xp_file.o \ + $(LIBXP_BIN_DIR)/xp_str.o \ + $(LIBXP_BIN_DIR)/xp_intl.o \ + $(LIBXP_BIN_DIR)/xp_error.o \ + $(LIBXP_BIN_DIR)/xp_trace.o \ + $(LIBXP_BIN_DIR)/xp_reg.o \ + $(LIBXP_BIN_DIR)/xp_hash.o \ + $(LIBXP_BIN_DIR)/xp_list.o \ + $(NULL) + +FILT_STUBS = $(EXT_OBJECTS) \ + $(LIBXP_BIN_DIR)/allxpstr.o \ + $(DIST)/lib/libpkcs7.$(LIB_SUFFIX) \ + $(DIST)/lib/libsecmod.$(LIB_SUFFIX) \ + $(DIST)/lib/libcert.$(LIB_SUFFIX) \ + $(DIST)/lib/libkey.$(LIB_SUFFIX) \ + $(DIST)/lib/libsecutil.$(LIB_SUFFIX) \ + $(DIST)/lib/libhash.$(LIB_SUFFIX) \ + $(DIST)/lib/libssl.$(LIB_SUFFIX) \ + $(DIST)/lib/libcrypto.$(LIB_SUFFIX) \ + $(DIST)/lib/libdbm.$(LIB_SUFFIX) \ + $(DIST)/lib/libaddr.$(LIB_SUFFIX) \ + $(DIST)/lib/libnspr.$(LIB_SUFFIX) \ + $(NULL) + +$(EXT_OBJECTS): + @cd $(shell dirname $@)/../ ; \ + $(MAKE_OBJDIR) ; \ + $(MAKE) $(subst $(LIBXP_BIN_DIR)/,,$(subst $(LIBMSG_BIN_DIR)/,,$@)) + +$(OBJDIR)/mimefilt: $(FILT_OBJS) $(LIBRARY) $(FILT_STUBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(CC) -o $@ $(CFLAGS) $(FILT_OBJS) $(LIBRARY) $(FILT_STUBS) $(LDFLAGS) + +$(OBJDIR)/mimefilt.pure: $(LIBRARY) $(FILT_OBJS) $(FILT_STUBS) + @$(MAKE_OBJDIR) + rm -f $@ + $(PURIFY) $(CC) -o $@ $(NOMD_CFLAGS) $(FILT_OBJS) $(LIBRARY) $(FILT_STUBS) $(LDFLAGS) + +TAGS:: $(LIB_SRCS) $(FILT_SRCS) $(HEADERS) + $(ETAGS) $(LIB_SRCS) $(FILT_SRCS) $(HEADERS) diff --git a/mozilla/lib/libmisc/Makefile.in b/mozilla/lib/libmisc/Makefile.in new file mode 100644 index 00000000000..48a2b7fd064 --- /dev/null +++ b/mozilla/lib/libmisc/Makefile.in @@ -0,0 +1,52 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = misc +LIBRARY_NAME = misc + +CSRCS = \ + bkmutils.c \ + glhist.c \ + undo.c \ + bkmks.c \ + shist.c \ + hotlist.c \ + dirprefs.c \ + $(NULL) + +REQUIRES = net msg js dbm nspr img util layer pref ldap security privacy + +include $(topsrcdir)/config/config.mk + +ifdef MOZ_MAIL_NEWS +CSRCS += mime.c +endif + +include $(topsrcdir)/config/rules.mk + +DEFINES += -DHAS_FE + +$(LIBRARY): $(OBJS) diff --git a/mozilla/lib/libmocha/Makefile.in b/mozilla/lib/libmocha/Makefile.in new file mode 100644 index 00000000000..7ea2035d4f5 --- /dev/null +++ b/mozilla/lib/libmocha/Makefile.in @@ -0,0 +1,97 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = mocha +LIBRARY_NAME = mocha + +REQUIRES = lay parse img js style layer applet dbm nspr security \ + htmldlgs util jtools pref caps java libreg softupdt jsdebug netcache network httpurl plugin plugimpl + +ifdef MOZ_SECURITY +REQUIRES += jar +endif + +CSRCS = et_mocha.c \ + et_moz.c \ + lm_applt.c \ + lm_bars.c \ + lm_cmpnt.c \ + lm_doc.c \ + lm_embed.c \ + lm_event.c \ + lm_form.c \ + lm_hardw.c \ + lm_hist.c \ + lm_href.c \ + lm_img.c \ + lm_init.c \ + lm_input.c \ + lm_nav.c \ + lm_plgin.c \ + lm_screen.c \ + lm_span.c \ + lm_supdt.c \ + lm_taint.c \ + lm_trans.c \ + lm_trggr.c \ + lm_url.c \ + lm_win.c \ + lm_layer.c \ + $(NULL) + + +ifdef MOZ_JAVA +CSRCS += \ + lm_jsd.c \ + $(NULL) +endif + +include $(topsrcdir)/config/rules.mk + +DEFINES += -DDLL_SUFFIX=\"$(DLL_SUFFIX)\" + +TAINT_CFLAGS = $(CFLAGS) -I$(topsrcdir)/lib/libjar -I$(DEPTH)/sun-java/netscape/security/_jri \ + -I$(DEPTH)/dist/public/security + +ifneq ($(OS_ARCH),OS2) +$(OBJDIR)/lm_embed.o: lm_embed.c + @$(MAKE_OBJDIR) + $(CC) -o $@ -c $(CFLAGS) $< + +$(OBJDIR)/lm_taint.o: lm_taint.c + @$(MAKE_OBJDIR) + $(CC) -o $@ -c $(TAINT_CFLAGS) $< + +else +$(OBJDIR)/lm_embed.o: lm_embed.c + @$(MAKE_OBJDIR) + $(CC) -Fo$@ -c $(CFLAGS) $< + +$(OBJDIR)/lm_taint.o: lm_taint.c + @$(MAKE_OBJDIR) + $(CC) -Fo$@ -c $(TAINT_CFLAGS) $< + +endif diff --git a/mozilla/lib/libmsg/Makefile.in b/mozilla/lib/libmsg/Makefile.in new file mode 100644 index 00000000000..20a511d57f8 --- /dev/null +++ b/mozilla/lib/libmsg/Makefile.in @@ -0,0 +1,219 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = msg +LIBRARY_NAME = mozmsg + +CSRCS = \ + ad_strm.c \ + ap_decod.c \ + ap_encod.c \ + appledbl.c \ + bh_strm.c \ + m_binhex.c \ + msgutils.c \ + $(NULL) + + +CPPSRCS = \ + addrutil.cpp \ + biffmast.cpp \ + bytearr.cpp \ + chngntfy.cpp \ + dwordarr.cpp \ + filters.cpp \ + grec.cpp \ + grpinfo.cpp \ + hosttbl.cpp \ + idarray.cpp \ + imaphost.cpp \ + imapoff.cpp \ + jsmsg.cpp \ + listngst.cpp \ + maildb.cpp \ + mailhdr.cpp \ + mhtmlstm.cpp \ + msgbg.cpp \ + msgbgcln.cpp \ + msgccach.cpp \ + msgcflds.cpp \ + msgcmfld.cpp \ + msgcpane.cpp \ + msgdb.cpp \ + msgdbini.cpp \ + msgdbvw.cpp \ + msgdlqml.cpp \ + msgdwnof.cpp \ + msgfcach.cpp \ + msgfinfo.cpp \ + msgfpane.cpp \ + msgglue.cpp \ + msghdr.cpp \ + msgimap.cpp \ + msglpane.cpp \ + msglsrch.cpp \ + msgmapi.cpp \ + msgmast.cpp \ + msgmdn.cpp \ + msgmpane.cpp \ + msgmsrch.cpp \ + msgnsrch.cpp \ + msgoffnw.cpp \ + msgpane.cpp \ + msgppane.cpp \ + msgprefs.cpp \ + msgpurge.cpp \ + msgrulet.cpp \ + msgsend.cpp \ + msgsendp.cpp \ + msgspane.cpp \ + msgtpane.cpp \ + msgundac.cpp \ + msgundmg.cpp \ + msgurlq.cpp \ + msgzap.cpp \ + newsdb.cpp \ + newshdr.cpp \ + newshost.cpp \ + newspane.cpp \ + newsset.cpp \ + nwsartst.cpp \ + prsembst.cpp \ + ptrarray.cpp \ + search.cpp \ + subline.cpp \ + subpane.cpp \ + thrdbvw.cpp \ + thrhead.cpp \ + thrlstst.cpp \ + thrnewvw.cpp \ + $(NULL) + +EXPORTS = \ + ad_codes.h \ + appledbl.h \ + bytearr.h \ + chngntfy.h \ + dberror.h \ + dwordarr.h \ + errcode.h \ + grec.h \ + grpinfo.h \ + hosttbl.h \ + idarray.h \ + imaphost.h \ + imapoff.h \ + jsmsg.h \ + listngst.h \ + m_binhex.h \ + m_cvstrm.h \ + maildb.h \ + mailhdr.h \ + mhtmlstm.h \ + msg.h \ + msg_opaq.h \ + msgbg.h \ + msgbgcln.h \ + msgbiff.h \ + msgccach.h \ + msgcflds.h \ + msgcmfld.h \ + msgcpane.h \ + msgdb.h \ + msgdbapi.h \ + msgdbtyp.h \ + msgdbvw.h \ + msgdlqml.h \ + msgdwnof.h \ + msgfcach.h \ + msgfinfo.h \ + msgfpane.h \ + msghdr.h \ + msghost.h \ + msgimap.h \ + msglpane.h \ + msgmast.h \ + msgmdn.h \ + msgmpane.h \ + msgoffnw.h \ + msgpane.h \ + msgppane.h \ + msgprefs.h \ + msgprnot.h \ + msgpurge.h \ + msgrulet.h \ + msgsec.h \ + msgsend.h \ + msgsendp.h \ + msgspane.h \ + msgstrob.h \ + msgtpane.h \ + msgundac.h \ + msgundmg.h \ + msgundo.h \ + msgurlq.h \ + msgutils.h \ + msgzap.h \ + neohdrs.h \ + newsdb.h \ + newshdr.h \ + newshost.h \ + newspane.h \ + newsrc.h \ + newsset.h \ + nwsartst.h \ + pmsgfilt.h \ + pmsgsrch.h \ + prsembst.h \ + ptrarray.h \ + subline.h \ + subpane.h \ + thrdbvw.h \ + threads.h \ + thrhead.h \ + thrlstst.h \ + thrnewvw.h \ + vwerror.h \ + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +REQUIRES = nspr dbm htmldlgs img util layer pref security js java net progress msg addr network + + +include $(topsrcdir)/config/rules.mk + +ifeq ($(subst /,_,$(shell uname -s)),OS2) +INCLUDES += -I$(PUBLIC)/neo +else +INCLUDES += $(G++INCLUDES) +endif + +ifndef NO_UNIX_LDAP +INCLUDES += -I$(XPDIST)/public/ldap +DEFINES += -DLIBMSG_LDAP +endif + +INCLUDES += -I$(DIST)/include -I$(PUBLIC)/security -I$(srcdir)/../libaddr -I$(PUBLIC)/msg diff --git a/mozilla/lib/libparse/Makefile.in b/mozilla/lib/libparse/Makefile.in new file mode 100644 index 00000000000..dd91f4f1924 --- /dev/null +++ b/mozilla/lib/libparse/Makefile.in @@ -0,0 +1,50 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = parse +LIBRARY_NAME = parse + +CSRCS = pa_amp.c pa_hash.c pa_hook.c pa_mdl.c pa_parse.c + +EXPORTS = pa_parse.h pa_tags.h pa_amp.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +REQUIRES = nspr dbm img util layer js hook lay style + +include $(topsrcdir)/config/rules.mk + +ifndef NO_MOCHA +DEFINES += -DMOCHA +endif + +# XXX this should actually be "pa_hash.c pa_hash.rmap:" and be in the GARBAGE +# XXX list and so on, but we don't have perl everywhere yet... +# +# XXX also, should share string constants between pa_hash.c and pa_hash.rmap + +hash: pa_tags.h gentab.pl pa_hash.template + @echo Generating pa_hash.c from pa_tags.h and pa_hash.template + @rm -f pa_hash.c + @$(srcdir)/gentab.pl > pa_hash.c diff --git a/mozilla/lib/libpics/Makefile.in b/mozilla/lib/libpics/Makefile.in new file mode 100644 index 00000000000..c232b1c9974 --- /dev/null +++ b/mozilla/lib/libpics/Makefile.in @@ -0,0 +1,41 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = pics +LIBRARY_NAME = pics + +CSRCS = cslabel.c \ + csparse.c \ + htchunk.c \ + htlist.c \ + htstring.c \ + lablpars.c \ + picsapi.c \ + $(NULL) + +REQUIRES = js nspr dbm img layer util pref security + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/lib/libpwcac/Makefile.in b/mozilla/lib/libpwcac/Makefile.in new file mode 100644 index 00000000000..4a036ce19cb --- /dev/null +++ b/mozilla/lib/libpwcac/Makefile.in @@ -0,0 +1,32 @@ +#! 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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = pwcac +LIBRARY_NAME = pwcac + +CSRCS = pwcacapi.c + +REQUIRES = js nspr dbm img layer util pref security + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/lib/libstyle/Makefile.in b/mozilla/lib/libstyle/Makefile.in new file mode 100644 index 00000000000..1976d2b960b --- /dev/null +++ b/mozilla/lib/libstyle/Makefile.in @@ -0,0 +1,71 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = style +LIBRARY_NAME = style + +CSRCS = csslex.c \ + csstab.c \ + csstojs.c \ + jssrules.c \ + libstyle.c \ + stystack.c \ + stystruc.c \ + $(NULL) + +EXPORTS = stystack.h stystruc.h css.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +REQUIRES = js nspr dbm img util layer + +include $(topsrcdir)/config/rules.mk + +ifdef ENABLE_TESTS +TEST_LIBS = $(LIBRARY) \ + $(DIST)/lib/liburl.$(LIB_SUFFIX) \ + $(DIST)/lib/libsec-us.$(LIB_SUFFIX) \ + $(DIST)/lib/libdbm.$(LIB_SUFFIX) \ + $(DIST)/lib/libxp.$(LIB_SUFFIX) \ + $(DIST)/lib/nspr.$(LIB_SUFFIX) + +CSS_TEST_LIBS = $(LIBRARY) \ + $(DIST)/lib/libxp.$(LIB_SUFFIX) +endif + +ifeq ($(OS_ARCH),OS2) +$(OBJDIR)/csstab.o: csstab.c + @$(MAKE_OBJDIR) + $(CC) -Fo$@ -Sa -c $(CFLAGS) $< +endif + +ifdef ENABLE_TESTS +test: + $(CC) -g -o $(OBJDIR)/style_test $(CFLAGS) -DSS_TEST stystruc.c $(TEST_LIBS) + $(CC) -g -o $(OBJDIR)/stack_test $(CFLAGS) -DTEST_STYLESTACK stystack.c $(TEST_LIBS) + +css_test: + rm -f $(OBJDIR)/css_test + $(CC) -g -o $(OBJDIR)/css_test $(CFLAGS) -DTEST_CSS_TRANSLATION csstojs.c $(CSS_TEST_LIBS) +endif diff --git a/mozilla/lib/mariner/Makefile.in b/mozilla/lib/mariner/Makefile.in new file mode 100644 index 00000000000..5ea65b18774 --- /dev/null +++ b/mozilla/lib/mariner/Makefile.in @@ -0,0 +1,29 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = public src + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/lib/mariner/public/Makefile.in b/mozilla/lib/mariner/public/Makefile.in new file mode 100644 index 00000000000..068c7e5abbf --- /dev/null +++ b/mozilla/lib/mariner/public/Makefile.in @@ -0,0 +1,32 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = mariner + +EXPORTS = xpform.h xploele.h xptabnav.h +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/lib/mariner/src/Makefile.in b/mozilla/lib/mariner/src/Makefile.in new file mode 100644 index 00000000000..a3fb7c9d624 --- /dev/null +++ b/mozilla/lib/mariner/src/Makefile.in @@ -0,0 +1,38 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = mariner +LIBRARY_NAME = mariner + +CSRCS = xpform.c + +# These aren't used yet. +# xploele.c +# xptabnav.c + +REQUIRES = mariner nspr util img js layer lay style + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/lib/xlate/Makefile.in b/mozilla/lib/xlate/Makefile.in new file mode 100644 index 00000000000..49a767d59c1 --- /dev/null +++ b/mozilla/lib/xlate/Makefile.in @@ -0,0 +1,39 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = xlate +LIBRARY_NAME = xlate + +CSRCS = font_metrics.c \ + print.c \ + ps.c \ + stubs.c \ + tblprint.c \ + text.c \ + xlateimg.c \ + $(NULL) + +REQUIRES = nspr dbm img util layer js pref java jtools applet + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/lib/xp/Makefile.in b/mozilla/lib/xp/Makefile.in new file mode 100644 index 00000000000..99ae170f025 --- /dev/null +++ b/mozilla/lib/xp/Makefile.in @@ -0,0 +1,108 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +MODULE = xp +LIBRARY_NAME = xp + +ifndef MODULAR_NETLIB +CSRCS = \ + xp_alloc.c \ + xp_cntxt.c \ + xp_core.c \ + xp_error.c \ + xp_intl.c \ + xp_ncent.c \ + xp_rgb.c \ + xp_qsort.c \ + xp_str.c \ + xp_thrmo.c \ + xp_time.c \ + xp_trace.c \ + xp_wrap.c \ + xpassert.c \ + xplocale.c \ + $(NULL) +else +CSRCS = xp_stub.c +endif + +CSRCS += \ + xp_file.c \ + xp_list.c \ + xp_hash.c \ + allxpstr.c \ + $(NULL) + +REQUIRES = js nspr dbm security img util jtools layer java lay style pref rdf privacy + +ifeq ($(STAND_ALONE_JAVA),1) +CSRCS = xp_qsort.c +endif + +ifeq ($(MOZ_MAIL_NEWS),1) +CSRCS += xp_md5.c +endif + +include $(topsrcdir)/config/rules.mk + +EMACS = lemacs + +AUDIO_FILES = $(wildcard $(srcdir)/*.au) +GIF_FILES = $(wildcard $(srcdir)/*.gif) +JPEG_FILES = $(wildcard $(srcdir)/*.jpg) + +GEN_OUT = $(AUDIO_FILES:.au=.h) $(GIF_FILES:.gif=.h) $(JPEG_FILES:.jpg=.h) + +# +# Uncomment these to (re)generate the headers. +# +#GARBAGE += $(GEN_OUT) $(wildcard *~) +# +#all:: $(GEN_OUT) + +$(LIBRARY): $(OBJS) + +# +# Generate c header's for various binary files +# +.SUFFIXES: .au .gif .jpg + +.au.h: + @echo generating $*.h from $<...; \ + CNAME=`echo $*_au`; \ + $(EMACS) -batch -q -l bin-to-c.el -f batch-bin-to-c $$CNAME $< $*.h + +.gif.h: + @echo generating $*.h from $<...; \ + CNAME=`echo $*_gif`; \ + $(EMACS) -batch -q -l bin-to-c.el -f batch-bin-to-c $$CNAME $< $*.h + +.jpg.h: + @echo generating $*.h from $<...; \ + CNAME=`echo $*_jpg`; \ + $(EMACS) -batch -q -l bin-to-c.el -f batch-bin-to-c $$CNAME $< $*.h diff --git a/mozilla/lib/xp/xp_qsort.c b/mozilla/lib/xp/xp_qsort.c index 42177dd5c4e..cbe27c40955 100644 --- a/mozilla/lib/xp/xp_qsort.c +++ b/mozilla/lib/xp/xp_qsort.c @@ -36,14 +36,14 @@ /* We need this because Solaris' version of qsort is broken and * causes array bounds reads. */ -#if defined(SOLARIS) || defined(XP_MAC) +#if !defined(HAVE_QSORT) || defined(BROKEN_QSORT) #if defined(LIBC_SCCS) && !defined(lint) #if 0 static char sccsid[] = "@(#)qsort.c 8.1 (Berkeley) 6/4/93"; #endif static const char rcsid[] = - "$Id: xp_qsort.c,v 3.2 1998-04-07 23:30:24 slamm Exp $"; + "$Id: xp_qsort.c,v 3.3 1998-08-19 20:38:57 cls%seawood.org Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -192,4 +192,4 @@ loop: SWAPINIT(a, es); } /* qsort(pn - r, r / es, es, cmp);*/ } -#endif /* SOLARIS or XP_MAC */ +#endif /* !HAVE_QSORT || BROKEN_QSORT */ diff --git a/mozilla/modules/calendar/Makefile.in b/mozilla/modules/calendar/Makefile.in new file mode 100644 index 00000000000..179407f3a86 --- /dev/null +++ b/mozilla/modules/calendar/Makefile.in @@ -0,0 +1,30 @@ +#! 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 = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +DIRS = src +MODULE = calendar +CSRCS = julmain.c + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/calendar/src/Makefile.in b/mozilla/modules/calendar/src/Makefile.in new file mode 100644 index 00000000000..bbd1108b04b --- /dev/null +++ b/mozilla/modules/calendar/src/Makefile.in @@ -0,0 +1,28 @@ +#! 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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +DIRS = libcal + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/calendar/src/libcal/Makefile.in b/mozilla/modules/calendar/src/libcal/Makefile.in new file mode 100644 index 00000000000..9a9c9b0ddf2 --- /dev/null +++ b/mozilla/modules/calendar/src/libcal/Makefile.in @@ -0,0 +1,123 @@ +#! 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. + +MODULE = calendar + +LIBRARY_NAME = cal + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +EXPORTS = \ + htmlform/include/julianform.h \ + util/jdefines.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +CSRCS = \ + htmlform/src/julianform.c \ + $(NULL) + +CPPSRCS = \ + htmlform/src/form.cpp \ + htmlform/src/formFactory.cpp \ + ical/attendee.cpp \ + ical/bprprty.cpp \ + ical/bydmgntr.cpp \ + ical/bydwgntr.cpp \ + ical/bydygntr.cpp \ + ical/byhgntr.cpp \ + ical/bymdgntr.cpp \ + ical/bymgntr.cpp \ + ical/bymogntr.cpp \ + ical/bywngntr.cpp \ + ical/byydgntr.cpp \ + ical/capiredr.cpp \ + ical/dategntr.cpp \ + ical/datetime.cpp \ + ical/deftgntr.cpp \ + ical/dprprty.cpp \ + ical/duprprty.cpp \ + ical/duration.cpp \ + ical/freebusy.cpp \ + ical/icalcomp.cpp \ + ical/icalfrdr.cpp \ + ical/icalprm.cpp \ + ical/icalredr.cpp \ + ical/icalsrdr.cpp \ + ical/icompfy.cpp \ + ical/iprprty.cpp \ + ical/jparser.cpp \ + ical/jutility.cpp \ + ical/keyword.cpp \ + ical/nscal.cpp \ + ical/orgnzr.cpp \ + ical/period.cpp \ + ical/pprprty.cpp \ + ical/prprty.cpp \ + ical/prprtyfy.cpp \ + ical/rcrrence.cpp \ + ical/recid.cpp \ + ical/rrday.cpp \ + ical/sdprprty.cpp \ + ical/sprpty.cpp \ + ical/tmbevent.cpp \ + ical/tzpart.cpp \ + ical/unistrto.cpp \ + ical/uri.cpp \ + ical/vevent.cpp \ + ical/vfrbsy.cpp \ + ical/vjournal.cpp \ + ical/vtimezne.cpp \ + ical/vtodo.cpp \ + util/jatom.cpp \ + util/jlog.cpp \ + util/julnstr.cpp \ + util/ptrarray.cpp \ + util/uidrgntr.cpp \ + itip/detxnobj.cpp \ + itip/getxnobj.cpp \ + itip/sttxnobj.cpp \ + itip/txnobj.cpp \ + itip/txnobjfy.cpp \ + itip/user.cpp \ + $(NULL) + +REQUIRES = calendar nspr nls libmime + +include $(topsrcdir)/config/rules.mk + +DEFINES += -DNLS_DEFINE_STANDARD_TYPES=1 -DNLSAPI_PUBLIC_CLASS +# +NSTOM_DEPTH = $(NS_DEPTH)/../mozilla +INCLUDES += -I$(srcdir)/ical -I$(srcdir)/itip -I$(srcdir)/ui -I$(srcdir)/util -I$(srcdir)/htmlform/include \ + -I$(NSTOM_DEPTH)/dist/public/util \ + -I$(NSTOM_DEPTH)/dist/public/img \ + -I$(NSTOM_DEPTH)/dist/public/layer \ + -I$(NSTOM_DEPTH)/libnls/headers/ + + + + + + + + + diff --git a/mozilla/modules/coreincl/Makefile.in b/mozilla/modules/coreincl/Makefile.in new file mode 100644 index 00000000000..fb8c66c7a14 --- /dev/null +++ b/mozilla/modules/coreincl/Makefile.in @@ -0,0 +1,30 @@ +#!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. + +# +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ +USE_AUTOCONF = 1 + +include $(srcdir)/manifest.mn + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/rules.mk + + diff --git a/mozilla/modules/edtplug/classes/Makefile.in b/mozilla/modules/edtplug/classes/Makefile.in new file mode 100644 index 00000000000..bb805a10432 --- /dev/null +++ b/mozilla/modules/edtplug/classes/Makefile.in @@ -0,0 +1,28 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +ifdef JAVA_OR_NSJVM +DIRS = netscape +endif + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/edtplug/classes/netscape/Makefile.in b/mozilla/modules/edtplug/classes/netscape/Makefile.in new file mode 100644 index 00000000000..b81a8d2bc23 --- /dev/null +++ b/mozilla/modules/edtplug/classes/netscape/Makefile.in @@ -0,0 +1,30 @@ +# +# 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 = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +DIRS = plugin + +ifdef ENABLE_TESTS +DIRS += test +endif + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/edtplug/classes/netscape/plugin/Makefile.in b/mozilla/modules/edtplug/classes/netscape/plugin/Makefile.in new file mode 100644 index 00000000000..fb05c00f70d --- /dev/null +++ b/mozilla/modules/edtplug/classes/netscape/plugin/Makefile.in @@ -0,0 +1,26 @@ +# +# 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 = ../../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +DIRS = composer + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/edtplug/classes/netscape/plugin/composer/Makefile.in b/mozilla/modules/edtplug/classes/netscape/plugin/composer/Makefile.in new file mode 100644 index 00000000000..632ad0182b7 --- /dev/null +++ b/mozilla/modules/edtplug/classes/netscape/plugin/composer/Makefile.in @@ -0,0 +1,40 @@ +# +# 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 = ../../../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +DIRS = io + +PACKAGE = netscape/plugin/composer + +JSRCS = Composer.java \ + ComposerDocument.java \ + Document.java \ + Factory.java \ + ImageEncoder.java \ + ImageEncoderFactory.java \ + MozillaCallback.java \ + Plugin.java \ + PluginManager.java \ + SortedStringTable.java \ + $(NULL) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/edtplug/classes/netscape/plugin/composer/io/Makefile.in b/mozilla/modules/edtplug/classes/netscape/plugin/composer/io/Makefile.in new file mode 100644 index 00000000000..d6ffeeac728 --- /dev/null +++ b/mozilla/modules/edtplug/classes/netscape/plugin/composer/io/Makefile.in @@ -0,0 +1,44 @@ +# +# 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 = ../../../../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +PACKAGE = netscape/plugin/composer/io + + +JSRCS = Comment.java \ + Entity.java \ + JavaScriptEntity.java \ + LexicalStream.java \ + SelectedHTMLReader.java \ + SlidingBuffer.java \ + Tag.java \ + Text.java \ + Token.java \ + $(NULL) + +# This file was removed due to a third-party license +# bug #110330 is a placeholder to put this file back +# into the product builds +#JSRCS += FooStringBuffer.java + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/edtplug/classes/netscape/test/Makefile.in b/mozilla/modules/edtplug/classes/netscape/test/Makefile.in new file mode 100644 index 00000000000..a2916d49ae4 --- /dev/null +++ b/mozilla/modules/edtplug/classes/netscape/test/Makefile.in @@ -0,0 +1,27 @@ +# +# 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 = ../../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = plugin + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/edtplug/classes/netscape/test/plugin/Makefile.in b/mozilla/modules/edtplug/classes/netscape/test/plugin/Makefile.in new file mode 100644 index 00000000000..6c737460a85 --- /dev/null +++ b/mozilla/modules/edtplug/classes/netscape/test/plugin/Makefile.in @@ -0,0 +1,27 @@ +# +# 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 = ../../../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = composer + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/edtplug/classes/netscape/test/plugin/composer/Makefile.in b/mozilla/modules/edtplug/classes/netscape/test/plugin/composer/Makefile.in new file mode 100644 index 00000000000..f5c769d367f --- /dev/null +++ b/mozilla/modules/edtplug/classes/netscape/test/plugin/composer/Makefile.in @@ -0,0 +1,27 @@ +# +# 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 = ../../../../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +JSRCS = Plugin1.java Plugin2.java Plugin3.java + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/edtplug/include/Makefile.in b/mozilla/modules/edtplug/include/Makefile.in new file mode 100644 index 00000000000..6e2740f9843 --- /dev/null +++ b/mozilla/modules/edtplug/include/Makefile.in @@ -0,0 +1,29 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = edtplug + +EXPORTS = $(srcdir)/edtplug.h + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/edtplug/src/Makefile.in b/mozilla/modules/edtplug/src/Makefile.in new file mode 100644 index 00000000000..eb47f19e958 --- /dev/null +++ b/mozilla/modules/edtplug/src/Makefile.in @@ -0,0 +1,54 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = edtplug +LIBRARY_NAME = edtplug + +REQUIRES = java nspr edtplug + +JRI_GEN = netscape.plugin.composer.PluginManager \ + netscape.plugin.composer.MozillaCallback \ + netscape.plugin.composer.Composer \ + $(NULL) + +CSRCS = edtplugStubs.c edt_nodl.c + +EXPORTS = $(JRI_GEN_DIR)/netscape_plugin_composer_Composer.h \ + $(JRI_GEN_DIR)/netscape_plugin_composer_PluginManager.h \ + $(JRI_GEN_DIR)/netscape_plugin_composer_MozillaCallback.h \ + $(NULL) + +include $(topsrcdir)/config/rules.mk + +# +# Generate edt_nodl.c (so that you can check it in) +# These make rules only works on IRIX...sigh +# +ifeq ($(OS_ARCH),IRIX) +edt_nodl.c: $(OBJDIR)/edtplugStubs.o Makefile $(DEPTH)/config/nodl.pl + @rm -f $@ + @$(PERL) $(DEPTH)/config/nodl.pl "edt_nodl_tab" \ + `nm -Bn $(OBJDIR)/edtplugStubs.o | egrep Java_.*_stub | awk '{print $$3;}'` > $@ + +endif diff --git a/mozilla/modules/libfont/Makefile.in b/mozilla/modules/libfont/Makefile.in new file mode 100644 index 00000000000..8f53c237af5 --- /dev/null +++ b/mozilla/modules/libfont/Makefile.in @@ -0,0 +1,42 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = classes public src producers + +include $(topsrcdir)/config/rules.mk + +# +# Update jmcgen. +# +# WARNING: make sure that the following directories are built: +# classes public src producers sdkstubs +update-jmcgen: + cp $(srcdir)/src/_jmc/*.c jmcgen/src/. + cp $(srcdir)/src/_jmc/*.h jmcgen/include/. + cp $(srcdir)/public/_jmc/*.c jmcgen/src/. + cp $(srcdir)/public/_jmc/*.h jmcgen/include/. + cp $(srcdir)/sdkstubs/_jmc/*.c jmcgen/src/. + cp $(srcdir)/sdkstubs/_jmc/*.h jmcgen/include/. diff --git a/mozilla/modules/libfont/classes/Makefile.in b/mozilla/modules/libfont/classes/Makefile.in new file mode 100644 index 00000000000..826080cd3d3 --- /dev/null +++ b/mozilla/modules/libfont/classes/Makefile.in @@ -0,0 +1,28 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +DIRS = netscape + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libfont/classes/netscape/Makefile.in b/mozilla/modules/libfont/classes/netscape/Makefile.in new file mode 100644 index 00000000000..44471638caa --- /dev/null +++ b/mozilla/modules/libfont/classes/netscape/Makefile.in @@ -0,0 +1,28 @@ +#!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 = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +DIRS = fonts + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libfont/classes/netscape/fonts/Makefile.in b/mozilla/modules/libfont/classes/netscape/fonts/Makefile.in new file mode 100644 index 00000000000..ec89188ab18 --- /dev/null +++ b/mozilla/modules/libfont/classes/netscape/fonts/Makefile.in @@ -0,0 +1,79 @@ +#!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 = ../../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +PACKAGE = netscape/fonts + +JMC_EXPORT = nfdoer \ + nff \ + nffbc \ + nffbp \ + nffbu \ + nffmi \ + nffp \ + nfrc \ + nfrf \ + nfstrm \ + nfdlm \ + cdoer \ + cf \ + cfb \ + cfmi \ + crc \ + cfp \ + crf \ + cstrm \ + cdlm \ + $(NULL) + +JSRCS = BoundingBoxStar.java \ + MWCntxStar.java \ + MWContextStar.java \ + PlatformRCData.java \ + PlatformRCDataStar.java \ + cdlm.java \ + cdoer.java \ + cf.java \ + cfb.java \ + cfmi.java \ + cfp.java \ + crc.java \ + crf.java \ + cstrm.java \ + nfFontObserverCallback.java \ + nfdlm.java \ + nfdoer.java \ + nff.java \ + nffbc.java \ + nffbp.java \ + nffbu.java \ + nffmi.java \ + nffp.java \ + nfrc.java \ + nfrf.java \ + nfstrm.java \ + $(NULL) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libfont/producers/Makefile.in b/mozilla/modules/libfont/producers/Makefile.in new file mode 100644 index 00000000000..8f1909d2bc9 --- /dev/null +++ b/mozilla/modules/libfont/producers/Makefile.in @@ -0,0 +1,28 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +DIRS = + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libfont/public/Makefile.in b/mozilla/modules/libfont/public/Makefile.in new file mode 100644 index 00000000000..bc96aa1f9b8 --- /dev/null +++ b/mozilla/modules/libfont/public/Makefile.in @@ -0,0 +1,59 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +include $(topsrcdir)/config/config.mk + +ifndef JAVA_OR_NSJVM +LOCAL_JMC_SUBDIR = $(srcdir)/../jmcgen/include +endif + + +MODULE = libfont + +JMC_GEN = Mnfdoer \ + Mnff \ + Mnffbc \ + Mnffbp \ + Mnffbu \ + Mnffmi \ + Mnffp \ + Mnfrc \ + Mnfrf \ + Mnfstrm \ + Mnfdlm \ + $(NULL) + +EXPORTS = $(JMC_GEN_DIR)/Mnfdoer.h \ + $(JMC_GEN_DIR)/Mnff.h \ + $(JMC_GEN_DIR)/Mnffbc.h \ + $(JMC_GEN_DIR)/Mnffbp.h \ + $(JMC_GEN_DIR)/Mnffbu.h \ + $(JMC_GEN_DIR)/Mnffmi.h \ + $(JMC_GEN_DIR)/Mnffp.h \ + $(JMC_GEN_DIR)/Mnfrc.h \ + $(JMC_GEN_DIR)/Mnfrf.h \ + $(JMC_GEN_DIR)/Mnfstrm.h \ + $(JMC_GEN_DIR)/Mnfdlm.h \ + $(NULL) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libfont/src/Makefile.in b/mozilla/modules/libfont/src/Makefile.in new file mode 100644 index 00000000000..f72a057631d --- /dev/null +++ b/mozilla/modules/libfont/src/Makefile.in @@ -0,0 +1,112 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +include $(topsrcdir)/config/config.mk + +ifndef JAVA_OR_NSJVM +LOCAL_JMC_SUBDIR = $(srcdir)/../jmcgen/include +LOCAL_JMC_SRC_SUBDIR = $(srcdir)/../jmcgen/src +endif + +MODULE = libfont +LIBRARY_NAME = font + +CSRCS = libfont.c + +CPPSRCS = cdoer.cpp \ + cf.cpp \ + cfmi.cpp \ + cfb.cpp \ + crc.cpp \ + f.cpp \ + fmi.cpp \ + fb.cpp \ + rc.cpp \ + wfSzList.cpp \ + wffpPeer.cpp \ + wffpCat.cpp \ + wfFCache.cpp \ + wfList.cpp \ + wfMime.cpp \ + wfStream.cpp \ + wfMisc.cpp \ + wfDlm.cpp \ + $(NULL) + +EXPORTS = nf.h coremem.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +REQUIRES = libfont java jtools dbm nspr img layer util pref js htmldlgs security + +JMC_GEN = Mcf Mcfb Mcfmi Mcrc Mcdoer +JMC_GEN_FLAGS = -cimpl + +include $(topsrcdir)/config/rules.mk + +INCLUDES += -I$(srcdir) + +SDK_TARGET = producer-sdk +SDK_NAME = FontProducer-sdk-v1.0 +SDK_DIR = $(OBJDIR)/$(SDK_TARGET) + +ifndef JAVA_OR_NSJVM +export:: + @echo "Copying JMC src files from $(LOCAL_JMC_SRC_SUBDIR)/*.c to cwd" + @for FILE in $(LOCAL_JMC_SRC_SUBDIR)/*.c ;\ + do \ + $(NSINSTALL) -t $${FILE} . ;\ + done +endif + +ifneq ($(OS_ARCH),OS2) +export:: + @echo "Fixing jmc generated header file : $(JMC_GEN_DIR)/Mcfb.h" + @ls -l $(JMC_GEN_DIR)/Mcfb.h + @if fgrep cfbImpl2Object\( $(JMC_GEN_DIR)/Mcfb.h ;\ + then \ + echo "/cfbImpl2Object(\n.s/cfbImpl2Object(/cfbImpl2Object_1(/\n1\n/Object2cfbImpl(\n.s/Object2cfbImpl(/Object2cfbImpl_1(/\nw\nq\n" | (ed $(JMC_GEN_DIR)/Mcfb.h; echo) ;\ + echo "/cfbImpl2Object(\n.s/cfbImpl2Object(/cfbImpl2Object_2(/\n1\n/Object2cfbImpl(\n.s/Object2cfbImpl(/Object2cfbImpl_2(/\nw\nq\n" | (ed $(JMC_GEN_DIR)/Mcfb.h; echo) ;\ + echo "Fixed : $(JMC_GEN_DIR)/Mcfb.h" ;\ + else \ + echo "No fix required. Skipping..." ;\ + fi +endif + +$(SDK_TARGET):: $(PRODUCER_SDK_FILES) + echo "Generating producer sdk..." + $(NSINSTALL) -m 0444 $(PUBLIC)/libfont/* $(SDK_DIR)/$(SDK_NAME)/include + $(NSINSTALL) -m 0444 Pcfp.h $(JMC_GEN_DIR)/Mcfp.h $(SDK_DIR)/$(SDK_NAME)/include + $(NSINSTALL) -m 0444 Pcrf.h $(JMC_GEN_DIR)/Mcrf.h $(SDK_DIR)/$(SDK_NAME)/include + $(NSINSTALL) -m 0444 $(DEPTH)/include/xp_mem.h $(SDK_DIR)/$(SDK_NAME)/include + $(NSINSTALL) -m 0444 $(DEPTH)/include/xp_core.h $(SDK_DIR)/$(SDK_NAME)/include + $(NSINSTALL) -m 0444 $(PUBLIC)/jtools/jmc.h $(SDK_DIR)/$(SDK_NAME)/include + $(NSINSTALL) -m 0444 $(PUBLIC)/java/jritypes.h $(SDK_DIR)/$(SDK_NAME)/include + $(NSINSTALL) -m 0444 $(PUBLIC)/java/jri_md.h $(SDK_DIR)/$(SDK_NAME)/include + $(NSINSTALL) -m 0444 $(PUBLIC)/java/jri.h $(SDK_DIR)/$(SDK_NAME)/include + $(NSINSTALL) -m 0444 $(PUBLIC)/nspr/prtypes.h $(SDK_DIR)/$(SDK_NAME)/include + $(NSINSTALL) -m 0444 $(PUBLIC)/nspr/prcpucfg.h $(SDK_DIR)/$(SDK_NAME)/include + $(NSINSTALL) -m 0664 cfp.c crf.c $(SDK_DIR)/$(SDK_NAME)/src + $(NSINSTALL) -m 0444 $(JMC_GEN_DIR)/Mcfp.c $(JMC_GEN_DIR)/Mcrf.c $(SDK_DIR)/$(SDK_NAME)/src + $(NSINSTALL) -m 0444 ../sdk/unix/makefile.sgi $(SDK_DIR)/$(SDK_NAME)/unix + (cd $(SDK_DIR); tar cvf - $(SDK_NAME)) | gzip -cf > $(OBJDIR)/$(SDK_NAME).tar.gz; rm -rf $(SDK_DIR) diff --git a/mozilla/modules/libhook/Makefile.in b/mozilla/modules/libhook/Makefile.in new file mode 100644 index 00000000000..06f2f503f18 --- /dev/null +++ b/mozilla/modules/libhook/Makefile.in @@ -0,0 +1,26 @@ +# +# 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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +DIRS = public src + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libhook/public/Makefile.in b/mozilla/modules/libhook/public/Makefile.in new file mode 100644 index 00000000000..649085ccf05 --- /dev/null +++ b/mozilla/modules/libhook/public/Makefile.in @@ -0,0 +1,31 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = hook + +EXPORTS = hk_types.h hk_funcs.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libhook/src/Makefile.in b/mozilla/modules/libhook/src/Makefile.in new file mode 100644 index 00000000000..23720722e05 --- /dev/null +++ b/mozilla/modules/libhook/src/Makefile.in @@ -0,0 +1,34 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = hook +LIBRARY_NAME = hook + +CSRCS = hk_conf.c hk_file.c hk_hook.c hk_init.c hk_tag.c + +REQUIRES = libxp util js img layer parse hook pref dbm nspr + +LOCAL_INCLUDES = -I$(srcdir) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libimg/Makefile.in b/mozilla/modules/libimg/Makefile.in new file mode 100644 index 00000000000..64a25d3225e --- /dev/null +++ b/mozilla/modules/libimg/Makefile.in @@ -0,0 +1,47 @@ +# +# 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 = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +ifdef STANDALONE_IMAGE_LIB +DIRS = png public src +EXTRA_LIBS = libzlib.a libpng.a +else +DIRS = classes public src + +EXTRA_LIBS = + +ifdef MOZ_NATIVE_PNG +EXTRA_LIBS += -lpng +else +DIRS += png +EXTRA_LIBS += libpng.a +endif + +ifdef MOZ_NATIVE_ZLIB +EXTRA_LIBS += -lz +else +EXTRA_LIBS += libzlib.a +endif +endif + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libimg/classes/Makefile.in b/mozilla/modules/libimg/classes/Makefile.in new file mode 100644 index 00000000000..71a417cd8fe --- /dev/null +++ b/mozilla/modules/libimg/classes/Makefile.in @@ -0,0 +1,26 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +DIRS = netscape + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libimg/classes/netscape/Makefile.in b/mozilla/modules/libimg/classes/netscape/Makefile.in new file mode 100644 index 00000000000..c15c838d81d --- /dev/null +++ b/mozilla/modules/libimg/classes/netscape/Makefile.in @@ -0,0 +1,26 @@ +# +# 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 = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +DIRS = libimg + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libimg/classes/netscape/libimg/Makefile.in b/mozilla/modules/libimg/classes/netscape/libimg/Makefile.in new file mode 100644 index 00000000000..9610dcd042c --- /dev/null +++ b/mozilla/modules/libimg/classes/netscape/libimg/Makefile.in @@ -0,0 +1,40 @@ +# +# 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 = ../../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +PACKAGE = netscape/libimg + +JSRCS = ILPixCtl.java \ + ILPix_t.java \ + IMGCBIF.java \ + IMGCB.java \ + PSIMGCB.java \ + char_t.java \ + int_t.java \ + $(NULL) + +JMC_EXPORT = IMGCBIF IMGCB PSIMGCB + +JAVA_SOURCEPATH = $(DEPTH)/modules/libimg/classes + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libimg/png/Makefile.in b/mozilla/modules/libimg/png/Makefile.in new file mode 100644 index 00000000000..fc2425fd0ab --- /dev/null +++ b/mozilla/modules/libimg/png/Makefile.in @@ -0,0 +1,49 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = png +LIBRARY_NAME = png + +CSRCS = png.c \ + pngerror.c \ + pngget.c \ + pngmem.c \ + pngpread.c \ + pngread.c \ + pngrio.c \ + pngrutil.c \ + pngset.c \ + pngtrans.c \ + pngwio.c \ + pngwrite.c \ + pngwtran.c \ + pngrtran.c \ + pngwutil.c \ + $(NULL) + +REQUIRES = util nspr zlib + +LOCAL_INCLUDES = -I$(srcdir) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libimg/public/Makefile.in b/mozilla/modules/libimg/public/Makefile.in new file mode 100644 index 00000000000..824654ca78a --- /dev/null +++ b/mozilla/modules/libimg/public/Makefile.in @@ -0,0 +1,61 @@ +# +# 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. +# + +ifndef MOZ_JAVA +LOCAL_JMC_SUBDIR = . +endif + + +DEPTH = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = img + +ifndef STANDALONE_IMAGE_LIB +JMC_GEN = MIMGCBIF MIMGCB MPSIMGCB +JMC_GEN_FLAGS = -cimpl -noexc -interface +endif + +ifdef STANDALONE_IMAGE_LIB +EXPORTS = il_types.h ni_pixmp.h libimg.h il_icons.h il_strm.h il_util.h \ + ilINetContext.h ilIURL.h ilINetReader.h ilIImageRenderer.h \ + ilISystemServices.h dummy_nc.h +else +EXPORTS = il_types.h \ + ni_pixmp.h \ + libimg.h \ + il_icons.h \ + il_strm.h \ + il_util.h \ + ilIImageRenderer.h \ + ilINetContext.h \ + ilINetReader.h \ + ilIURL.h \ + dummy_nc.h \ + $(JMC_GEN_DIR)/MIMGCBIF.h \ + $(JMC_GEN_DIR)/MIMGCB.h \ + $(JMC_GEN_DIR)/MPSIMGCB.h \ + $(NULL) +endif + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libimg/src/Makefile.in b/mozilla/modules/libimg/src/Makefile.in new file mode 100644 index 00000000000..9e6fd8ca2c9 --- /dev/null +++ b/mozilla/modules/libimg/src/Makefile.in @@ -0,0 +1,121 @@ +# +# 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. +# +ifndef MOZ_JAVA +LOCAL_JMC_SUBDIR = . +endif + +DEPTH = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = img +LIBRARY_NAME = img + +ifdef STANDALONE_IMAGE_LIB + +CPPSRCS = ilNetReader.cpp \ + xpcompat.cpp \ + color.cpp \ + colormap.cpp \ + dither.cpp \ + gif.cpp \ + if.cpp \ + ilclient.cpp \ + il_util.cpp \ + jpeg.cpp \ + scale.cpp \ + xbm.cpp \ + ipng.cpp \ + png_png.cpp \ + $(NULL) + +EXPORTS = PIMGCB.h PPSIMGCB.h + +REQUIRES = zlib nspr jpeg util img png xpcom + +LOCAL_INCLUDES = -I../png -I. -I$(DEPTH)/dist/public/zlib + +EXTRA_LIBS = $(DIST)/lib/libzlib.a $(DIST)/lib/libpng.a $(DIST)/lib/libnspr21.a $(dist)/lib/libjpeg.a $(DIST)/lib/libplc21.a $(DIST)/lib/libutil.a + +symbols:: + @echo "LIBRARY_NAME is $(LIBRARY_NAME)" + @echo "LIBRARY is $(LIBRARY)" + @echo "DIST is $(DIST)" + +else +CPPSRCS = color.cpp \ + colormap.cpp \ + dither.cpp \ + dummy_nc.cpp \ + external.cpp \ + gif.cpp \ + if.cpp \ + ilclient.cpp \ + il_util.cpp \ + jpeg.cpp \ + scale.cpp \ + xbm.cpp \ + ipng.cpp \ + png_png.cpp \ + ilNetReader.cpp \ + $(NULL) + +EXPORTS = PIMGCB.h PPSIMGCB.h + +REQUIRES = jtools java nspr dbm util img layer js xpcom + +LOCAL_INCLUDES = -I$(srcdir)/../png -I$(srcdir)/. + +EXTRA_LIBS = + +ifndef MOZ_NATIVE_JPEG +REQUIRES += jpeg +endif + +ifndef MOZ_NATIVE_ZLIB +REQUIRES += zlib +LOCAL_INCLUDES += -I$(DEPTH)/dist/public/zlib +EXTRA_LIBS += $(DIST)/lib/libzlib.a +endif + +ifndef MOZ_NATIVE_PNG +REQUIRES += png +EXTRA_LIBS += $(DIST)/lib/libpng.a +endif + +# +# Generate MIMGCB.c (and similar sources) here. +# MIMGCB.h is generated in ../public/_jmc/ +# +JMC_GEN = MIMGCB MPSIMGCB +JMC_GEN_FLAGS = -cimpl -noexc -module +endif + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk + +# +# This is about as far from the right way of doing things as you can get. +# HACK larubbio fix me +# +ifdef STANDALONE_IMAGE_LIB +CC = $(CCC) +endif diff --git a/mozilla/modules/libpref/Makefile.in b/mozilla/modules/libpref/Makefile.in new file mode 100644 index 00000000000..bd9f3d84d57 --- /dev/null +++ b/mozilla/modules/libpref/Makefile.in @@ -0,0 +1,26 @@ +# +# 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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +DIRS = public admin src + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libpref/admin/Makefile.in b/mozilla/modules/libpref/admin/Makefile.in new file mode 100644 index 00000000000..a28ab540f1a --- /dev/null +++ b/mozilla/modules/libpref/admin/Makefile.in @@ -0,0 +1,55 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +ifdef POLARIS +SHARED_LIBRARY = $(OBJDIR)/libAutoAdmin.so +endif + +FEDIR = $(DEPTH)/cmd/xfe + +CSRCS = prefldap.c icondata.c + +REQUIRES = nspr dbm ldap js pref + +include $(topsrcdir)/config/rules.mk + +INCLUDES += -I$(topsrcdir)/cmd/xfe/icons -I$(FEDIR)/icons/$(OBJDIR) +DEFINES += -DPOLARIS +GARBAGE += icondata.c + +ifeq ($(OS_ARCH),AIX) +MKSHLIB = svld -berok $(DSO_LDOPTS) +endif + +ifeq ($(OS_ARCH),OSF1) +MKSHLIB = $(LD) $(DSO_LDOPTS) +endif + +polaris: $(SHARED_LIBRARY) + $(INSTALL) -m 555 $(SHARED_LIBRARY) $(DIST)/bin + +icondata.c: + @rm -f icondata.c $(NOSUCHFILE) + @cd $(FEDIR)/icons; $(MAKE) + @ln -s $(FEDIR)/icons/$(OBJDIR)/icondata.c $@ diff --git a/mozilla/modules/libpref/l10n/Makefile.in b/mozilla/modules/libpref/l10n/Makefile.in new file mode 100644 index 00000000000..ec191c51406 --- /dev/null +++ b/mozilla/modules/libpref/l10n/Makefile.in @@ -0,0 +1,40 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +REQUIRES = security nspr + +include $(topsrcdir)/config/rules.mk + +LIBS = -L$(DIST)/lib -lhash + +all:: other-stuff $(OBJDIR)/resources $(OBJDIR)/un-obscure + +other-stuff: + cd $(DEPTH)/config; $(MAKE) + cd $(DEPTH)/nspr/include; $(MAKE) + cd $(DEPTH)/security/lib/util; $(MAKE) export + cd $(DEPTH)/security/lib/hash; $(MAKE) + +$(OBJDIR)/resources: $(OBJDIR)/resources.o + $(CC) -o $@ $< $(LIBS) diff --git a/mozilla/modules/libpref/public/Makefile.in b/mozilla/modules/libpref/public/Makefile.in new file mode 100644 index 00000000000..612505725b7 --- /dev/null +++ b/mozilla/modules/libpref/public/Makefile.in @@ -0,0 +1,31 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = pref + +EXPORTS= prefapi.h prefldap.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libpref/src/Makefile.in b/mozilla/modules/libpref/src/Makefile.in new file mode 100644 index 00000000000..3bdf70b534a --- /dev/null +++ b/mozilla/modules/libpref/src/Makefile.in @@ -0,0 +1,103 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = pref +LIBRARY_NAME = pref + +REQUIRES = libxp js pref nspr dbm security ldap java img layer util + +ifneq ($(subst /,_,$(shell uname -s)),OS2) +CSRCS = unix/unixpref.c +else +CSRCS = prefldap.c +LIBRARY = xppref32.$(LIB_SUFFIX) +EXPORTS = initpref.js init/all.js init/config.js win/winpref.js os2/os2pref.js +OS2_IMPLIB = 1 +DEF_FILE = xpOS2.def +EXTRA_LIBS = $(DIST)/lib/js$(MOZ_BITS)$(VERSION_NUMBER).lib \ + $(LIBNSPR) \ + $(DIST)/lib/libldap.lib $(DIST)/lib/liblber.lib \ + $(DIST)/lib/libldap.lib $(DIST)/lib/libhash.lib \ + $(NULL) +endif + +CSRCS += prefapi.c + +include $(topsrcdir)/config/rules.mk + +INCLUDES += -I$(topsrcdir)/cmd/xfe/icons -I$(srcdir)/unix -I./unix + +GARBAGE += unix/jsbuffer.h + +CONFIG_FILES = initpref.js \ + init/all.js \ + $(NULL) + +ifdef MOZ_MAIL_NEWS +CONFIG_FILES += \ + init/mailnews.js \ + $(NULL) +endif + +ifdef MOZ_SECURITY +CONFIG_FILES += \ + init/security.js \ + $(NULL) +endif + +ifdef EDITOR +CONFIG_FILES += \ + init/editor.js \ + $(NULL) +endif + +ifndef MOZ_MAIL_NEWS +CONFIG_FILES += \ + init/configr.js \ + $(NULL) +else +CONFIG_FILES += \ + init/config.js \ + $(NULL) +endif + +CONFIG_FILES += \ + unix/unix.js \ + $(NULL) + +CONFIG_FILES := $(addprefix $(srcdir)/, $(CONFIG_FILES)) + +$(LIBRARY): $(OBJS) + +unix/unixpref.c: unix/jsbuffer.h + @if test ! -d unix; then rm -f unix && mkdir unix; fi + @if test ! -f $@; then $(INSTALL) $(srcdir)/unix/unixpref.c unix/; fi + +unix/jsbuffer.h: Makefile $(CONFIG_FILES) + @if test ! -d unix; then rm -f unix && mkdir unix; fi + @echo "/* This is an automatically generated file */" > $@ + @echo >> $@ + @echo "static char* pref_init_buffer = " >> $@ + @cat $(CONFIG_FILES) | sed 's/\\/\\\\/g' | sed 's/\\r/\\n/' | sed 's/\"/\\\"/g' | sed 's/^M//g' | sed 's/^/"/' | sed 's/$$/\\n"/' >> $@ + @echo \; >> $@ diff --git a/mozilla/modules/libreg/Makefile.in b/mozilla/modules/libreg/Makefile.in new file mode 100644 index 00000000000..bea2fa98c2b --- /dev/null +++ b/mozilla/modules/libreg/Makefile.in @@ -0,0 +1,28 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = include src + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libreg/include/Makefile.in b/mozilla/modules/libreg/include/Makefile.in new file mode 100644 index 00000000000..ddbdfcb9ea0 --- /dev/null +++ b/mozilla/modules/libreg/include/Makefile.in @@ -0,0 +1,30 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = libreg + +EXPORTS = VerReg.h NSReg.h +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libreg/src/Makefile.in b/mozilla/modules/libreg/src/Makefile.in new file mode 100644 index 00000000000..33a17b96120 --- /dev/null +++ b/mozilla/modules/libreg/src/Makefile.in @@ -0,0 +1,82 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = libreg +LIBRARY_NAME = reg + +REQUIRES = libreg nspr pref js + +CSRCS = reg.c VerReg.c vr_stubs.c + +BIN_SRCS = VerReg.c reg.c vr_stubs.c +BIN_OBJS = $(addprefix $(OBJDIR)/R_,$(BIN_SRCS:.c=.o)) + +include $(topsrcdir)/config/rules.mk + +# Override gtscc when building vreg on IRIX 5.3. +ifeq ($(OS_ARCH)$(OS_RELEASE),IRIX5) +CC = cc +endif + +INCLUDES += -I$(topsrcdir)/include +GARBAGE += $(PROGRAM) + +PROGRAM = $(OBJDIR)/vreg$(BIN_SUFFIX) + +$(PROGRAM): $(BIN_OBJS) + @$(MAKE_OBJDIR) +ifeq ($(OS_ARCH), OS2) + $(LINK_EXE) -OUT:$@ $(BIN_OBJS) $(LDFLAGS) $(OS_LIBS) +else + $(CCF) -o $@ $(BIN_OBJS) $(LDFLAGS) +endif + +$(OBJDIR)/R_VerReg.o: VerReg.c + @$(MAKE_OBJDIR) +ifeq ($(OS_ARCH), OS2) + $(CC) -Fo$@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $< +else + $(CC) -o $@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $< +endif + +$(OBJDIR)/R_reg.o: reg.c + @$(MAKE_OBJDIR) +ifeq ($(OS_ARCH), OS2) + $(CC) -Fo$@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $< +else + $(CC) -o $@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $< +endif + +$(OBJDIR)/R_vr_stubs.o: vr_stubs.c + @$(MAKE_OBJDIR) +ifeq ($(OS_ARCH), OS2) + $(CC) -Fo$@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $< +else + $(CC) -o $@ -c $(CFLAGS) -DSTANDALONE_REGISTRY $< +endif + +$(BIN_OBJS): $(BIN_SRCS) + +install:: $(PROGRAM) + $(INSTALL) -m 444 $(PROGRAM) $(DIST)/bin diff --git a/mozilla/modules/libutil/Makefile.in b/mozilla/modules/libutil/Makefile.in new file mode 100644 index 00000000000..66729f99b61 --- /dev/null +++ b/mozilla/modules/libutil/Makefile.in @@ -0,0 +1,27 @@ +# +# 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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = public src + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libutil/public/Makefile.in b/mozilla/modules/libutil/public/Makefile.in new file mode 100644 index 00000000000..acc65335ac5 --- /dev/null +++ b/mozilla/modules/libutil/public/Makefile.in @@ -0,0 +1,29 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = util + +EXPORTS = $(srcdir)/xp_obs.h + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/libutil/src/Makefile.in b/mozilla/modules/libutil/src/Makefile.in new file mode 100644 index 00000000000..7321f4702ae --- /dev/null +++ b/mozilla/modules/libutil/src/Makefile.in @@ -0,0 +1,34 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = util +LIBRARY_NAME = util + +CSRCS = obs.c + +REQUIRES = nspr util + +include $(topsrcdir)/config/rules.mk + +INCLUDES += -I$(DIST)/include/libutil diff --git a/mozilla/modules/oji/Makefile.in b/mozilla/modules/oji/Makefile.in new file mode 100644 index 00000000000..dc3b1c5852c --- /dev/null +++ b/mozilla/modules/oji/Makefile.in @@ -0,0 +1,36 @@ +#//------------------------------------------------------------------------ +#// +#// Makefile to build the MODULES/OJI tree +#// +#//------------------------------------------------------------------------ + +#//------------------------------------------------------------------------ +#// +#// Specify the depth of the current directory relative to the +#// root of NS +#// +#//------------------------------------------------------------------------ +DEPTH=../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +#//------------------------------------------------------------------------ +#// +#// Specify any "command" targets. (ie. DIRS, INSTALL_FILES, ...) +#// (these must come before the common makefiles are included) +#// +#// DIRS - There are subdirectories to process +#// +#//------------------------------------------------------------------------ +DIRS= public src + +#//------------------------------------------------------------------------ +#// +#// Include the common makefile rules +#// +#//------------------------------------------------------------------------ +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/modules/oji/public/Makefile.in b/mozilla/modules/oji/public/Makefile.in new file mode 100644 index 00000000000..f18cefefe0c --- /dev/null +++ b/mozilla/modules/oji/public/Makefile.in @@ -0,0 +1,40 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = oji + +EXPORTS = \ + nsjvm.h \ + nsIJRIPlugin.h \ + nsIJVMConsole.h \ + nsIJVMManager.h \ + nsIJVMPlugin.h \ + nsIJVMPluginInstance.h \ + nsIJVMPluginTagInfo.h \ + nsISymantecDebugManager.h \ + nsISymantecDebugger.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/oji/src/Makefile.in b/mozilla/modules/oji/src/Makefile.in new file mode 100644 index 00000000000..ccf43af780b --- /dev/null +++ b/mozilla/modules/oji/src/Makefile.in @@ -0,0 +1,32 @@ +#//------------------------------------------------------------------------ +#// +#// Makefile to build OJI +#// +#//------------------------------------------------------------------------ + +DEPTH = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +MODULE = ojiimpl + +ifdef MOZ_OJI +LIBRARY_NAME = oji + +CPPSRCS = jvmmgr.cpp \ + scd.cpp + +REQUIRES = img java js lay layer plugin plugimpl pref style util xpcom raptor oji +endif # MOZ_OJI + +EXPORTS = jvmmgr.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/modules/plugin/Makefile.in b/mozilla/modules/plugin/Makefile.in new file mode 100644 index 00000000000..edde0582450 --- /dev/null +++ b/mozilla/modules/plugin/Makefile.in @@ -0,0 +1,40 @@ +#//------------------------------------------------------------------------ +#// +#// Makefile to build the MODULES/OJI tree +#// +#//------------------------------------------------------------------------ + +#//------------------------------------------------------------------------ +#// +#// Specify the depth of the current directory relative to the +#// root of NS +#// +#//------------------------------------------------------------------------ +DEPTH=../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +#//------------------------------------------------------------------------ +#// +#// Specify any "command" targets. (ie. DIRS, INSTALL_FILES, ...) +#// (these must come before the common makefiles are included) +#// +#// DIRS - There are subdirectories to process +#// +#//------------------------------------------------------------------------ +ifndef NGLAYOUT_PLUGINS +DIRS= public src +else +DIRS= public nglsrc +endif + +#//------------------------------------------------------------------------ +#// +#// Include the common makefile rules +#// +#//------------------------------------------------------------------------ +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/modules/plugin/base/public/Makefile.in b/mozilla/modules/plugin/base/public/Makefile.in new file mode 100644 index 00000000000..b4fece1b0fd --- /dev/null +++ b/mozilla/modules/plugin/base/public/Makefile.in @@ -0,0 +1,52 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = plugin + +EXPORTS = \ + nsIEventHandler.h \ + nsIFileUtilities.h \ + nsIJRILiveConnectPlugin.h \ + nsIJRILiveConnectPlugInstPeer.h \ + nsILiveConnectPlugin.h \ + nsILiveConnectPlugInstPeer.h \ + nsINetworkManager.h \ + nsIPlugin.h \ + nsIPluginInstance.h \ + nsIPluginInstancePeer.h \ + nsIPluginManager.h \ + nsIPluginManager2.h \ + nsIPluginStream.h \ + nsIPluginStreamPeer.h \ + nsIPluginStreamPeer2.h \ + nsIPluginTagInfo.h \ + nsIPluginTagInfo2.h \ + nsISeekablePluginStreamPeer.h \ + nsIWindowlessPlugInstPeer.h \ + nsplugin.h \ + nsplugindefs.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/plugin/base/src/Makefile.in b/mozilla/modules/plugin/base/src/Makefile.in new file mode 100644 index 00000000000..55eb29df4ed --- /dev/null +++ b/mozilla/modules/plugin/base/src/Makefile.in @@ -0,0 +1,55 @@ +#!nmake +# +# 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=../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +MODULE=raptor + +LIBRARY_NAME=raptorplugin + +EXPORTS = \ + nsPluginsCID.h \ + nsIPluginHost.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +CPPSRCS = \ + nsPluginHostImpl.cpp \ + nsPluginFactory.cpp \ + ns4xPlugin.cpp \ + ns4xPluginInstance.cpp \ + ns4xPluginStream.cpp \ + nsPluginInstancePeer.cpp \ + nsPluginStreamPeer.cpp \ + $(NULL) + +REQUIRES = raptor plugin java xpcom netlib + +LCFLAGS =-D_IMPL_NS_PLUGIN + +TARGETS = $(LIBRARY) + +INCLUDES += -I$(srcdir)/. + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/plugin/nglsrc/Makefile.in b/mozilla/modules/plugin/nglsrc/Makefile.in new file mode 100644 index 00000000000..55eb29df4ed --- /dev/null +++ b/mozilla/modules/plugin/nglsrc/Makefile.in @@ -0,0 +1,55 @@ +#!nmake +# +# 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=../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +MODULE=raptor + +LIBRARY_NAME=raptorplugin + +EXPORTS = \ + nsPluginsCID.h \ + nsIPluginHost.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +CPPSRCS = \ + nsPluginHostImpl.cpp \ + nsPluginFactory.cpp \ + ns4xPlugin.cpp \ + ns4xPluginInstance.cpp \ + ns4xPluginStream.cpp \ + nsPluginInstancePeer.cpp \ + nsPluginStreamPeer.cpp \ + $(NULL) + +REQUIRES = raptor plugin java xpcom netlib + +LCFLAGS =-D_IMPL_NS_PLUGIN + +TARGETS = $(LIBRARY) + +INCLUDES += -I$(srcdir)/. + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/plugin/public/Makefile.in b/mozilla/modules/plugin/public/Makefile.in new file mode 100644 index 00000000000..b4fece1b0fd --- /dev/null +++ b/mozilla/modules/plugin/public/Makefile.in @@ -0,0 +1,52 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = plugin + +EXPORTS = \ + nsIEventHandler.h \ + nsIFileUtilities.h \ + nsIJRILiveConnectPlugin.h \ + nsIJRILiveConnectPlugInstPeer.h \ + nsILiveConnectPlugin.h \ + nsILiveConnectPlugInstPeer.h \ + nsINetworkManager.h \ + nsIPlugin.h \ + nsIPluginInstance.h \ + nsIPluginInstancePeer.h \ + nsIPluginManager.h \ + nsIPluginManager2.h \ + nsIPluginStream.h \ + nsIPluginStreamPeer.h \ + nsIPluginStreamPeer2.h \ + nsIPluginTagInfo.h \ + nsIPluginTagInfo2.h \ + nsISeekablePluginStreamPeer.h \ + nsIWindowlessPlugInstPeer.h \ + nsplugin.h \ + nsplugindefs.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/plugin/samples/simple/Makefile.in b/mozilla/modules/plugin/samples/simple/Makefile.in new file mode 100644 index 00000000000..d026ca8da95 --- /dev/null +++ b/mozilla/modules/plugin/samples/simple/Makefile.in @@ -0,0 +1,45 @@ +# -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- +# +# 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. + +#! gmake + +MODULE = npsimple + +LIBRARY_NAME = npsimple + +DEPTH = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +REQUIRES = java plug xpcom + +CSRCS = stubs.c +CPPSRCS = npsimple.cpp bad.cpp + +JDIRS = . + +JRI_GEN = \ + Simple \ + java.lang.Object \ + netscape.plugin.Plugin \ + +CINCLUDES += $(PUBLIC)/plugin $(PUBLIC)/xpcom $(PUBLIC)/java + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/plugin/src/Makefile.in b/mozilla/modules/plugin/src/Makefile.in new file mode 100644 index 00000000000..b8f056eb9c6 --- /dev/null +++ b/mozilla/modules/plugin/src/Makefile.in @@ -0,0 +1,51 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = plugimpl +LIBRARY_NAME = plug + +CSRCS = npassoc.c + +CPPSRCS = nsplugin.cpp npglue.cpp + +EXPORTS = nppg.h npglue.h nppriv.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +REQUIRES = lay layer js style applet nspr dbm img util java pref xpcom raptor netcnvts plugin plugimpl oji ojiimpl + +ifeq ($(subst /,_,$(shell uname -s)),OS2) +CPPSRCS = npwplat.cpp +REQUIRES += xp libfont os2font jtools +endif + +include $(topsrcdir)/config/rules.mk + +ifeq ($(subst /,_,$(shell uname -s)),OS2) +INCLUDES += -I$(DEPTH)/cmd/os2fe/nfc/include -I$(DEPTH)/cmd/os2fe -I$(DEPTH)/cmd/winfe +endif + +INCLUDES += -I$(srcdir)/. + +$(LIBRARY): $(OBJS) diff --git a/mozilla/modules/plugin/test/Makefile.in b/mozilla/modules/plugin/test/Makefile.in new file mode 100644 index 00000000000..d026ca8da95 --- /dev/null +++ b/mozilla/modules/plugin/test/Makefile.in @@ -0,0 +1,45 @@ +# -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- +# +# 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. + +#! gmake + +MODULE = npsimple + +LIBRARY_NAME = npsimple + +DEPTH = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +REQUIRES = java plug xpcom + +CSRCS = stubs.c +CPPSRCS = npsimple.cpp bad.cpp + +JDIRS = . + +JRI_GEN = \ + Simple \ + java.lang.Object \ + netscape.plugin.Plugin \ + +CINCLUDES += $(PUBLIC)/plugin $(PUBLIC)/xpcom $(PUBLIC)/java + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/progress/public/Makefile.in b/mozilla/modules/progress/public/Makefile.in new file mode 100644 index 00000000000..f641f7dc68f --- /dev/null +++ b/mozilla/modules/progress/public/Makefile.in @@ -0,0 +1,29 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = progress + +EXPORTS = $(srcdir)/pw_public.h + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/progress/src/Makefile.in b/mozilla/modules/progress/src/Makefile.in new file mode 100644 index 00000000000..7c4f25c190f --- /dev/null +++ b/mozilla/modules/progress/src/Makefile.in @@ -0,0 +1,33 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = progress +LIBRARY_NAME = prgrss + +REQUIRES = progress nspr dbm img layer util + +# all code is platform specific right now +CPPSRCS = pw_win.cpp pw_unix.cpp pwcommon.cpp + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/rdf/Makefile.in b/mozilla/modules/rdf/Makefile.in new file mode 100644 index 00000000000..2a9ea479e77 --- /dev/null +++ b/mozilla/modules/rdf/Makefile.in @@ -0,0 +1,14 @@ +#! gmake + +DEPTH = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = classes include src + +INCLUDE += -I$(topsrcdir)/modules/libimg/public + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/rdf/classes/Makefile.in b/mozilla/modules/rdf/classes/Makefile.in new file mode 100644 index 00000000000..f1b08690736 --- /dev/null +++ b/mozilla/modules/rdf/classes/Makefile.in @@ -0,0 +1,36 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +JDIRS = netscape/rdf netscape/rdf/core + +include $(topsrcdir)/config/rules.mk + +javadoc: + $(JAVADOC) -d $(XPDIST)/doc -sourcepath . \ + netscape.rdf \ + netscape.rdf.core diff --git a/mozilla/modules/rdf/classes/netscape/Makefile.in b/mozilla/modules/rdf/classes/netscape/Makefile.in new file mode 100644 index 00000000000..e69de29bb2d diff --git a/mozilla/modules/rdf/classes/netscape/rdf/Makefile.in b/mozilla/modules/rdf/classes/netscape/rdf/Makefile.in new file mode 100644 index 00000000000..d7c8763f0a3 --- /dev/null +++ b/mozilla/modules/rdf/classes/netscape/rdf/Makefile.in @@ -0,0 +1,34 @@ +#!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 = ../../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +PACKAGE = netscape/rdf + +JSRCS = Resource.java IRDF.java IRDFNotifiable.java \ + RDFEvent.java StringResourceHashtable.java + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/rdf/classes/netscape/rdf/core/Makefile.in b/mozilla/modules/rdf/classes/netscape/rdf/core/Makefile.in new file mode 100644 index 00000000000..655887e693e --- /dev/null +++ b/mozilla/modules/rdf/classes/netscape/rdf/core/Makefile.in @@ -0,0 +1,33 @@ +#!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 = ../../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +PACKAGE = netscape/rdf + +JSRCS = NativeRDF.java + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/rdf/include/Makefile.in b/mozilla/modules/rdf/include/Makefile.in new file mode 100644 index 00000000000..9ab81220451 --- /dev/null +++ b/mozilla/modules/rdf/include/Makefile.in @@ -0,0 +1,33 @@ +#!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. + +# +# +# + +MODULE = rdf +DEPTH = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +EXPORTS = rdf.h htrdf.h vocab.h jsec2rdf.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/rdf/src/Makefile.in b/mozilla/modules/rdf/src/Makefile.in new file mode 100644 index 00000000000..5449fc71f31 --- /dev/null +++ b/mozilla/modules/rdf/src/Makefile.in @@ -0,0 +1,88 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +MODULE = rdf +LIBRARY_NAME = $(LITE_PREFIX)rdf +LIBXP = $(DIST)/lib/libxp.$(LIB_SUFFIX) + +REQUIRES = nspr dbm java js htmldlgs util img layer pref ldap + +JNI_GEN = netscape.rdf.core.NativeRDF netscape.rdf.core.NativeRDFEnumeration + +CSRCS = \ + vocab.c \ + mcf.c \ + remstore.c \ + utils.c \ + rdfparse.c \ + mcff2mcf.c \ + bmk2mcf.c \ + ldap2rdf.c \ + glue.c \ + rdfht.c \ + jsec2rdf.c \ + $(NULL) + +ifndef RDF_STANDALONE +CSRCS += \ + nlcstore.c \ + find2rdf.c \ + fs2rdf.c \ + hist2rdf.c \ + pm2rdf.c \ + es2mcf.c \ + columns.c \ + rdfjava.c \ + ht.c \ + $(NULL) +endif + +SPF_OBJS = $(OBJDIR)/spf2ldif.o \ + $(OBJDIR)/hashtable.o + +LOCAL_INCLUDES = -I$(PUBLIC)/rdf + +include $(topsrcdir)/config/rules.mk + +ifdef RDF_STANDALONE +DEFINES := $(filter-out -DMOZILLA_CLIENT, $(DEFINES)) +endif + +$(LIBRARY): $(OBJS) + +test: $(OBJDIR)/test +spf2ldif: $(OBJDIR)/spf2ldif + +.PHONY: test spf2ldif + +$(OBJDIR)/test: $(OBJDIR)/test.o $(LIBRARY) + @$(MAKE_OBJDIR) + $(CC) -o $@ $(OBJDIR)/test.o $(LIBRARY) $(LIBNSPR) $(LIBXP) $(LDFLAGS) $(OS_LIBS) + +$(OBJDIR)/spf2ldif: $(SPF_OBJS) $(LIBRARY) + @$(MAKE_OBJDIR) + $(CC) -o $@ $(SPF_OBJS) $(LIBRARY) $(LIBNSPR) $(LIBXP) $(LDFLAGS) $(OS_LIBS) diff --git a/mozilla/modules/schedulr/Makefile.in b/mozilla/modules/schedulr/Makefile.in new file mode 100644 index 00000000000..66729f99b61 --- /dev/null +++ b/mozilla/modules/schedulr/Makefile.in @@ -0,0 +1,27 @@ +# +# 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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = public src + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/schedulr/public/Makefile.in b/mozilla/modules/schedulr/public/Makefile.in new file mode 100644 index 00000000000..5e77e9f903c --- /dev/null +++ b/mozilla/modules/schedulr/public/Makefile.in @@ -0,0 +1,31 @@ +#! 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = schedulr + +EXPORTS = $(srcdir)/schedulr.h + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/modules/schedulr/src/Makefile.in b/mozilla/modules/schedulr/src/Makefile.in new file mode 100644 index 00000000000..8f3937efd63 --- /dev/null +++ b/mozilla/modules/schedulr/src/Makefile.in @@ -0,0 +1,35 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = schedulr +LIBRARY_NAME = sched + +REQUIRES = nspr util + +LOCAL_INCLUDES = -I$(PUBLIC)/schedulr + +# all code is platform specific right now +CSRCS = schedulr.c + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/security/freenav/Makefile.in b/mozilla/modules/security/freenav/Makefile.in new file mode 100644 index 00000000000..1082ccf95ea --- /dev/null +++ b/mozilla/modules/security/freenav/Makefile.in @@ -0,0 +1,57 @@ +# -*- Mode: Makefile -*- +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = security +LIBRARY_NAME = secfree + +EXPORTS = base64.h \ + cert.h \ + preenc.h \ + seccomon.h \ + secerr.h \ + sechash.h \ + secnav.h \ + secrng.h \ + secstubn.h \ + secstubs.h \ + secstubt.h \ + ssl.h \ + sslerr.h \ + zig.h \ + rosetta.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +CSRCS = secport.c \ + navstubs.c \ + $(NULL) + +REQUIRES = dbm js img layer util + +include $(topsrcdir)/config/rules.mk + +$(LIBRARY): $(OBJS) diff --git a/mozilla/modules/softupdt/classes/Makefile.in b/mozilla/modules/softupdt/classes/Makefile.in new file mode 100644 index 00000000000..2a2a8cd7fb6 --- /dev/null +++ b/mozilla/modules/softupdt/classes/Makefile.in @@ -0,0 +1,26 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +DIRS = netscape + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/softupdt/classes/netscape/Makefile.in b/mozilla/modules/softupdt/classes/netscape/Makefile.in new file mode 100644 index 00000000000..e900257fc01 --- /dev/null +++ b/mozilla/modules/softupdt/classes/netscape/Makefile.in @@ -0,0 +1,26 @@ +#!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 = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +DIRS = softupdate + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/softupdt/classes/netscape/softupdate/Makefile.in b/mozilla/modules/softupdt/classes/netscape/softupdate/Makefile.in new file mode 100644 index 00000000000..00de645fd22 --- /dev/null +++ b/mozilla/modules/softupdt/classes/netscape/softupdate/Makefile.in @@ -0,0 +1,60 @@ +#!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 = ../../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +PACKAGE = netscape/softupdate + +JSRCS = FolderSpec.java \ + InstallDelete.java \ + InstallExecute.java \ + InstallFile.java \ + InstallPatch.java \ + InstallObject.java \ + ProgressDetails.java \ + ProgressMediator.java \ + ProgressWindow.java \ + RegEntryEnumerator.java \ + Registry.java \ + RegistryErrors.java \ + RegistryException.java \ + RegistryNode.java \ + RegKeyEnumerator.java \ + SoftUpdateException.java \ + SoftUpdateResourceBundle.java \ + SoftwareUpdate.java \ + Strings.java \ + SymProgressDetails.java \ + SymProgressWindow.java \ + Trigger.java \ + VersionInfo.java \ + VersionRegistry.java \ + WinProfile.java \ + WinProfileItem.java \ + WinReg.java \ + WinRegItem.java \ + WinRegValue.java \ + $(NULL) + +include $(topsrcdir)/config/rules.mk + +JAVA_SOURCEPATH = $(DEPTH)/modules/softupdt/classes diff --git a/mozilla/modules/softupdt/include/Makefile.in b/mozilla/modules/softupdt/include/Makefile.in new file mode 100644 index 00000000000..bf75cee6456 --- /dev/null +++ b/mozilla/modules/softupdt/include/Makefile.in @@ -0,0 +1,31 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = softupdt + +EXPORTS = softupdt.h su_folderspec.h gdiff.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/modules/softupdt/src/Makefile.in b/mozilla/modules/softupdt/src/Makefile.in new file mode 100644 index 00000000000..0c185e96463 --- /dev/null +++ b/mozilla/modules/softupdt/src/Makefile.in @@ -0,0 +1,129 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = nsdiff nspatch + +include $(topsrcdir)/config/config.mk + +MODULE = softupdate +LIBRARY_NAME = softupdate + +REQUIRES = softupdt js java net dbm nspr img util layer pref \ + jar security lay style libreg network progress zlib + +ifeq ($(MOZ_OJI),1) +REQUIRES += oji npj +endif +ifeq ($(MOZ_JAVA),1) +REQUIRES += applet +endif + +JRI_GEN = netscape.softupdate.FolderSpec \ + netscape.softupdate.InstallDelete \ + netscape.softupdate.InstallObject \ + netscape.softupdate.InstallFile \ + netscape.softupdate.InstallPatch \ + netscape.softupdate.InstallExecute \ + netscape.softupdate.Registry \ + netscape.softupdate.RegistryNode \ + netscape.softupdate.RegistryException \ + netscape.softupdate.RegKeyEnumerator \ + netscape.softupdate.RegEntryEnumerator \ + netscape.softupdate.SoftwareUpdate \ + netscape.softupdate.SoftUpdateException \ + netscape.softupdate.Strings \ + netscape.softupdate.Trigger \ + netscape.softupdate.VersionInfo \ + netscape.softupdate.VersionRegistry \ + netscape.softupdate.VerRegEnumerator \ + java.lang.Integer \ + $(NULL) + +CSRCS = softupdt.c \ + su_trigger.c \ + su_patch.c \ + su_folderspec.c \ + su_instl.c \ + su_nodl.c \ + vr_java.c \ + $(NULL) + +ifneq ($(subst /,_,$(shell uname -s)),OS2) +CSRCS += su_unix.c +else +CSRCS += os2updt.c su_wjava.c +CPPSRCS += su_win.cpp +JRI_GEN += netscape.softupdate.WinReg netscape.softupdate.WinProfile netscape.softupdate.WinRegValue +endif + +EXPORTS = $(srcdir)/../include/softupdt.h \ + $(JRI_GEN_DIR)/netscape_softupdate_InstallDelete.h \ + $(JRI_GEN_DIR)/netscape_softupdate_InstallFile.h \ + $(JRI_GEN_DIR)/netscape_softupdate_InstallObject.h \ + $(JRI_GEN_DIR)/netscape_softupdate_SoftwareUpdate.h \ + $(JRI_GEN_DIR)/netscape_softupdate_SoftUpdateException.h \ + $(JRI_GEN_DIR)/netscape_softupdate_VersionInfo.h \ + $(JRI_GEN_DIR)/netscape_softupdate_VersionRegistry.h \ + $(JRI_GEN_DIR)/netscape_softupdate_VerRegEnumerator.h \ + $(JRI_GEN_DIR)/netscape_softupdate_Registry.h \ + $(JRI_GEN_DIR)/netscape_softupdate_RegistryNode.h \ + $(JRI_GEN_DIR)/netscape_softupdate_RegistryException.h \ + $(JRI_GEN_DIR)/netscape_softupdate_RegKeyEnumerator.h \ + $(JRI_GEN_DIR)/netscape_softupdate_RegEntryEnumerator.h \ + $(JRI_GEN_DIR)/netscape_softupdate_Strings.h \ + $(JRI_GEN_DIR)/netscape_softupdate_Trigger.h \ + $(JRI_GEN_DIR)/netscape_softupdate_FolderSpec.h \ + $(NULL) + +include $(topsrcdir)/config/rules.mk + +ifeq ($(OS_ARCH),OS2) +INCLUDES += -I$(topsrcdir)/cmd/os2fe/nfc/include -I$(topsrcdir)/cmd/os2fe +endif + +$(OBJDIR)/su_folderspec.o: $(JRI_GEN_DIR)/netscape_softupdate_FolderSpec.c \ + $(JRI_GEN_DIR)/netscape_softupdate_SoftwareUpdate.h + +$(OBJDIR)/su_instl.o: $(JRI_GEN_DIR)/netscape_softupdate_InstallFile.c \ + $(JRI_GEN_DIR)/netscape_softupdate_InstallDelete.c \ + $(JRI_GEN_DIR)/netscape_softupdate_InstallObject.c \ + $(JRI_GEN_DIR)/netscape_softupdate_InstallExecute.c \ + $(JRI_GEN_DIR)/netscape_softupdate_InstallPatch.c \ + $(JRI_GEN_DIR)/netscape_softupdate_SoftwareUpdate.h \ + $(JRI_GEN_DIR)/netscape_softupdate_SoftUpdateException.h \ + $(JRI_GEN_DIR)/netscape_softupdate_Strings.h + +$(OBJDIR)/su_trigger.o: $(JRI_GEN_DIR)/netscape_softupdate_Trigger.c \ + $(JRI_GEN_DIR)/netscape_softupdate_SoftUpdateException.c \ + $(JRI_GEN_DIR)/netscape_softupdate_SoftwareUpdate.c \ + $(JRI_GEN_DIR)/netscape_softupdate_Strings.c + +$(OBJDIR)/vr_java.o: $(JRI_GEN_DIR)/netscape_softupdate_VersionInfo.h \ + $(JRI_GEN_DIR)/netscape_softupdate_VersionRegistry.h \ + $(JRI_GEN_DIR)/netscape_softupdate_VerRegEnumerator.h \ + $(JRI_GEN_DIR)/netscape_softupdate_Registry.h \ + $(JRI_GEN_DIR)/netscape_softupdate_RegistryNode.h \ + $(JRI_GEN_DIR)/netscape_softupdate_RegistryException.h \ + $(JRI_GEN_DIR)/netscape_softupdate_RegKeyEnumerator.h \ + $(JRI_GEN_DIR)/netscape_softupdate_RegEntryEnumerator.h diff --git a/mozilla/modules/softupdt/src/nsdiff/Makefile.in b/mozilla/modules/softupdt/src/nsdiff/Makefile.in new file mode 100644 index 00000000000..98f360cd56e --- /dev/null +++ b/mozilla/modules/softupdt/src/nsdiff/Makefile.in @@ -0,0 +1,45 @@ +#!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 = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +REQUIRES = softupdt zlib + +CSRCS = nsdiff.c crc32.c + +COPY = cp -p + +PROGRAM = nsdiff$(BIN_SUFFIX) + +include $(topsrcdir)/config/rules.mk + +symbols: + @echo "CSRCS = $(CSRCS)" + @echo "OBJS = $(OBJS)" + @echo "PROGRAM = $(PROGRAM)" + @echo "LIBRARY = $(LIBRARY)" + @echo "TARGETS = $(TARGETS)" + +crc32.c: $(topsrcdir)/modules/zlib/src/crc32.c + @$(RM) $@ + @$(COPY) $< $@ + diff --git a/mozilla/modules/softupdt/src/nspatch/Makefile.in b/mozilla/modules/softupdt/src/nspatch/Makefile.in new file mode 100644 index 00000000000..38d19e322e9 --- /dev/null +++ b/mozilla/modules/softupdt/src/nspatch/Makefile.in @@ -0,0 +1,38 @@ +#!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 = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +REQUIRES = softupdt + +CSRCS = nspatch.c + +PROGRAM = nspatch$(BIN_SUFFIX) + +include $(topsrcdir)/config/rules.mk + +symbols: + @echo "CSRCS = $(CSRCS)" + @echo "OBJS = $(OBJS)" + @echo "PROGRAM = $(PROGRAM)" + @echo "LIBRARY = $(LIBRARY)" + @echo "TARGETS = $(TARGETS)" diff --git a/mozilla/modules/xml/Makefile.in b/mozilla/modules/xml/Makefile.in new file mode 100644 index 00000000000..78c92ade687 --- /dev/null +++ b/mozilla/modules/xml/Makefile.in @@ -0,0 +1,44 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = xml +LIBRARY_NAME = $(LITE_PREFIX)xml + +REQUIRES = nspr img layer util js +EXPORTS = $(srcdir)/expat/xmlparse/xmlparse.h + +CSRCS = expat/xmltok/xmltok.c \ + expat/xmltok/xmlrole.c \ + expat/xmlparse/xmlparse.c \ + expat/xmlparse/hashtable.c \ + glue/xmlglue.c \ + glue/xmldom.c \ + glue/xmlss.c + +LOCAL_INCLUDES = -I$(srcdir)/expat/xmltok -I$(srcdir)/expat/xmlparse/ -I$(srcdir)/glue + +include $(topsrcdir)/config/rules.mk + +$(LIBRARY): $(OBJS) diff --git a/mozilla/modules/xml/js/Makefile.in b/mozilla/modules/xml/js/Makefile.in new file mode 100644 index 00000000000..d854f9469ad --- /dev/null +++ b/mozilla/modules/xml/js/Makefile.in @@ -0,0 +1,35 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +REQUIRES = xmlparse xmltok expat js +CSRCS = jsxparse.c \ + jsxgraph.c \ + xmljs.c \ + $(NULL) + +EXPORTS = $(srcdir)/xmljs.h +LIBRARY_NAME = xmljs +MODULE = xmljs + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/modules/xml/js/test/Makefile.in b/mozilla/modules/xml/js/test/Makefile.in new file mode 100644 index 00000000000..ccbeb5b1019 --- /dev/null +++ b/mozilla/modules/xml/js/test/Makefile.in @@ -0,0 +1,43 @@ +#!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 = ../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +REQUIRES = xmlparse xmltok expat js xmljs nspr +CSRCS = js.c \ + $(NULL) + +PROGRAM = xmljs + +include $(topsrcdir)/config/rules.mk +CFLAGS += -DJSFILE -I$(srcdir)/. + +MYLIBS = -lxmljs -lexpat -lxmltok -ljs $(LIBNSPR) -ldl -lm + +js: + rm -f $(PROGRAM) + @make $(PROGRAM) + +$(PROGRAM): $(OBJS) + @$(MAKE_OBJDIR) + $(CC) -o $@ $(LDFLAGS) $(OBJS) -L$(DIST)/bin $(MYLIBS) + + diff --git a/mozilla/modules/zlib/src/Makefile.in b/mozilla/modules/zlib/src/Makefile.in new file mode 100644 index 00000000000..7497d561984 --- /dev/null +++ b/mozilla/modules/zlib/src/Makefile.in @@ -0,0 +1,53 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = zlib +LIBRARY_NAME = zlib + +REQUIRES = nspr java + +LCFLAGS = + +CSRCS = adler32.c \ + crc32.c \ + compress.c \ + uncompr.c \ + deflate.c \ + trees.c \ + zutil.c \ + inflate.c \ + infblock.c \ + inftrees.c \ + infcodes.c \ + infutil.c \ + inffast.c \ + $(NULL) + +# XXX JDK_GEN should add the _gen/* exports +EXPORTS = zlib.h zconf.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/nav-java/stubs/Makefile.in b/mozilla/nav-java/stubs/Makefile.in new file mode 100644 index 00000000000..9ee28dbd37f --- /dev/null +++ b/mozilla/nav-java/stubs/Makefile.in @@ -0,0 +1,27 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = jri include src + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/nav-java/stubs/include/Makefile.in b/mozilla/nav-java/stubs/include/Makefile.in new file mode 100644 index 00000000000..84c71f2b369 --- /dev/null +++ b/mozilla/nav-java/stubs/include/Makefile.in @@ -0,0 +1,30 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = java + +EXPORTS = java.h javasec.h lj.h softupdt.h edtplug.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/nav-java/stubs/jri/Makefile.in b/mozilla/nav-java/stubs/jri/Makefile.in new file mode 100644 index 00000000000..2ebfb48a73f --- /dev/null +++ b/mozilla/nav-java/stubs/jri/Makefile.in @@ -0,0 +1,43 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = java + +EXPORTS = netscape_applet_EmbeddedObjectNatives.h \ + netscape_applet_MozillaAppletContext.h \ + netscape_javascript_JSObject.h \ + netscape_javascript_JSException.h \ + netscape_plugin_Plugin.h \ + netscape_plugin_composer_Composer.h \ + netscape_plugin_composer_PluginManager.h \ + netscape_security_Principal.h \ + netscape_security_Privilege.h \ + netscape_security_PrivilegeManager.h \ + netscape_security_PrivilegeTable.h \ + netscape_security_Target.h \ + netscape_security_Zig.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/nav-java/stubs/src/Makefile.in b/mozilla/nav-java/stubs/src/Makefile.in new file mode 100644 index 00000000000..efe9a12744d --- /dev/null +++ b/mozilla/nav-java/stubs/src/Makefile.in @@ -0,0 +1,33 @@ +# +# 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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = java +LIBRARY_NAME = stubnj + +REQUIRES = js nspr java + +CSRCS = stubnj.c + +include $(topsrcdir)/config/rules.mk + +INCLUDES += -I$(DEPTH)/dist/public/img -I$(DEPTH)/dist/public/util -I$(DEPTH)/dist/public/layer diff --git a/mozilla/network/Makefile.in b/mozilla/network/Makefile.in new file mode 100644 index 00000000000..2d3c7246efb --- /dev/null +++ b/mozilla/network/Makefile.in @@ -0,0 +1,44 @@ +#! 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 = .. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = \ + cache \ + client \ + cnvts \ + mimetype \ + main \ + protocol \ + util + +ifdef MODULAR_NETLIB +DIRS += module +endif + +include $(topsrcdir)/config/rules.mk + +INCLUDE += $(PUBLIC)\ldap $(PUBLIC)\security + diff --git a/mozilla/network/cache/Makefile.in b/mozilla/network/cache/Makefile.in new file mode 100644 index 00000000000..d774b51530c --- /dev/null +++ b/mozilla/network/cache/Makefile.in @@ -0,0 +1,43 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = netcache +LIBRARY_NAME = netcache + +CSRCS = \ + cachedump.c \ + extcache.c \ + mkcache.c \ + mkextcac.c \ + mkmemcac.c \ + $(NULL) + +EXPORTS= netcache.h mkcache.h mkmemcac.h extcache.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +REQUIRES = network nspr2 dbm util pref js java fileurl security layer img jtools + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/network/cache/nu/Makefile.in b/mozilla/network/cache/nu/Makefile.in new file mode 100644 index 00000000000..d9cf270a922 --- /dev/null +++ b/mozilla/network/cache/nu/Makefile.in @@ -0,0 +1,31 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = public src + +include $(topsrcdir)/config/config.mk + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/network/cache/nu/include/Makefile.in b/mozilla/network/cache/nu/include/Makefile.in new file mode 100644 index 00000000000..fc31de7c698 --- /dev/null +++ b/mozilla/network/cache/nu/include/Makefile.in @@ -0,0 +1,29 @@ +#!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 = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = cache + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/network/cache/nu/public/Makefile.in b/mozilla/network/cache/nu/public/Makefile.in new file mode 100644 index 00000000000..f3ff5856ad7 --- /dev/null +++ b/mozilla/network/cache/nu/public/Makefile.in @@ -0,0 +1,41 @@ +#!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=../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +EXPORTS = \ + nsMemModule.h \ + nsCacheManager.h \ + nsDiskModule.h \ + nsCacheModule.h \ + nsMemCacheObject.h \ + nsCacheObject.h \ + nsCachePref.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +MODULE = cache + +include $(topsrcdir)/config/config.mk + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/network/cache/nu/src/Makefile.in b/mozilla/network/cache/nu/src/Makefile.in new file mode 100644 index 00000000000..f428a2576cf --- /dev/null +++ b/mozilla/network/cache/nu/src/Makefile.in @@ -0,0 +1,58 @@ +#!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=../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +TARGET = $(LIBRARY) + +LIBRARY_NAME=cachelib + +MISCDEP = \ + $(LIBNSPR) \ + $(DIST)/lib/xpcom32.lib \ + $(NULL) + +MODULE = cache + +CPPSRCS = nsCacheObject.cpp \ + nsCacheModule.cpp \ + nsCacheManager.cpp \ + nsMemModule.cpp \ + nsDiskModule.cpp \ + nsCacheTrace.cpp \ + nsCachePref.cpp \ + nsMemCacheObject.cpp \ + $(NULL) + +REQUIRES = dbm nspr pref xpcom + +LLIBS = \ + $(DIST)/lib/xpcom32.lib \ + $(LIBNSPR) \ + $(NULL) + +include $(topsrcdir)/config/rules.mk + +INCLUDES += -I$(srcdir)/../include \ + -I$(srcdir)/../public \ + $(NULL) + diff --git a/mozilla/network/client/Makefile.in b/mozilla/network/client/Makefile.in new file mode 100644 index 00000000000..b8c239a9a5e --- /dev/null +++ b/mozilla/network/client/Makefile.in @@ -0,0 +1,39 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk +MODULE = cnetinit + +ifndef MODULAR_NETLIB +LIBRARY_NAME = cnetinit + +CSRCS = \ + cnetinit.c \ + $(NULL) +endif + +EXPORTS= $(srcdir)/cnetinit.h + +REQUIRES = netcache network img layer fileurl httpurl ftpurl abouturl \ + gophurl jsurl remoturl dataurl util security + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/network/cnvts/Makefile.in b/mozilla/network/cnvts/Makefile.in new file mode 100644 index 00000000000..69d312cd978 --- /dev/null +++ b/mozilla/network/cnvts/Makefile.in @@ -0,0 +1,73 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = netcnvts +LIBRARY_NAME = netcnvts + +CSRCS = \ + cvactive.c \ + cvchunk.c \ + cvcolor.c \ + cvdisk.c \ + cvextcon.c \ + cvjscfg.c \ + cvsimple.c \ + cvunzip.c \ + txview.c \ + $(NULL) + +ifndef MODULAR_NETLIB +CSRCS += \ + cvmime.c \ + cvpics.c \ + cvview.c \ + $(NULL) +endif + +EXPORTS= \ + cvactive.h \ + cvview.h \ + cvproxy.h \ + cvextcon.h \ + txview.h \ + cvchunk.h \ + cvcolor.h \ + cvdisk.h \ + cvsimple.h \ + cvunzip.h \ + cvjscfg.h + +ifndef MODULAR_NETLIB +EXPORTS += \ + cvmime.h \ + cvpics.h \ + $(NULL) +endif + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +REQUIRES = network img lay layer util parse pref js \ + security marimurl style zlib softupdt mimetype ldap + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/network/cstream/Makefile.in b/mozilla/network/cstream/Makefile.in new file mode 100644 index 00000000000..1483d0263fa --- /dev/null +++ b/mozilla/network/cstream/Makefile.in @@ -0,0 +1,40 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = cstream +LIBRARY_NAME = cstream + +CSRCS = \ + cstream.c \ + $(NULL) + +EXPORTS= cstream.h strmutil.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +REQUIRES = network nspr2 dbm util pref js java fileurl security \ + layer img jtools netcnvts + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/network/main/Makefile.in b/mozilla/network/main/Makefile.in new file mode 100644 index 00000000000..99e98732c94 --- /dev/null +++ b/mozilla/network/main/Makefile.in @@ -0,0 +1,92 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +MODULE = network +LIBRARY_NAME = network + +ifdef MOZ_MAIL_NEWS +CPPSRCS= mkabook.cpp +endif + +CSRCS = \ + jscookie.c \ + mkautocf.c \ + mkconect.c \ + mkfsort.c \ + mkgeturl.c \ + singsign.c \ + mkhelp.c \ + mkmessag.c \ + mkpadpac.c \ + mkparse.c \ + mkselect.c \ + mksockrw.c \ + mksort.c \ + mkstream.c \ + mktrace.c \ + mkutils.c \ + prefetch.c \ + unix-dns.c \ + $(NULL) + +ifndef MODULAR_NETLIB +CSRCS += \ + mkinit.c \ + $(NULL) +endif + +EXPORTS= mkstream.h mkparse.h mkfsort.h mksort.h mkgeturl.h \ + netstream.h mkselect.h mktcp.h netutils.h mkpadpac.h mkautocf.h mkhelp.h \ + mkutils.h mktrace.h + +ifdef MOZ_MAIL_NEWS +EXPORTS += mkldap.h +endif # MOZ_MAIL_NEWS + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +REQUIRES = ldapurl imap4url jtools progress nspr2 dbm util js parse lay style pref htmldlgs java \ + libfont netcache httpurl cnetinit security img layer netcnvts network \ + mimetype ldap net + +ifdef MOZ_MAIL_NEWS +REQUIRES += mailbxurl nntpurl pop3url +endif + +include $(topsrcdir)/config/rules.mk + +ifdef ENABLE_TESTS +TEST_LIBS = $(LIBRARY) \ + $(DIST)/lib/liburl.$(LIB_SUFFIX) \ + $(DIST)/lib/libsec-us.$(LIB_SUFFIX) \ + $(DIST)/lib/libdbm.$(LIB_SUFFIX) \ + $(DIST)/lib/libxp.$(LIB_SUFFIX) \ + $(DIST)/lib/nspr.$(LIB_SUFFIX) + +test: + $(CC) -g -o $(OBJDIR)/style_test $(CFLAGS) -DSS_TEST stystruc.c $(TEST_LIBS) + $(CC) -g -o $(OBJDIR)/stack_test $(CFLAGS) -DTEST_STYLESTACK stystack.c $(TEST_LIBS) +endif diff --git a/mozilla/network/main/mkutils.h b/mozilla/network/main/mkutils.h index 8c356e75e7d..d3094873e4d 100644 --- a/mozilla/network/main/mkutils.h +++ b/mozilla/network/main/mkutils.h @@ -18,11 +18,6 @@ #ifndef MKUTILS_H #define MKUTILS_H -/* Used throughout netlib. */ -#ifndef MAXHOSTNAMELEN -#define MAXHOSTNAMELEN 64 -#endif - #include "net.h" #include "xp.h" /* The cross-platform API */ #include "plstr.h" @@ -31,6 +26,11 @@ #include "mktrace.h" #include "mkselect.h" /* needed by all files in netlib */ +/* Used throughout netlib. */ +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN 64 +#endif + #define CONST const /* "const" only exists in STDC? */ #include diff --git a/mozilla/network/mimetype/Makefile.in b/mozilla/network/mimetype/Makefile.in new file mode 100644 index 00000000000..bcb67a92c39 --- /dev/null +++ b/mozilla/network/mimetype/Makefile.in @@ -0,0 +1,88 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = mimetype +LIBRARY_NAME = mimetype + +CSRCS = \ + mkformat.c \ + $(NULL) + +EXPORTS=$(srcdir)/mkformat.h + +include $(topsrcdir)/config/config.mk + +REQUIRES = nspr2 network img layer util + +include $(topsrcdir)/config/rules.mk + +# +# This converts mime.types to C source code, +# and also to an HTML table that shows what's in it. +# +MIME_TYPES = $(srcdir)/mime.types +MIME_TYPES_UNIX = $(srcdir)/mime.types-unix +MIME_TYPES_NONUNIX = $(srcdir)/mime.types-nonunix +AD2C = sh $(topsrcdir)/cmd/xfe/ad2c + +mktypes.h: $(MIME_TYPES) $(MIME_TYPES_UNIX) $(MIME_TYPES_NONUNIX) + rm -f $@ + @echo "generating $@ from $<..." ; \ + (echo '/* Generated file - do not edit! */' ; \ + echo '' ; \ + cat $(MIME_TYPES) | grep -v '^#' | $(AD2C) ; \ + echo '' ; \ + echo '#ifdef XP_UNIX' ; \ + cat $(MIME_TYPES_UNIX) | grep -v '^#' | $(AD2C) ; \ + echo '#else /* !XP_UNIX */' ; \ + cat $(MIME_TYPES_NONUNIX) | grep -v '^#' | $(AD2C) ; \ + echo '#endif /* !XP_UNIX */' ; \ + ) > $@ + +mime-types.html: $(MIME_TYPES) $(MIME_TYPES_UNIX) + rm -f $@ + @echo "generating $@ from $<..." ; \ + (echo 'Netscape MIME Types' ; \ + echo '

Netscape MIME Types

' ; \ + echo '
' ; \ + echo '' ; \ + echo '' ; \ + echo '' ; \ + echo '' ; \ + cat $(MIME_TYPES) $(MIME_TYPES_UNIX) | grep -v '^#' | \ + sed 's@exts="\([^"]*\)"[ ]*[\]*@@; \ + s@desc="\([^"]*\)"[ ]*[\]*@@; \ + s@enc=\([^ ]*\)[ ]*[\]*$$@@; \ + s@type=\([^ ]*\)[ ]*[\]*$$@@; \ + s@icon=\([^ ]*\)[ ]*[\]*$$@@'\ + | sed 's/,/ /g' \ + | awk '{if ( $$0 ~ /^\)\(\)\(\)\(\)\(\)\(\)$$@\1\5!\3!\2!\4\6@' \ + | tr '!' '\012' \ + | sed 's@@@' ; \ + echo '
Content Type:Extensions:Description:
\1\1encoding/\1\1
.*.*.*.*
' ; \ + echo '
' ; \ + ) > $@ + diff --git a/mozilla/network/module/Makefile.in b/mozilla/network/module/Makefile.in new file mode 100644 index 00000000000..51dd6aef970 --- /dev/null +++ b/mozilla/network/module/Makefile.in @@ -0,0 +1,83 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = netlib +LIBRARY_NAME = netlib + +CPPSRCS = \ + nsNetService.cpp \ + nsRelatedLinks.cpp \ + nsNetStream.cpp \ + nsURL.cpp \ + nsHttpUrl.cpp \ + nsStubContext.cpp \ + nsNetStubs.cpp \ + nsNetIDs.cpp \ + $(NULL) + +REQUIRES = raptor js dbm nspr security pref xpcom util img \ + layer network netcache fileurl ftpurl abouturl \ + httpurl gophurl remoturl netcnvts + +EXPORTS = nsIStreamListener.h \ + nsINetService.h \ + nsINetSupport.h \ + nsIURL.h \ + nsIRelatedLinks.h \ + nsIPostToServer.h \ + nsIHttpUrl.h \ + nsINetContainerApplication.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/config.mk + +include $(topsrcdir)/config/rules.mk + +$(LIBRARY): \ + $(OBJS) + +install:: + $(INSTALL) res/gopher-audio.gif $(DIST)/bin/res/network + $(INSTALL) res/gopher-binary.gif $(DIST)/bin/res/network + $(INSTALL) res/gopher-find.gif $(DIST)/bin/res/network + $(INSTALL) res/gopher-image.gif $(DIST)/bin/res/network + $(INSTALL) res/gopher-menu.gif $(DIST)/bin/res/network + $(INSTALL) res/gopher-movie.gif $(DIST)/bin/res/network + $(INSTALL) res/gopher-telnet.gif $(DIST)/bin/res/network + $(INSTALL) res/gopher-text.gif $(DIST)/bin/res/network + $(INSTALL) res/gopher-unknown.gif $(DIST)/bin/res/network + +clobber:: + rm -f $(DIST)/bin/res/network/gopher-audio.gif + rm -f $(DIST)/bin/res/network/gopher-binary.gif + rm -f $(DIST)/bin/res/network/gopher-find.gif + rm -f $(DIST)/bin/res/network/gopher-image.gif + rm -f $(DIST)/bin/res/network/gopher-menu.gif + rm -f $(DIST)/bin/res/network/gopher-movie.gif + rm -f $(DIST)/bin/res/network/gopher-telnet.gif + rm -f $(DIST)/bin/res/network/gopher-text.gif + rm -f $(DIST)/bin/res/network/gopher-unknown.gif + diff --git a/mozilla/network/module/tests/Makefile.in b/mozilla/network/module/tests/Makefile.in new file mode 100644 index 00000000000..f19109eb4ff --- /dev/null +++ b/mozilla/network/module/tests/Makefile.in @@ -0,0 +1,82 @@ +#!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=../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +CPPSRCS = \ + nettest.cpp \ + $(NULL) + +INCLUDES+=-I$(srcdir)/../src -I$(DIST)/include + +REQUIRES = raptor netlib xpcom pref + +OBJS = $(CPPSRCS:.cpp=.o) + +EX_LIBS = \ + $(DIST)/bin/libabouturl.so \ + $(DIST)/bin/libfileurl.so \ + $(DIST)/bin/libftpurl.so \ + $(DIST)/bin/libgophurl.so \ + $(DIST)/bin/libremoturl.so \ + $(DIST)/bin/libhttpurl.so \ + $(DIST)/bin/libnetcache.so \ + $(DIST)/bin/libmimetype.so \ + $(DIST)/bin/libnetwork.so \ + $(DIST)/bin/libnetlib.so \ + $(DIST)/bin/libnetutil.so \ + $(DIST)/bin/libreg.so \ + $(DIST)/bin/libxpcom.so \ + $(DIST)/bin/libpwcac.so \ + $(DIST)/bin/libdbm.so \ + $(DIST)/bin/libxp.so \ + $(DIST)/bin/libpref.so \ + $(DIST)/bin/libjs.so \ + $(DIST)/bin/libraptorbase.so \ + $(DIST)/bin/libsecfree.so \ + $(DIST)/lib/libplc21.so \ + $(DIST)/lib/libplds21.so \ + $(DIST)/lib/libnspr21.so \ + $(NULL) + +PROGS = $(addprefix $(OBJDIR)/, $(CPPSRCS:.cpp=)) + +NON_DIRS = $(PROGS) +TARGETS = $(NON_DIRS) + +include $(topsrcdir)/config/rules.mk + +$(OBJDIR)/%.o: %.cpp + @$(MAKE_OBJDIR) + $(CCC) -o $@ $(CFLAGS) -DUSE_NSREG -c $*.cpp + +$(PROGS):$(OBJDIR)/%: $(OBJDIR)/%.o $(EX_LIBS) + @$(MAKE_OBJDIR) + $(CCC) -o $@ $@.o $(LDFLAGS) $(EX_LIBS) $(OS_LIBS) + +export:: + +install:: $(PROGS) + $(INSTALL) $(PROGS) $(DIST)/bin + diff --git a/mozilla/network/protocol/Makefile.in b/mozilla/network/protocol/Makefile.in new file mode 100644 index 00000000000..8bea6ff2e62 --- /dev/null +++ b/mozilla/network/protocol/Makefile.in @@ -0,0 +1,63 @@ +#! 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 = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +DIRS = about \ + file \ + ftp \ + gopher \ + remote \ + $(NULL) + +ifndef MODULAR_NETLIB +DIRS += \ + dataurl \ + js \ + marimba \ + $(NULL) +endif + +ifdef MOZ_LDAP +DIRS += ldap \ + $(NULL) +endif + +ifdef MOZ_MAIL_NEWS +DIRS += \ + mailbox \ + smtp \ + nntp \ + pop3 \ + imap4 \ + certld \ + $(NULL) +endif + +DIRS += http + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/network/protocol/about/Makefile.in b/mozilla/network/protocol/about/Makefile.in new file mode 100644 index 00000000000..793653643ed --- /dev/null +++ b/mozilla/network/protocol/about/Makefile.in @@ -0,0 +1,38 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = abouturl +LIBRARY_NAME = abouturl + +CSRCS = \ + mkabout.c \ + $(NULL) + +EXPORTS= $(srcdir)/abouturl.h + +REQUIRES = netcache network nspr2 dbm util pref js java fileurl \ + security layer img httpurl jtools + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/network/protocol/callback/Makefile.in b/mozilla/network/protocol/callback/Makefile.in new file mode 100644 index 00000000000..e69de29bb2d diff --git a/mozilla/network/protocol/certld/Makefile.in b/mozilla/network/protocol/certld/Makefile.in new file mode 100644 index 00000000000..389be39ea6b --- /dev/null +++ b/mozilla/network/protocol/certld/Makefile.in @@ -0,0 +1,38 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = crtldurl +LIBRARY_NAME = crtldurl + +CSRCS = \ + mkcertld.c \ + $(NULL) + +EXPORTS= $(srcdir)/mkcertld.h + +REQUIRES = ldap network nspr2 dbm util pref js java fileurl \ + security layer img httpurl + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/network/protocol/dataurl/Makefile.in b/mozilla/network/protocol/dataurl/Makefile.in new file mode 100644 index 00000000000..a1c76eb930c --- /dev/null +++ b/mozilla/network/protocol/dataurl/Makefile.in @@ -0,0 +1,38 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = dataurl +LIBRARY_NAME = dataurl + +CSRCS = \ + mkdaturl.c \ + $(NULL) + +EXPORTS= $(srcdir)/dataurl.h + +REQUIRES = network nspr2 dbm util pref js java fileurl \ + security layer img httpurl netcnvts + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/network/protocol/file/Makefile.in b/mozilla/network/protocol/file/Makefile.in new file mode 100644 index 00000000000..b94727f5d78 --- /dev/null +++ b/mozilla/network/protocol/file/Makefile.in @@ -0,0 +1,38 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = fileurl +LIBRARY_NAME = fileurl + +CSRCS = \ + mkfile.c \ + $(NULL) + +EXPORTS= $(srcdir)/fileurl.h + +REQUIRES = network nspr2 dbm util pref js java fileurl \ + security layer img httpurl jtools mimetype + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/network/protocol/ftp/Makefile.in b/mozilla/network/protocol/ftp/Makefile.in new file mode 100644 index 00000000000..34535829d26 --- /dev/null +++ b/mozilla/network/protocol/ftp/Makefile.in @@ -0,0 +1,38 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = ftpurl +LIBRARY_NAME = ftpurl + +CSRCS = \ + mkftp.c \ + $(NULL) + +EXPORTS= $(srcdir)/ftpurl.h + +REQUIRES = network nspr2 dbm util pref js java fileurl \ + security layer img httpurl mimetype + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/network/protocol/gopher/Makefile.in b/mozilla/network/protocol/gopher/Makefile.in new file mode 100644 index 00000000000..64bfe577912 --- /dev/null +++ b/mozilla/network/protocol/gopher/Makefile.in @@ -0,0 +1,38 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = gophurl +LIBRARY_NAME = gophurl + +CSRCS = \ + mkgopher.c \ + $(NULL) + +EXPORTS= $(srcdir)/gophurl.h + +REQUIRES = network nspr2 dbm util pref js java fileurl \ + security layer img httpurl remoturl mimetype + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/network/protocol/http/Makefile.in b/mozilla/network/protocol/http/Makefile.in new file mode 100644 index 00000000000..dde0bc22c0e --- /dev/null +++ b/mozilla/network/protocol/http/Makefile.in @@ -0,0 +1,41 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = httpurl +LIBRARY_NAME = httpurl + +CSRCS = \ + mkhttp.c \ + mkaccess.c \ + $(NULL) + +EXPORTS= mkaccess.h httpurl.h httpauth.h cookies.h jscookie.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +REQUIRES = netcache network nspr2 dbm util pref js java fileurl \ + security layer img httpurl mimetype htmldlgs + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/network/protocol/imap4/Makefile.in b/mozilla/network/protocol/imap4/Makefile.in new file mode 100644 index 00000000000..4fe425b4525 --- /dev/null +++ b/mozilla/network/protocol/imap4/Makefile.in @@ -0,0 +1,51 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = imap4url +LIBRARY_NAME = imap4url + +CSRCS = \ + imap4url.c \ + $(NULL) + +CPPSRCS = \ + imapbody.cpp \ + imapearl.cpp \ + imaphier.cpp \ + imappars.cpp \ + mkimap4.cpp \ + $(NULL) + +EXPORTS= imap4pvt.h imap4url.h imapbody.h imaphier.h mkimap4.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +REQUIRES = util network nspr2 security \ + netcache network nspr2 dbm util pref js java fileurl \ + security layer img httpurl mimetype htmldlgs + +include $(topsrcdir)/config/rules.mk + +INCLUDES += -I$(topsrcdir)/lib/libmsg + diff --git a/mozilla/network/protocol/js/Makefile.in b/mozilla/network/protocol/js/Makefile.in new file mode 100644 index 00000000000..e7628008271 --- /dev/null +++ b/mozilla/network/protocol/js/Makefile.in @@ -0,0 +1,38 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = jsurl +LIBRARY_NAME = jsurl + +CSRCS = \ + mkmocha.c \ + $(NULL) + +EXPORTS= $(srcdir)/jsurl.h + +REQUIRES = network nspr2 dbm util pref js java fileurl \ + security layer img httpurl lay parse style + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/network/protocol/ldap/Makefile.in b/mozilla/network/protocol/ldap/Makefile.in new file mode 100644 index 00000000000..3e2320ca80e --- /dev/null +++ b/mozilla/network/protocol/ldap/Makefile.in @@ -0,0 +1,40 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = ldapurl +LIBRARY_NAME = ldapurl + +CSRCS = \ + mkldap.c \ + $(NULL) + +EXPORTS= $(srcdir)/mkldap.h + +REQUIRES = ldap progress netcache network nspr2 dbm util pref js java fileurl \ + security layer img httpurl mimetype htmldlgs + + +include $(topsrcdir)/config/rules.mk + +INCLUDES += -I$(topsrcdir)/lib/libmsg diff --git a/mozilla/network/protocol/mailbox/Makefile.in b/mozilla/network/protocol/mailbox/Makefile.in new file mode 100644 index 00000000000..de9f7f46fea --- /dev/null +++ b/mozilla/network/protocol/mailbox/Makefile.in @@ -0,0 +1,38 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = mailbxurl +LIBRARY_NAME = mailbxurl + +CSRCS = \ + mkmailbx.c \ + $(NULL) + +EXPORTS= $(srcdir)/mkmailbx.h + +REQUIRES = imap4url netcache network nspr2 dbm util pref js java fileurl \ + security layer img httpurl mimetype htmldlgs + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/network/protocol/marimba/Makefile.in b/mozilla/network/protocol/marimba/Makefile.in new file mode 100644 index 00000000000..0bc95335603 --- /dev/null +++ b/mozilla/network/protocol/marimba/Makefile.in @@ -0,0 +1,38 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = marimurl +LIBRARY_NAME = marimurl + +CPPSRCS = \ + mkmarimb.cpp \ + $(NULL) + +EXPORTS= $(srcdir)/marimurl.h + +REQUIRES = network nspr2 dbm util pref js java fileurl \ + security layer img httpurl + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/network/protocol/nntp/Makefile.in b/mozilla/network/protocol/nntp/Makefile.in new file mode 100644 index 00000000000..a2dab1bb7ae --- /dev/null +++ b/mozilla/network/protocol/nntp/Makefile.in @@ -0,0 +1,41 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = nntpurl +LIBRARY_NAME = nntpurl + +CSRCS = \ + mknews.c \ + mknewsgr.c \ + $(NULL) + +EXPORTS= mknews.h mknewsgr.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +REQUIRES = netcache network nspr2 dbm util pref js java fileurl \ + security layer img httpurl mimetype htmldlgs + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/network/protocol/pop3/Makefile.in b/mozilla/network/protocol/pop3/Makefile.in new file mode 100644 index 00000000000..a0205421fee --- /dev/null +++ b/mozilla/network/protocol/pop3/Makefile.in @@ -0,0 +1,38 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = pop3url +LIBRARY_NAME = pop3url + +CSRCS = \ + mkpop3.c \ + $(NULL) + +EXPORTS= $(srcdir)/mkpop3.h + +REQUIRES = netcache network nspr2 dbm util pref js java fileurl \ + security layer img httpurl mimetype htmldlgs + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/network/protocol/remote/Makefile.in b/mozilla/network/protocol/remote/Makefile.in new file mode 100644 index 00000000000..bb594e489e0 --- /dev/null +++ b/mozilla/network/protocol/remote/Makefile.in @@ -0,0 +1,38 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = remoturl +LIBRARY_NAME = remoturl + +CSRCS = \ + mkremote.c \ + $(NULL) + +EXPORTS= $(srcdir)/remoturl.h + +REQUIRES = network nspr2 dbm util pref js java fileurl \ + security layer img httpurl + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/network/protocol/smtp/Makefile.in b/mozilla/network/protocol/smtp/Makefile.in new file mode 100644 index 00000000000..2cd9cf3029a --- /dev/null +++ b/mozilla/network/protocol/smtp/Makefile.in @@ -0,0 +1,38 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = smtpurl +LIBRARY_NAME = smtpurl + +CSRCS = \ + mksmtp.c \ + $(NULL) + +EXPORTS= $(srcdir)/mksmtp.h + +REQUIRES = netcache network nspr2 dbm util pref js java fileurl \ + security layer img httpurl mimetype htmldlgs + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/network/util/Makefile.in b/mozilla/network/util/Makefile.in new file mode 100644 index 00000000000..7f4cefb6029 --- /dev/null +++ b/mozilla/network/util/Makefile.in @@ -0,0 +1,39 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = network +LIBRARY_NAME = netutil + +CSRCS = \ + mkreg.c \ + $(NULL) + +EXPORTS=$(srcdir)/mkreg.h + +include $(topsrcdir)/config/config.mk + +REQUIRES = network + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/nsprpub/Makefile.in b/mozilla/nsprpub/Makefile.in new file mode 100644 index 00000000000..3e4bc9da163 --- /dev/null +++ b/mozilla/nsprpub/Makefile.in @@ -0,0 +1,110 @@ +#! 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. +# + +MOD_DEPTH = . +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +DIRS = config pr lib + +ifdef MOZILLA_CLIENT +PR_CLIENT_BUILD = 1 +PR_CLIENT_BUILD_UNIX = 1 +endif + +include $(topsrcdir)/config/rules.mk + +# +# The -ll option of zip converts CR LF to LF. +# +ifeq ($(OS_ARCH),WINNT) +ZIP_ASCII_OPT = -ll +endif + +ifdef PR_CLIENT_BUILD +export:: + rm -r -f $(DIST)/../public/nspr +ifdef PR_CLIENT_BUILD_UNIX + rm -f $(DIST)/lib/libnspr.a + rm -f $(DIST)/bin/libnspr.$(DLL_SUFFIX) +endif +endif + +release:: + echo $(BUILD_NUMBER) > $(RELEASE_DIR)/$(BUILD_NUMBER)/version.df + @if test -f imports.df; then \ + echo "cp -f imports.df $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df"; \ + cp -f imports.df $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df; \ + else \ + echo "echo > $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df"; \ + echo > $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df; \ + fi + cd $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME); \ + rm -rf META-INF; mkdir META-INF; cd META-INF; \ + echo "Manifest-Version: 1.0" > MANIFEST.MF; \ + echo "" >> MANIFEST.MF; \ + cd ..; rm -f mdbinary.jar; zip -r mdbinary.jar META-INF lib; \ + rm -rf META-INF; \ + cd include; \ + rm -rf META-INF; mkdir META-INF; cd META-INF; \ + echo "Manifest-Version: 1.0" > MANIFEST.MF; \ + echo "" >> MANIFEST.MF; \ + cd ..; rm -f mdheader.jar; zip $(ZIP_ASCII_OPT) -r mdheader.jar *; \ + rm -rf META-INF +ifeq ($(OS_ARCH),WINNT) + @if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); then \ + rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \ + echo "making directory /m/dist/$(MOD_NAME)/$(BUILD_NUMBER)"; \ + config/prmkdir.bat $(MDIST_DOS)\\$(MOD_NAME)\\$(BUILD_NUMBER); \ + fi + @if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(OBJDIR_NAME); then \ + rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(OBJDIR_NAME); \ + echo "making directory /m/dist/$(MOD_NAME)/$(BUILD_NUMBER)/$(OBJDIR_NAME)"; \ + config/prmkdir.bat $(MDIST_DOS)\\$(MOD_NAME)\\$(BUILD_NUMBER)\\$(OBJDIR_NAME); \ + fi +else + @if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); then \ + rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \ + echo "making directory /m/dist/$(MOD_NAME)/$(BUILD_NUMBER)"; \ + $(NSINSTALL) -D $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \ + chmod 775 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \ + fi + @if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(OBJDIR_NAME); then \ + rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(OBJDIR_NAME); \ + echo "making directory /m/dist/$(MOD_NAME)/$(BUILD_NUMBER)/$(OBJDIR_NAME)"; \ + $(NSINSTALL) -D $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(OBJDIR_NAME); \ + chmod 775 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(OBJDIR_NAME); \ + fi +endif + cd $(RELEASE_DIR)/$(BUILD_NUMBER); \ + cp -f version.df imports.df $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \ + chmod 664 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/version.df; \ + chmod 664 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/imports.df; \ + cd $(OBJDIR_NAME); \ + cp -f mdbinary.jar $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(OBJDIR_NAME); \ + chmod 664 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/mdbinary.jar; \ + cd include; \ + cp -f mdheader.jar $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(OBJDIR_NAME); \ + chmod 664 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/mdheader.jar + +depend: + @echo "NSPR20 has no dependencies. Skipped." diff --git a/mozilla/nsprpub/config/AIX.mk b/mozilla/nsprpub/config/AIX.mk index 4305ddc2d84..5dfc9cc96d6 100644 --- a/mozilla/nsprpub/config/AIX.mk +++ b/mozilla/nsprpub/config/AIX.mk @@ -67,6 +67,10 @@ CPU_ARCH = rs6000 RANLIB = ranlib +ifdef USE_AUTOCONF +OS_CFLAGS = +else + OS_CFLAGS = -qro -qroconst -DAIX -DSYSV ifeq ($(CC),xlC_r) OS_CFLAGS += -qarch=com @@ -82,6 +86,8 @@ OS_CFLAGS += -DAIX4_3 endif endif +endif # USE_AUTOCONF + # # Special link info for constructing AIX programs. On AIX we have to # statically link programs that use NSPR into a single .o, rewriting the diff --git a/mozilla/nsprpub/config/BSD_OS.mk b/mozilla/nsprpub/config/BSD_OS.mk index ad13200f93c..c865aa89e86 100644 --- a/mozilla/nsprpub/config/BSD_OS.mk +++ b/mozilla/nsprpub/config/BSD_OS.mk @@ -35,6 +35,10 @@ ifeq ($(OS_RELEASE),2.1) OS_CFLAGS += -DBSDI_2 endif +ifdef USE_AUTOCONF +OS_CFLAGS = +endif + G++INCLUDES = -I/usr/include/g++ CPU_ARCH = x86 diff --git a/mozilla/nsprpub/config/FreeBSD.mk b/mozilla/nsprpub/config/FreeBSD.mk index a7154795a8a..ceed49cbd9b 100644 --- a/mozilla/nsprpub/config/FreeBSD.mk +++ b/mozilla/nsprpub/config/FreeBSD.mk @@ -28,7 +28,11 @@ RANLIB = ranlib OS_REL_CFLAGS = -mno-486 -Di386 CPU_ARCH = x86 +ifdef USE_AUTOCONF +OS_CFLAGS = $(DSO_CFLAGS) +else OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -D_PR_NEED_POLL +endif ifeq ($(USE_PTHREADS),1) OS_LIBS = -lc_r diff --git a/mozilla/nsprpub/config/HP-UX.mk b/mozilla/nsprpub/config/HP-UX.mk index bbc541b1424..f6471f41a1a 100644 --- a/mozilla/nsprpub/config/HP-UX.mk +++ b/mozilla/nsprpub/config/HP-UX.mk @@ -173,3 +173,7 @@ DSO_CFLAGS = +Z endif HAVE_PURIFY = 1 + +ifdef USE_AUTOCONF +OS_CFLAGS = +endif diff --git a/mozilla/nsprpub/config/IRIX.mk b/mozilla/nsprpub/config/IRIX.mk index 8487cbad74a..686e98cd9d9 100644 --- a/mozilla/nsprpub/config/IRIX.mk +++ b/mozilla/nsprpub/config/IRIX.mk @@ -111,3 +111,7 @@ DSO_LDOPTS = -elf -shared -all ifdef DSO_BACKEND DSO_LDOPTS += -soname $(DSO_NAME) endif + +ifdef USE_AUTOCONF +OS_CFLAGS = +endif diff --git a/mozilla/nsprpub/config/Linux.mk b/mozilla/nsprpub/config/Linux.mk index b8f4e6d0630..83e13e9ad38 100644 --- a/mozilla/nsprpub/config/Linux.mk +++ b/mozilla/nsprpub/config/Linux.mk @@ -52,7 +52,11 @@ G++INCLUDES = -I/usr/include/g++ PLATFORM_FLAGS = -ansi -Wall -pipe -DLINUX -Dlinux PORT_FLAGS = -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR +ifdef USE_AUTOCONF +OS_CFLAGS = $(DSO_CFLAGS) #-include $(MOD_DEPTH)/include/config.h +else OS_CFLAGS = $(DSO_CFLAGS) $(PLATFORM_FLAGS) $(PORT_FLAGS) +endif ###################################################################### # Version-specific stuff diff --git a/mozilla/nsprpub/config/NCR.mk b/mozilla/nsprpub/config/NCR.mk index 98d07596d69..3922d3da03f 100644 --- a/mozilla/nsprpub/config/NCR.mk +++ b/mozilla/nsprpub/config/NCR.mk @@ -31,7 +31,9 @@ export PATH:=$(PATH):/opt/ncc/bin RANLIB = true GCC_FLAGS_EXTRA = -pipe +ifndef USE_AUTOCONF DEFINES += -DSVR4 -DSYSV -DHAVE_STRERROR -DNCR -D_PR_LOCAL_THREADS_ONLY +endif ifdef NS_USE_NATIVE CC = cc diff --git a/mozilla/nsprpub/config/NEC.mk b/mozilla/nsprpub/config/NEC.mk index 7ca64c7ec61..3a884748413 100644 --- a/mozilla/nsprpub/config/NEC.mk +++ b/mozilla/nsprpub/config/NEC.mk @@ -36,7 +36,11 @@ MKSHLIB = $(LD) $(DSO_LDOPTS) RANLIB = /bin/true DEFINES += -D_PR_LOCAL_THREADS_ONLY +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = $(ODD_CFLAGS) -DSVR4 -D__SVR4 -DNEC -Dnec_ews -DHAVE_STRERROR +endif OS_LIBS = -lsocket -lnsl -ldl $(LDOPTIONS) LDOPTIONS = -lc -L/usr/ucblib -lucb diff --git a/mozilla/nsprpub/config/NEWS-OS.mk b/mozilla/nsprpub/config/NEWS-OS.mk index b0307c02e7b..443ef1db8ef 100644 --- a/mozilla/nsprpub/config/NEWS-OS.mk +++ b/mozilla/nsprpub/config/NEWS-OS.mk @@ -39,7 +39,11 @@ G++INCLUDES = PLATFORM_FLAGS = -Xa -fullwarn -DSONY PORT_FLAGS = -DSYSV -DSVR4 -D__svr4 -D__svr4__ -D_PR_LOCAL_THREADS_ONLY -DHAVE_SVID_GETTOD +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) +endif ###################################################################### # Version-specific stuff diff --git a/mozilla/nsprpub/config/NetBSD.mk b/mozilla/nsprpub/config/NetBSD.mk index b1a5c759971..2d3b1ba69fe 100644 --- a/mozilla/nsprpub/config/NetBSD.mk +++ b/mozilla/nsprpub/config/NetBSD.mk @@ -32,7 +32,11 @@ else CPU_ARCH = $(OS_TEST) endif +ifdef USE_AUTOCONF +OS_CFLAGS = $(DSO_CFLAGS) +else OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe -DNETBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK +endif ifeq ($(USE_PTHREADS),1) OS_LIBS = -lc_r diff --git a/mozilla/nsprpub/config/OSF1.mk b/mozilla/nsprpub/config/OSF1.mk index 0c4ccbb1a52..2f8c57921eb 100644 --- a/mozilla/nsprpub/config/OSF1.mk +++ b/mozilla/nsprpub/config/OSF1.mk @@ -76,6 +76,9 @@ endif NON_LD_FLAGS = -ieee_with_inexact +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = -DOSF1 -D_REENTRANT -taso ifeq ($(OS_RELEASE),V3.2) @@ -85,6 +88,7 @@ endif ifeq (V4,$(findstring V4,$(OS_RELEASE))) OS_CFLAGS += -DOSF1V4 endif +endif # USE_AUTOCONF ifeq ($(USE_PTHREADS),1) OS_CFLAGS += -pthread diff --git a/mozilla/nsprpub/config/Rhapsody.mk b/mozilla/nsprpub/config/Rhapsody.mk index 1d5fb7ed14a..37ef1e61597 100644 --- a/mozilla/nsprpub/config/Rhapsody.mk +++ b/mozilla/nsprpub/config/Rhapsody.mk @@ -45,7 +45,11 @@ CPU_ARCH = ppc # definitions so that the linker can catch multiply-defined symbols. # Also, common symbols are not allowed with Rhapsody dynamic libraries. +ifdef USE_AUTOCONF +OS_CFLAGS = $(DSO_CFLAGS) +else OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wmost -fno-common -pipe -DRHAPSODY -DHAVE_STRERROR -DHAVE_BSD_FLOCK +endif DEFINES += -D_PR_LOCAL_THREADS_ONLY -D_PR_NEED_FAKE_POLL diff --git a/mozilla/nsprpub/config/SCOOS.mk b/mozilla/nsprpub/config/SCOOS.mk index c1d2446810a..8890f551a7c 100644 --- a/mozilla/nsprpub/config/SCOOS.mk +++ b/mozilla/nsprpub/config/SCOOS.mk @@ -33,7 +33,12 @@ DEFINES += -D_PR_LOCAL_THREADS_ONLY # -DSCO - Changes to Netscape source (consistent with AIX, LINUX, etc..) # -Dsco - Needed for /usr/include/X11/* # +ifdef USE_AUTOCONF +OS_CFLAGS +else OS_CFLAGS = -DSYSV -D_SVID3 -DHAVE_STRERROR -D_PR_NEED_H_ERRNO -DSCO -Dsco +endif + #OS_LIBS = -lpmapi -lsocket -lc MKSHLIB = $(LD) $(DSO_LDOPTS) diff --git a/mozilla/nsprpub/config/SINIX.mk b/mozilla/nsprpub/config/SINIX.mk index 1be48be54ac..6cf899e3749 100644 --- a/mozilla/nsprpub/config/SINIX.mk +++ b/mozilla/nsprpub/config/SINIX.mk @@ -70,7 +70,11 @@ RANLIB = /bin/true NOMD_OS_CFLAGS = $(ODD_CFLAGS) # we do not have -MDupdate ... +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = $(NOMD_OS_CFLAGS) +endif OS_LIBS = -lsocket -lnsl -lresolv -ldl -lc NOSUCHFILE = /no-such-file diff --git a/mozilla/nsprpub/config/SunOS.mk b/mozilla/nsprpub/config/SunOS.mk index 0a3b0c40609..9aca9f61e90 100644 --- a/mozilla/nsprpub/config/SunOS.mk +++ b/mozilla/nsprpub/config/SunOS.mk @@ -20,7 +20,7 @@ # 4 and 5 are vastly different, so we use 2 different files. # ifeq ($(basename $(OS_RELEASE)),4.1) -include $(MOD_DEPTH)/config/SunOS4.mk +include $(topsrcdir)/config/SunOS4.mk else -include $(MOD_DEPTH)/config/SunOS5.mk +include $(topsrcdir)/config/SunOS5.mk endif diff --git a/mozilla/nsprpub/config/SunOS4.mk b/mozilla/nsprpub/config/SunOS4.mk index 20d74c1d638..c0aa387dd1b 100644 --- a/mozilla/nsprpub/config/SunOS4.mk +++ b/mozilla/nsprpub/config/SunOS4.mk @@ -35,7 +35,11 @@ CPU_ARCH = sparc DEFINES += -D_PR_LOCAL_THREADS_ONLY # Purify doesn't like -MDupdate NOMD_OS_CFLAGS = -Wall -Wno-format -DSUNOS4 +ifdef USE_AUTOCONF +OS_CFLAGS = $(DSO_CFLAGS) +else OS_CFLAGS = $(DSO_CFLAGS) $(NOMD_OS_CFLAGS) -MDupdate $(DEPENDENCIES) +endif MKSHLIB = $(LD) $(DSO_LDOPTS) diff --git a/mozilla/nsprpub/config/SunOS5.mk b/mozilla/nsprpub/config/SunOS5.mk index 1c14851c310..8801afbfbae 100644 --- a/mozilla/nsprpub/config/SunOS5.mk +++ b/mozilla/nsprpub/config/SunOS5.mk @@ -121,7 +121,11 @@ OS_DEFINES += -D_REENTRANT endif # Purify doesn't like -MDupdate +ifdef USE_AUTOCONF +NOMD_OS_CFLAGS = $(DSO_CFLAGS) #-DSOLARIS +else NOMD_OS_CFLAGS = $(DSO_CFLAGS) $(OS_DEFINES) $(SOL_CFLAGS) +endif MKSHLIB = $(LD) $(DSO_LDOPTS) diff --git a/mozilla/nsprpub/config/UNIX.mk b/mozilla/nsprpub/config/UNIX.mk index ad45ddb144a..774b1da8511 100644 --- a/mozilla/nsprpub/config/UNIX.mk +++ b/mozilla/nsprpub/config/UNIX.mk @@ -21,6 +21,7 @@ LIB_SUFFIX = a DLL_SUFFIX = so AR = ar cr $@ +ifndef USE_AUTOCONF ifdef BUILD_OPT OPTIMIZER = -O DEFINES = -UDEBUG -DNDEBUG @@ -32,7 +33,8 @@ OBJDIR_TAG = _DBG endif # Name of the binary code directories -OBJDIR_NAME = $(OS_CONFIG)$(CPU_ARCH_TAG)$(COMPILER_TAG)$(IMPL_STRATEGY)$(OBJDIR_TAG).OBJ +OBJDIR_NAME = Linux2.1.10902_x86_DBG.OBJ +endif # !USE_AUTOCONF MKDEPEND_DIR = $(DEPTH)/config/mkdepend MKDEPEND = $(MKDEPEND_DIR)/$(OBJDIR_NAME)/mkdepend diff --git a/mozilla/nsprpub/config/UNIXWARE.mk b/mozilla/nsprpub/config/UNIXWARE.mk index f15a5a41e6a..c2b146029c5 100644 --- a/mozilla/nsprpub/config/UNIXWARE.mk +++ b/mozilla/nsprpub/config/UNIXWARE.mk @@ -33,7 +33,11 @@ CCC = $(NSDEPTH)/build/hcpp RANLIB = true DEFINES += -D_PR_LOCAL_THREADS_ONLY +ifdef USE_AUTOCONF +OS_CFLAGS = +else OS_CFLAGS = -DSVR4 -DSYSV -DUNIXWARE +endif MKSHLIB = $(LD) $(DSO_LDOPTS) DSO_LDOPTS = -G diff --git a/mozilla/nsprpub/config/config.mk b/mozilla/nsprpub/config/config.mk index 2d3526e0a5d..4563eca4494 100644 --- a/mozilla/nsprpub/config/config.mk +++ b/mozilla/nsprpub/config/config.mk @@ -16,14 +16,18 @@ # Reserved. # +ifndef topsrcdir +topsrcdir = $(MOD_DEPTH) +endif + # Configuration information for building in the NSPR source module # Define an include-at-most-once-flag NSPR_CONFIG_MK = 1 -include $(MOD_DEPTH)/config/module.df +include $(topsrcdir)/config/module.df -include $(MOD_DEPTH)/config/arch.mk +include $(topsrcdir)/config/arch.mk ifndef NSDEPTH NSDEPTH = $(MOD_DEPTH)/.. @@ -48,7 +52,19 @@ CFLAGS = $(OPTIMIZER) $(OS_CFLAGS) $(XP_DEFINE) $(DEFINES) $(INCLUDES) \ NOMD_CFLAGS = $(OPTIMIZER) $(NOMD_OS_CFLAGS) $(XP_DEFINE) $(DEFINES) $(INCLUDES) \ $(XCFLAGS) -include $(MOD_DEPTH)/config/$(OS_TARGET).mk +ifdef USE_AUTOCONF +OPTIMIZER = $(ACCFLAGS) +DEFINES += -UDEBUG -DNDEBUG -DTRIMMED +endif + +ifdef MOZ_DEBUG +OPTIMIZER = -g +JAVA_OPTIMIZER = -g +DEFINES = -DDEBUG -UNDEBUG -DDEBUG_$(shell $(WHOAMI)) -DTRACING +XBCFLAGS = -FR$* +endif + +include $(topsrcdir)/config/$(OS_TARGET).mk # Figure out where the binary code lives. BUILD = $(OBJDIR_NAME) @@ -59,8 +75,17 @@ MOZ_INCL = $(NSDEPTH)/dist/public/win16 MOZ_DIST = $(NSDEPTH)/dist/WIN16D_D.OBJ endif +ifdef USE_AUTOCONF +EMACS = $(ACEMACS) +PERL = $(ACPERL) +RANLIB = $(ACRANLIB) +UNZIP_PROG = $(ACUNZIP) +WHOAMI = $(ACWHOAMI) +ZIP_PROG = $(ACZIP) +else VPATH = $(OBJDIR) DEPENDENCIES = $(OBJDIR)/.md +endif ifdef BUILD_DEBUG_GC DEFINES += -DDEBUG_GC diff --git a/mozilla/nsprpub/config/nsinstall.c b/mozilla/nsprpub/config/nsinstall.c index 5090376bace..f7e05bc92e4 100644 --- a/mozilla/nsprpub/config/nsinstall.c +++ b/mozilla/nsprpub/config/nsinstall.c @@ -24,6 +24,7 @@ #include /* OSF/1 requires this before grp.h, so put it first */ #include #include +#include #include #include #include @@ -78,7 +79,8 @@ mkdirs(char *path, mode_t mode) { char *cp; struct stat sb; - + int res; + while (*path == '/' && path[1] == '/') path++; while ((cp = strrchr(path, '/')) && cp[1] == '\0') @@ -91,7 +93,11 @@ mkdirs(char *path, mode_t mode) } *cp = '/'; } - return mkdir(path, mode); + res = mkdir(path, mode); + if ((res != 0) && (errno == EEXIST)) + return 0; + else + return res; } static uid_t diff --git a/mozilla/nsprpub/config/rules.mk b/mozilla/nsprpub/config/rules.mk index 337df248f58..29f991fc744 100644 --- a/mozilla/nsprpub/config/rules.mk +++ b/mozilla/nsprpub/config/rules.mk @@ -47,9 +47,12 @@ # ($OBJDIR automatically prepended to it) # ################################################################################ +ifndef topsrcdir +topsrcdir = $(MOD_DEPTH) +endif ifndef NSPR_CONFIG_MK -include $(MOD_DEPTH)/config/config.mk +include $(topsrcdir)/config/config.mk endif # @@ -148,6 +151,10 @@ ALL_TRASH = $(TARGETS) $(OBJS) $(OBJDIR) LOGS TAGS $(GARBAGE) \ $(NOSUCHFILE) \ so_locations +ifdef USE_AUTOCONF +ALL_TRASH := $(filter-out $(OBJDIR), $(ALL_TRASH)) +endif + ifdef DIRS LOOP_OVER_DIRS = \ @for d in $(DIRS); do \ @@ -180,7 +187,11 @@ clean:: +$(LOOP_OVER_DIRS) clobber:: +ifdef USE_AUTOCONF + rm -rf $(OBJS) $(TARGETS) $(GARBAGE) so_locations $(NOSUCHFILE) +else rm -rf $(OBJS) $(TARGETS) $(OBJDIR) $(GARBAGE) so_locations $(NOSUCHFILE) +endif +$(LOOP_OVER_DIRS) realclean clobber_all:: @@ -335,18 +346,18 @@ else $(CC) -Fo$@ -c $(CFLAGS) $*.c endif else - $(CC) -o $@ -c $(CFLAGS) $*.c + $(CC) -o $@ -c $(CFLAGS) $< endif $(OBJDIR)/%.$(OBJ_SUFFIX): %.s @$(MAKE_OBJDIR) - $(AS) -o $@ $(ASFLAGS) -c $*.s + $(AS) -o $@ $(ASFLAGS) -c $< %.i: %.c $(CC) -C -E $(CFLAGS) $< > $*.i %: %.pl - rm -f $@; cp $*.pl $@; chmod +x $@ + rm -f $@; cp $< $@; chmod +x $@ ################################################################################ # Special gmake rules. diff --git a/mozilla/nsprpub/include/config.h.in b/mozilla/nsprpub/include/config.h.in new file mode 100644 index 00000000000..cbed5385d98 --- /dev/null +++ b/mozilla/nsprpub/include/config.h.in @@ -0,0 +1,145 @@ +/* + * The contents of this file are subject to the Mozilla Public License + * Version 1.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License + * at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See + * the License for the specific language governing rights and + * limitations under the License. + * + * The Original Code is this file as it was released upon August 6, 1998. + * + * The Initial Developer of this code under the MPL is Christopher + * Seawood, . Portions created by Christopher Seawood + * are Copyright (C) 1998 Christopher Seawood. All Rights Reserved. + */ + +/* Define if using alloca.c. */ +#undef C_ALLOCA + +/* Define to empty if the keyword does not work. */ +#undef const + +/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. + This function is required for alloca.c support on those systems. */ +#undef CRAY_STACKSEG_END + +/* Define if you have alloca, as a function or macro. */ +#undef HAVE_ALLOCA + +/* Define if you have and it should be used (not on Ultrix). */ +#undef HAVE_ALLOCA_H + +/* Define if you don't have vprintf but do have _doprnt. */ +#undef HAVE_DOPRNT + +/* Define if you have that is POSIX.1 compatible. */ +#undef HAVE_SYS_WAIT_H + +/* Define if you have the vprintf function. */ +#undef HAVE_VPRINTF + +/* Define to `int' if doesn't define. */ +#undef pid_t + +/* Define if you need to in order for stat and other things to work. */ +#undef _POSIX_SOURCE + +/* Define for reasons UNKNOWN */ +#undef _BSD_SOURCE + +/* Define as the return type of signal handlers (int or void). */ +#undef RETSIGTYPE + +/* Define to `unsigned' if doesn't define. */ +#undef size_t + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown + */ +#undef STACK_DIRECTION + +/* Define if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define if `sys_siglist' is declared by . */ +#undef SYS_SIGLIST_DECLARED + +/* Define if you can safely include both and . */ +#undef TIME_WITH_SYS_TIME + +/* Define if the X Window System is missing or not being used. */ +#undef X_DISPLAY_MISSING + +/* package name */ +#undef PACKAGE + +/* package version */ +#undef VERSION + +/* Define if you have the gethostname function. */ +#undef HAVE_GETHOSTNAME + +/* Define if you have the gettimeofday function. */ +#undef HAVE_GETTIMEOFDAY + +/* Define if you have the memmove function. */ +#undef HAVE_MEMMOVE + +/* Define if you have the poll function. */ +#undef HAVE_POLL + +/* Define if you have the select function. */ +#undef HAVE_SELECT + +/* Define if you have the strcspn function. */ +#undef HAVE_STRCSPN + +/* Define if you have the strdup function. */ +#undef HAVE_STRDUP + +/* Define if you have the strerror function. */ +#undef HAVE_STRERROR + +/* Define if you have the strncasecmp function. */ +#undef HAVE_STRNCASECMP + +/* Define if you have the usleep function. */ +#undef HAVE_USLEEP + +/* Define if you have the header file. */ +#undef HAVE_FCNTL_H + +/* Define if you have the header file. */ +#undef HAVE_GETOPT_H + +/* Define if you have the header file. */ +#undef HAVE_IOCTL_H + +/* Define if you have the header file. */ +#undef HAVE_LIBINTL_H + +/* Define if you have the header file. */ +#undef HAVE_LIMITS_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_BITYPES_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_IOCTL_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_TIME_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define if you have the header file. */ +#undef HAVE_UNISTD_H + diff --git a/mozilla/nsprpub/lib/Makefile.in b/mozilla/nsprpub/lib/Makefile.in new file mode 100644 index 00000000000..091558fe311 --- /dev/null +++ b/mozilla/nsprpub/lib/Makefile.in @@ -0,0 +1,37 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = .. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +export NSPR20=1 + +include $(topsrcdir)/config/config.mk + +DIRS = ds libc msgc + +include $(topsrcdir)/config/rules.mk + +export:: $(TARGETS) + +install:: export diff --git a/mozilla/nsprpub/lib/ds/Makefile.in b/mozilla/nsprpub/lib/ds/Makefile.in new file mode 100644 index 00000000000..8c4241100af --- /dev/null +++ b/mozilla/nsprpub/lib/ds/Makefile.in @@ -0,0 +1,124 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../.. +topsrcdir = @top_srcdir@/nsprpub +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +# Disable optimization of the nspr on SunOS4.1.3 +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +OPTIMIZER = +endif +endif + +INCLUDES = -I$(DIST)/include/private -I$(DIST)/include + +CSRCS = \ + plarena.c \ + plevent.c \ + plhash.c \ + plvector.c \ + $(NULL) + +HEADERS = \ + plarenas.h \ + plarena.h \ + plevent.h \ + plhash.h \ + plvector.h \ + $(NULL) + +HEADERS := $(addprefix $(srcdir)/, $(HEADERS)) + +ifeq ($(OS_ARCH), WINNT) +ifeq (,$(filter-out WIN16 OS2,$(OS_TARGET))) +# OS_CFLAGS = $(OS_EXE_CFLAGS) +EXTRA_LIBS = $(DIST)/lib/nspr$(MOD_VERSION).lib +else +DLLBASE=/BASE:0x30000000 +RES=$(OBJDIR)/ds.res +RESNAME=$(MOD_DEPTH)/pr/src/nspr.rc +OS_LIBS = user32.lib +EXTRA_LIBS = $(DIST)/lib/libnspr$(MOD_VERSION).lib + +ifdef MOZ_DEBUG +ifdef GLOWCODE +EXTRA_LIBS += $(GLOWDIR)/glowcode.lib +endif +endif + +endif +else +ifeq ($(OS_ARCH), AIX) +ifeq ($(CLASSIC_NSPR),1) +OS_LIBS += -lc +else +OS_LIBS += -lc_r +endif +endif +ifeq ($(OS_ARCH)$(OS_RELEASE), AIX4.1) +EXTRA_LIBS = -L$(DIST)/lib -lnspr$(MOD_VERSION)_shr +else +EXTRA_LIBS = -L$(DIST)/lib -lnspr$(MOD_VERSION) +endif +endif + +# On NCR and SCOOS, we can't link with extra libraries when +# we build a shared library. If we do so, the linker doesn't +# complain, but we would run into weird problems at run-time. +# Therefore on these platforms, we link just the .o files. +ifeq ($(OS_ARCH),NCR) +EXTRA_LIBS = +endif +ifeq ($(OS_ARCH),SCOOS) +EXTRA_LIBS = +endif + +LIBRARY_NAME = plds +LIBRARY_VERSION = $(MOD_VERSION) + +RELEASE_HEADERS = $(HEADERS) +RELEASE_HEADERS_DEST = $(RELEASE_INCLUDE_DIR) +RELEASE_LIBS = $(TARGETS) + +include $(topsrcdir)/config/rules.mk + +# +# The Client build wants the shared libraries in $(DIST)/bin, +# so we also install them there. +# + +export:: $(TARGETS) + $(INSTALL) -m 444 $(HEADERS) $(DIST)/include + $(INSTALL) -m 444 $(TARGETS) $(DIST)/lib + $(INSTALL) -m 444 $(SHARED_LIBRARY) $(DIST)/bin +ifeq ($(MOZ_BITS),16) + $(INSTALL) -m 444 $(HEADERS) $(MOZ_INCL) + $(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/lib + $(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/bin +endif + +install:: export + diff --git a/mozilla/nsprpub/lib/libc/Makefile.in b/mozilla/nsprpub/lib/libc/Makefile.in new file mode 100644 index 00000000000..2e890d26a85 --- /dev/null +++ b/mozilla/nsprpub/lib/libc/Makefile.in @@ -0,0 +1,37 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +export NSPR20=1 + +include $(topsrcdir)/config/config.mk + +DIRS = include src + +include $(topsrcdir)/config/rules.mk + +export:: $(TARGETS) + +install:: export diff --git a/mozilla/nsprpub/lib/libc/include/Makefile.in b/mozilla/nsprpub/lib/libc/include/Makefile.in new file mode 100644 index 00000000000..2801cfecbce --- /dev/null +++ b/mozilla/nsprpub/lib/libc/include/Makefile.in @@ -0,0 +1,43 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +HEADERS = $(wildcard $(srcdir)/*.h) + +RELEASE_HEADERS = $(HEADERS) +RELEASE_HEADERS_DEST = $(RELEASE_INCLUDE_DIR) + +include $(topsrcdir)/config/rules.mk + +export:: $(HEADERS) + $(INSTALL) -m 444 $(HEADERS) $(DIST)/include +ifeq ($(MOZ_BITS),16) + $(INSTALL) -m 444 $(HEADERS) $(MOZ_INCL) +endif + +install:: export + diff --git a/mozilla/nsprpub/lib/libc/src/Makefile.in b/mozilla/nsprpub/lib/libc/src/Makefile.in new file mode 100644 index 00000000000..0f86f5affe5 --- /dev/null +++ b/mozilla/nsprpub/lib/libc/src/Makefile.in @@ -0,0 +1,117 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +# Disable optimization of the nspr on SunOS4.1.3 +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +OPTIMIZER = +endif +endif + +INCLUDES = -I$(DIST)/include + +CSRCS =\ + strlen.c \ + strcpy.c \ + strdup.c \ + strcat.c \ + strcmp.c \ + strccmp.c \ + strchr.c \ + strpbrk.c \ + strstr.c \ + strcstr.c \ + base64.c \ + plerror.c \ + plgetopt.c \ + $(NULL) + +LIBRARY_NAME = plc +LIBRARY_VERSION = $(MOD_VERSION) + +RELEASE_LIBS = $(TARGETS) + +ifeq ($(OS_ARCH),WINNT) +ifeq (,$(filter-out WIN16 OS2,$(OS_TARGET))) +EXTRA_LIBS = $(DIST)/lib/nspr$(MOD_VERSION).lib +else +DLLBASE=/BASE:0x30000000 +RES=$(OBJDIR)/plc.res +RESNAME=$(MOD_DEPTH)/pr/src/nspr.rc +EXTRA_LIBS = $(DIST)/lib/libnspr$(MOD_VERSION).lib + +ifdef MOZ_DEBUG +ifdef GLOWCODE +EXTRA_LIBS += $(GLOWDIR)/glowcode.lib +endif +endif + +endif +else +ifeq ($(OS_ARCH), AIX) +ifeq ($(CLASSIC_NSPR),1) +OS_LIBS += -lc +else +OS_LIBS += -lc_r +endif +endif +ifeq ($(OS_ARCH)$(OS_RELEASE), AIX4.1) +EXTRA_LIBS = -L$(DIST)/lib -lnspr$(MOD_VERSION)_shr +else +EXTRA_LIBS = -L$(DIST)/lib -lnspr$(MOD_VERSION) +endif +endif + +# On NCR and SCOOS, we can't link with extra libraries when +# we build a shared library. If we do so, the linker doesn't +# complain, but we would run into weird problems at run-time. +# Therefore on these platforms, we link just the .o files. +ifeq ($(OS_ARCH),NCR) +EXTRA_LIBS = +endif +ifeq ($(OS_ARCH),SCOOS) +EXTRA_LIBS = +endif + +include $(topsrcdir)/config/rules.mk + +# +# The Client build wants the shared libraries in $(DIST)/bin, +# so we also install them there. +# + +export:: $(TARGETS) + $(INSTALL) -m 444 $(TARGETS) $(DIST)/lib + $(INSTALL) -m 444 $(SHARED_LIBRARY) $(DIST)/bin +ifeq ($(MOZ_BITS),16) + $(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/lib + $(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/bin +endif + +install:: export + diff --git a/mozilla/nsprpub/lib/msgc/Makefile.in b/mozilla/nsprpub/lib/msgc/Makefile.in new file mode 100644 index 00000000000..2995f2b4cbc --- /dev/null +++ b/mozilla/nsprpub/lib/msgc/Makefile.in @@ -0,0 +1,37 @@ +# +# 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. +# + +MOD_DEPTH = ../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +DIRS = include src + +ifdef ENABLE_TESTS +DIRS += tests +endif + +include $(topsrcdir)/config/rules.mk + +export:: $(TARGETS) + +install:: export diff --git a/mozilla/nsprpub/lib/msgc/include/Makefile.in b/mozilla/nsprpub/lib/msgc/include/Makefile.in new file mode 100644 index 00000000000..b378b3ef511 --- /dev/null +++ b/mozilla/nsprpub/lib/msgc/include/Makefile.in @@ -0,0 +1,43 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +EXPORT_HEADERS = $(srcdir)/prgc.h +HEADERS = $(EXPORT_HEADERS) $(srcdir)/gcint.h + +RELEASE_HEADERS = $(EXPORT_HEADERS) +RELEASE_HEADERS_DEST = $(RELEASE_INCLUDE_DIR) + +include $(topsrcdir)/config/rules.mk + +export:: $(EXPORT_HEADERS) + $(INSTALL) -m 444 $(EXPORT_HEADERS) $(DIST)/include +ifeq ($(MOZ_BITS),16) + $(INSTALL) -m 444 $(EXPORT_HEADERS) $(MOZ_INCL) +endif + +install:: export diff --git a/mozilla/nsprpub/lib/msgc/src/Makefile.in b/mozilla/nsprpub/lib/msgc/src/Makefile.in new file mode 100644 index 00000000000..c050d74fd2a --- /dev/null +++ b/mozilla/nsprpub/lib/msgc/src/Makefile.in @@ -0,0 +1,119 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +# Disable optimization of the nspr on SunOS4.1.3 +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +OPTIMIZER = +endif +endif + +INCLUDES = -I$(DIST)/include -I$(srcdir)/../include + +CSRCS = prgcapi.c prmsgc.c + +ifeq ($(OS_ARCH),WINNT) +ifeq ($(OS_TARGET),WIN16) +CSRCS += win16gc.c +else +ifeq ($(OS_TARGET),OS2) +CSRCS += os2gc.c +else +CSRCS += win32gc.c +endif +endif +else +CSRCS += unixgc.c +endif + +NSPR_VERSION = $(MOD_VERSION) + +ifeq ($(OS_ARCH), WINNT) +ifeq (,$(filter-out WIN16 OS2,$(OS_TARGET))) +EXTRA_LIBS = $(DIST)/lib/nspr$(NSPR_VERSION).lib +else +DLLBASE=/BASE:0x30000000 +#RES=$(OBJDIR)/ds.res +#RESNAME=$(MOD_DEPTH)/pr/src/nspr.rc +#OS_LIBS = user32.lib +EXTRA_LIBS = $(DIST)/lib/libnspr$(NSPR_VERSION).lib + +ifdef MOZ_DEBUG +ifdef GLOWCODE +EXTRA_LIBS += $(GLOWDIR)/glowcode.lib +endif +endif + +endif +else +ifeq ($(OS_ARCH), AIX) +ifeq ($(CLASSIC_NSPR),1) +OS_LIBS += -lc +else +OS_LIBS += -lc_r +endif +endif +ifeq ($(OS_ARCH)$(OS_RELEASE), AIX4.1) +EXTRA_LIBS = -L$(DIST)/lib -lnspr$(NSPR_VERSION)_shr +else +EXTRA_LIBS = -L$(DIST)/lib -lnspr$(NSPR_VERSION) +endif +endif + +# On NCR and SCOOS, we can't link with extra libraries when +# we build a shared library. If we do so, the linker doesn't +# complain, but we would run into weird problems at run-time. +# Therefore on these platforms, we link just the .o files. +ifeq ($(OS_ARCH),NCR) +EXTRA_LIBS = +endif +ifeq ($(OS_ARCH),SCOOS) +EXTRA_LIBS = +endif + +LIBRARY_NAME = msgc +LIBRARY_VERSION = $(MOD_VERSION) + +RELEASE_LIBS = $(TARGETS) + +include $(topsrcdir)/config/rules.mk + +# +# The Client build wants the shared libraries in $(DIST)/bin, +# so we also install them there. +# + +export:: $(TARGETS) + $(INSTALL) -m 444 $(TARGETS) $(DIST)/lib + $(INSTALL) -m 444 $(SHARED_LIBRARY) $(DIST)/bin +ifeq ($(MOZ_BITS),16) + $(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/lib + $(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/bin +endif + +install:: export diff --git a/mozilla/nsprpub/lib/msgc/tests/Makefile.in b/mozilla/nsprpub/lib/msgc/tests/Makefile.in new file mode 100644 index 00000000000..87400a7f352 --- /dev/null +++ b/mozilla/nsprpub/lib/msgc/tests/Makefile.in @@ -0,0 +1,293 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +ifeq ($(OS_TARGET), WIN16) +OS_CFLAGS = $(OS_EXE_CFLAGS) +W16STDIO = $(MOD_DEPTH)/pr/src/md/windows/$(OBJDIR)/w16stdio.$(OBJ_SUFFIX) +endif + +ifeq ($(OS_TARGET), OS2) +OS_CFLAGS = $(OS_EXE_CFLAGS) +endif + +CSRCS = gc1.c thrashgc.c + +ifeq ($(OS_ARCH), WINNT) +PROG_SUFFIX = .exe +else +PROG_SUFFIX = +endif + +PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=$(PROG_SUFFIX))) + +TARGETS = $(PROGS) $(OBJS) + +INCLUDES = -I$(DIST)/include + +# Setting the variables LDOPTS and LIBPR. We first initialize +# them to the default values, then adjust them for some platforms. +LDOPTS = -L$(DIST)/lib +NSPR_VERSION = $(MOD_VERSION) +GC_VERSION = $(MOD_VERSION) +LIBPR = -lnspr$(NSPR_VERSION) +LIBPLC = -lplc$(NSPR_VERSION) +LIBGC = -lmsgc$(GC_VERSION) + +ifeq ($(OS_ARCH), WINNT) +ifeq ($(OS_TARGET), WIN16) + LIBPR = $(DIST)/lib/nspr$(NSPR_VERSION).lib + LIBPLC = $(DIST)/lib/plc$(NSPR_VERSION).lib + LIBGC= $(DIST)/lib/msgc$(GC_VERSION).lib +else +ifeq ($(OS_TARGET),OS2) + LDOPTS = -NOE -DEBUG -nologo -PMTYPE:VIO + LIBPR = $(DIST)/lib/nspr$(NSPR_VERSION).lib + LIBPLC = $(DIST)/lib/plc$(NSPR_VERSION).lib + LIBGC= $(DIST)/lib/msgc$(GC_VERSION).lib +else + LDOPTS = -NOLOGO -DEBUG -DEBUGTYPE:CV -INCREMENTAL:NO + LIBPR = $(DIST)/lib/libnspr$(NSPR_VERSION).$(LIB_SUFFIX) + LIBPLC = $(DIST)/lib/libplc$(NSPR_VERSION).$(LIB_SUFFIX) + LIBGC= $(DIST)/lib/libmsgc$(GC_VERSION).$(LIB_SUFFIX) +endif +endif +endif + +ifneq ($(OS_ARCH), WINNT) +PWD = $(shell pwd) +endif + +ifeq ($(OS_ARCH), IRIX) +LDOPTS += -rpath $(PWD)/$(DIST)/lib -rdata_shared + +# For 6.x machines, include this flag +ifeq ($(basename $(OS_RELEASE)),6) +ifeq ($(USE_N32),1) +LDOPTS += -n32 +else +LDOPTS += -32 +endif +endif + +endif + +ifeq ($(OS_ARCH), OSF1) +# I haven't figured out how to pass -rpath to cc on OSF1 V3.2, so +# we do static linking. +ifeq ($(OS_RELEASE), V3.2) + LIBPR = $(DIST)/lib/libnspr$(NSPR_VERSION).a + LIBPLC = $(DIST)/lib/libplc$(NSPR_VERSION).a + LIBGC = $(DIST)/lib/libmsgc$(GC_VERSION).a + EXTRA_LIBS = -lc_r +else + LDOPTS += -rpath $(PWD)/$(DIST)/lib +endif +endif + +ifeq ($(OS_ARCH), HP-UX) +LDOPTS += -Wl,+s,+b,$(PWD)/$(DIST)/lib +endif + +# AIX +ifeq ($(OS_ARCH),AIX) +ifeq ($(CLASSIC_NSPR),1) +LDOPTS += -blibpath:.:$(PWD)/$(DIST)/lib:/usr/lpp/xlC/lib:/usr/lib:/lib +else +LDOPTS += -blibpath:.:$(PWD)/$(DIST)/lib:/usr/lib/threads:/usr/lpp/xlC/lib:/usr/lib:/lib +endif +ifeq ($(OS_ARCH)$(OS_RELEASE),AIX4.1) +LIBPR = -lnspr$(NSPR_VERSION)_shr +LIBPLC = -lplc$(NSPR_VERSION)_shr +LIBGC = -lmsgc$(GC_VERSION)_shr +else +LDOPTS += -brtl +EXTRA_LIBS = -ldl +endif +endif + +# Solaris +ifeq ($(OS_ARCH), SunOS) +ifneq ($(OS_RELEASE), 4.1.3_U1) +ifdef NS_USE_GCC +LDOPTS += -Xlinker -R -Xlinker $(PWD)/$(DIST)/lib +else +LDOPTS += -R $(PWD)/$(DIST)/lib +endif +endif + +ifneq ($(LOCAL_THREADS_ONLY),1) +# SunOS 5.4 and 5.5 need to link with -lthread or -lpthread, +# even though we already linked with these system libraries +# when we built libnspr.so. +ifeq ($(OS_RELEASE), 5.4) +EXTRA_LIBS = -lthread +endif + +ifeq ($(OS_RELEASE), 5.5) +ifdef USE_PTHREADS +EXTRA_LIBS = -lpthread +else +EXTRA_LIBS = -lthread +endif +endif +endif # LOCAL_THREADS_ONLY +endif # SunOS + +ifeq ($(OS_ARCH),NEC) +EXTRA_LIBS = $(OS_LIBS) +# This hardcodes in the executable programs the directory to find +# libnspr.so etc. at program startup. Equivalent to the -R or -rpath +# option for ld on other platforms. +export LD_RUN_PATH = $(PWD)/$(DIST)/lib +endif + +ifeq ($(OS_ARCH), NCR) +# XXX: We see some strange problems when we link with libnspr.so. +# So for now we use static libraries on NCR. The shared library +# stuff below is commented out. +LIBPR = $(DIST)/lib/libnspr$(NSPR_VERSION).a +LIBPLC = $(DIST)/lib/libplc$(NSPR_VERSION).a +LIBGC = $(DIST)/lib/libmsgc$(GC_VERSION).a +EXTRA_LIBS = -lsocket -lnsl -ldl + +# NCR needs to link against -lsocket -lnsl (and -lc, which is linked +# implicitly by $(CC)) again even though we already linked with these +# system libraries when we built libnspr.so. +#EXTRA_LIBS = -lsocket -lnsl +# This hardcodes in the executable programs the directory to find +# libnspr.so etc. at program startup. Equivalent to the -R or -rpath +# option for ld on other platforms. +#export LD_RUN_PATH = $(PWD)/$(DIST)/lib +endif + +ifeq ($(OS_ARCH), Linux) +ifeq ($(OS_RELEASE), 1.2) +EXTRA_LIBS = -ldl +endif +endif + +ifeq ($(OS_ARCH), SCOOS) +# SCO Unix needs to link against -lsocket again even though we +# already linked with these system libraries when we built libnspr.so. +EXTRA_LIBS = -lsocket +# This hardcodes in the executable programs the directory to find +# libnspr.so etc. at program startup. Equivalent to the -R or -rpath +# option for ld on other platforms. +export LD_RUN_PATH = $(PWD)/$(DIST)/lib +endif + +ifeq ($(OS_ARCH),SINIX) +EXTRA_LIBS = -lsocket -lnsl -lresolv -ldl +# This hardcodes in the executable programs the directory to find +# libnspr.so etc. at program startup. Equivalent to the -R or -rpath +# option for ld on other platforms. +export LD_RUN_PATH = $(PWD)/$(DIST)/lib +endif + +ifeq ($(OS_ARCH), UNIXWARE) +export LD_RUN_PATH = $(PWD)/$(DIST)/lib +endif + +ifeq ($(OS_ARCH),BSD_OS) +EXTRA_LIBS = -ldl +endif + +##################################################### +# +# The rules +# +##################################################### + +include $(topsrcdir)/config/rules.mk + +AIX_PRE_4_2 = 0 +ifeq ($(OS_ARCH),AIX) +ifneq ($(OS_RELEASE),4.2) +ifneq ($(USE_PTHREADS), 1) +#AIX_PRE_4_2 = 1 +endif +endif +endif + +ifeq ($(AIX_PRE_4_2),1) + +# AIX releases prior to 4.2 need a special two-step linking hack +# in order to both override the system select() and be able to +# get at the original system select(). +# +# We use a pattern rule in ns/nspr20/config/rules.mk to generate +# the .$(OBJ_SUFFIX) file from the .c source file, then do the +# two-step linking hack below. + +$(OBJDIR)/%: $(OBJDIR)/%.$(OBJ_SUFFIX) + @$(MAKE_OBJDIR) + rm -f $@ $(AIX_TMP) + $(CC) $(AIX_LINK_OPTS) -o $(AIX_TMP) $< $(DIST)/lib/libnspr$(NSPR_VERSION).a + $(CC) -o $@ $(AIX_TMP) $(AIX_WRAP) + rm -f $(AIX_TMP) + +else + +# All platforms that are not AIX pre-4.2. + +$(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX) + @$(MAKE_OBJDIR) +ifeq ($(OS_ARCH), WINNT) +ifeq ($(OS_TARGET),WIN16) + echo system windows >w16link + echo name $@ >>w16link + echo option map >>w16link +# echo option CASEEXACT >>w16link + echo option stack=16K >>w16link + echo debug $(DEBUGTYPE) all >>w16link + echo file >>w16link + echo $< , >>w16link + echo $(W16STDIO) >>w16link + echo library >>w16link + echo $(LIBPR), >>w16link + echo $(LIBPLC), >>w16link + echo $(LIBGC), >>w16link + echo winsock.lib >>w16link + wlink @w16link. +else +ifeq ($(OS_TARGET),OS2) + $(LINK) $(LDOPTS) $< $(LIBGC) $(LIBPLC) $(LIBPR) so32dll.lib tcp32dll.lib -MAP:$(@:.exe=.map) -out:$@ +else + link $(LDOPTS) $< $(LIBGC) $(LIBPLC) $(LIBPR) wsock32.lib -out:$@ +endif +endif +else + $(CC) $(XCFLAGS) $< $(LDOPTS) $(LIBGC) $(LIBPLC) $(LIBPR) $(EXTRA_LIBS) -o $@ +endif + +endif + +export:: $(TARGETS) +export:: install +clean:: + rm -f $(TARGETS) diff --git a/mozilla/nsprpub/lib/prstreams/Makefile.in b/mozilla/nsprpub/lib/prstreams/Makefile.in new file mode 100644 index 00000000000..8101481ac25 --- /dev/null +++ b/mozilla/nsprpub/lib/prstreams/Makefile.in @@ -0,0 +1,114 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +# Disable optimization of the nspr on SunOS4.1.3 +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +OPTIMIZER = +endif +endif +ifeq ($(OS_ARCH), IRIX) +CFLAGS += -KPIC +ifneq ($(OS_RELEASE),5.3) +CFLAGS += -exceptions +endif +endif + +INCLUDES = -I$(DIST)/include -I$(srcdir)/../../../include + +HEADERS = $(wildcard $(srcdir)/*.h) + +CXXSRCS = \ + prstrms.cpp \ + $(NULL) + +OBJS = $(addprefix $(OBJDIR)/,$(CXXSRCS:.cpp=.$(OBJ_SUFFIX))) + +ifeq ($(OS_ARCH), WINNT) +ifeq (,$(filter-out WIN16 OS2,$(OS_TARGET))) +EXTRA_LIBS = $(DIST)/lib/nspr$(MOD_VERSION).lib +else +DLLBASE=/BASE:0x30000000 +RES=$(OBJDIR)/prstrms.res +RESNAME=$(MOD_DEPTH)/pr/src/nspr.rc +OS_LIBS = user32.lib +EXTRA_LIBS = $(DIST)/lib/libnspr$(MOD_VERSION).lib +endif +else +ifeq ($(OS_ARCH), AIX) + ifeq ($(OS_RELEASE), 4.1) + ifeq ($(CLASSIC_NSPR),1) + OS_LIBS += -lC -lc + else + OS_LIBS += -lC_r -lc_r + endif + else + ifeq ($(CLASSIC_NSPR),1) + MKSHLIB = /usr/lpp/xlC/bin/makeC++SharedLib -p 0 + else + MKSHLIB = /usr/lpp/xlC/bin/makeC++SharedLib_r -p 0 + endif + OS_LIBS += -ldl + endif +endif +ifeq ($(OS_ARCH)$(OS_RELEASE), AIX4.1) +EXTRA_LIBS = -L$(DIST)/lib -lnspr$(MOD_VERSION)_shr +else +EXTRA_LIBS = -L$(DIST)/lib -lnspr$(MOD_VERSION) +endif +endif + +# On NCR and SCOOS, we can't link with extra libraries when +# we build a shared library. If we do so, the linker doesn't +# complain, but we would run into weird problems at run-time. +# Therefore on these platforms, we link just the object files. +ifeq ($(OS_ARCH),NCR) +EXTRA_LIBS = +endif +ifeq ($(OS_ARCH),SCOOS) +EXTRA_LIBS = +endif + +ifeq ($(OS_ARCH), UNIXWARE) +OS_LIBS += -lC +endif + +LIBRARY_NAME = prstrms +LIBRARY_VERSION = $(MOD_VERSION) + +RELEASE_HEADERS = $(HEADERS) +RELEASE_HEADERS_DEST = $(RELEASE_INCLUDE_DIR) +RELEASE_LIBS = $(TARGETS) + +include $(topsrcdir)/config/rules.mk + +export:: $(TARGETS) $(HEADERS) + $(INSTALL) -m 444 $(HEADERS) $(DIST)/include + $(INSTALL) -m 444 $(TARGETS) $(DIST)/lib + +install:: export diff --git a/mozilla/nsprpub/lib/tests/Makefile.in b/mozilla/nsprpub/lib/tests/Makefile.in new file mode 100644 index 00000000000..05e990ca990 --- /dev/null +++ b/mozilla/nsprpub/lib/tests/Makefile.in @@ -0,0 +1,197 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +ifeq ($(OS_TARGET), WIN16) +OS_CFLAGS = $(OS_EXE_CFLAGS) +endif + +CSRCS = \ + string.c \ + base64t.c + +ifeq ($(OS_ARCH), WINNT) +PROG_SUFFIX = .exe +else +PROG_SUFFIX = +endif + +PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=$(PROG_SUFFIX))) + +TARGETS = $(PROGS) $(OBJS) + +INCLUDES = -I$(DIST)/include + +# Setting the variables LDOPTS and LIBPR. We first initialize +# them to the default values, then adjust them for some platforms. +LDOPTS = -L$(DIST)/lib +LIBPR = -lnspr$(MOD_VERSION) +LIBPLC = -lplc$(MOD_VERSION) + +ifeq ($(OS_ARCH), WINNT) +ifeq ($(OS_TARGET), WIN16) + LIBPR = $(DIST)/lib/nspr$(MOD_VERSION).lib + LIBPLC= $(DIST)/lib/plc$(MOD_VERSION).lib +else +LDOPTS = -NOLOGO -DEBUG -DEBUGTYPE:CV -INCREMENTAL:NO +LIBPR = $(DIST)/lib/libnspr$(MOD_VERSION).$(LIB_SUFFIX) +LIBPLC= $(DIST)/lib/libplc$(MOD_VERSION).$(LIB_SUFFIX) +endif +endif + +ifneq ($(OS_ARCH), WINNT) +PWD = $(shell pwd) +endif + +ifeq ($(OS_ARCH), IRIX) +LDOPTS += -rpath $(PWD)/$(DIST)/lib +endif + +ifeq ($(OS_ARCH), OSF1) +LDOPTS += -rpath $(PWD)/$(DIST)/lib -lpthread +endif + +ifeq ($(OS_ARCH), HP-UX) +LDOPTS += -Wl,+s,+b,$(PWD)/$(DIST)/lib +endif + +# AIX +ifeq ($(OS_ARCH),AIX) +LDOPTS += -blibpath:.:$(PWD)/$(DIST)/lib:/usr/lib/threads:/usr/lpp/xlC/lib:/usr/lib:/lib +LIBPR = -lnspr$(MOD_VERSION)_shr +LIBPLC = -lplc$(MOD_VERSION)_shr +endif + +# Solaris +ifeq ($(OS_ARCH), SunOS) +ifneq ($(OS_RELEASE), 4.1.3_U1) +ifdef NS_USE_GCC +LDOPTS += -Xlinker -R -Xlinker $(PWD)/$(DIST)/lib +else +LDOPTS += -R $(PWD)/$(DIST)/lib +endif +endif + +# SunOS 5.4 and 5.5 need to link with -lthread or -lpthread, +# even though we already linked with these system libraries +# when we built libnspr.so. +ifeq ($(OS_RELEASE), 5.4) +EXTRA_LIBS = -lthread +endif + +ifeq ($(OS_RELEASE), 5.5) +ifdef USE_PTHREADS +EXTRA_LIBS = -lpthread +else +EXTRA_LIBS = -lthread +endif +endif +endif # SunOS + +ifeq ($(OS_ARCH), NCR) +# NCR needs to link against -lsocket -lnsl (and -lc, which is linked +# implicitly by $(CC)) again even though we already linked with these +# system libraries when we built libnspr.so. +EXTRA_LIBS = -lsocket -lnsl +# This hardcodes in the executable programs the directory to find +# libnspr.so etc. at program startup. Equivalent to the -R or -rpath +# option for ld on other platforms. +export LD_RUN_PATH = $(PWD)/$(DIST)/lib +endif + +##################################################### +# +# The rules +# +##################################################### + +include $(topsrcdir)/config/rules.mk + +AIX_PRE_4_2 = 0 +ifeq ($(OS_ARCH),AIX) +ifneq ($(OS_RELEASE),4.2) +ifneq ($(USE_PTHREADS), 1) +#AIX_PRE_4_2 = 1 +endif +endif +endif + +ifeq ($(AIX_PRE_4_2),1) + +# AIX releases prior to 4.2 need a special two-step linking hack +# in order to both override the system select() and be able to +# get at the original system select(). +# +# We use a pattern rule in ns/nspr20/config/rules.mk to generate +# the .$(OBJ_SUFFIX) file from the .c source file, then do the +# two-step linking hack below. + +$(OBJDIR)/%: $(OBJDIR)/%.$(OBJ_SUFFIX) + @$(MAKE_OBJDIR) + rm -f $@ $(AIX_TMP) + $(CC) $(AIX_LINK_OPTS) -o $(AIX_TMP) $< $(DIST)/lib/libnspr$(MOD_VERSION).a + $(CC) -o $@ $(AIX_TMP) $(AIX_WRAP) + rm -f $(AIX_TMP) + +else + +# All platforms that are not AIX pre-4.2. + +$(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX) + @$(MAKE_OBJDIR) + +ifeq ($(OS_ARCH), WINNT) +ifeq ($(OS_TARGET),WIN16) + echo system windows >w16link + echo option map >>w16link + echo option stack=10K >>w16link + echo option heapsize=32K >>w16link + echo debug $(DEBUGTYPE) all >>w16link + echo name $@ >>w16link + echo file >>w16link + echo $< >>w16link + echo library >>w16link + echo $(LIBPR), >>w16link + echo $(LIBPLC), >>w16link + echo winsock.lib >>w16link + wlink @w16link. +else + link $(LDOPTS) $< $(LIBPR) $(LIBPLC) wsock32.lib -out:$@ +endif +else + $(CC) $(XCFLAGS) $< $(LDOPTS) $(LIBPR) $(LIBPLC) $(EXTRA_LIBS) -o $@ +endif + +endif + +export:: $(TARGETS) +install:: export +clean:: + rm -f $(TARGETS) + + + diff --git a/mozilla/nsprpub/pr/Makefile.in b/mozilla/nsprpub/pr/Makefile.in new file mode 100644 index 00000000000..d8b37c3d7ea --- /dev/null +++ b/mozilla/nsprpub/pr/Makefile.in @@ -0,0 +1,29 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = .. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +DIRS = include src + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/nsprpub/pr/include/Makefile.in b/mozilla/nsprpub/pr/include/Makefile.in new file mode 100644 index 00000000000..3172b64e0ce --- /dev/null +++ b/mozilla/nsprpub/pr/include/Makefile.in @@ -0,0 +1,42 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +DIRS = md private obsolete + +include $(topsrcdir)/config/config.mk + +HEADERS = $(wildcard $(srcdir)/*.h) + +RELEASE_HEADERS = $(HEADERS) +RELEASE_HEADERS_DEST = $(RELEASE_INCLUDE_DIR) + +include $(topsrcdir)/config/rules.mk + +export:: $(HEADERS) + $(INSTALL) -m 444 $(HEADERS) $(DIST)/include +ifeq ($(MOZ_BITS),16) + $(INSTALL) -m 444 $(HEADERS) $(MOZ_INCL) +endif diff --git a/mozilla/nsprpub/pr/include/md/Makefile.in b/mozilla/nsprpub/pr/include/md/Makefile.in new file mode 100644 index 00000000000..970ab29982d --- /dev/null +++ b/mozilla/nsprpub/pr/include/md/Makefile.in @@ -0,0 +1,137 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +HEADERS = $(wildcard $(srcdir)/*.h) + +include $(topsrcdir)/config/rules.mk + +ifeq ($(OS_ARCH),IRIX) +MDCPUCFG_H = _irix.cfg +endif + +ifeq ($(OS_ARCH),WINNT) +ifeq ($(OS_TARGET), WIN95) +MDCPUCFG_H = _win95.cfg +else +ifeq ($(OS_TARGET), WIN16) +MDCPUCFG_H = _win16.cfg +else +ifeq ($(OS_TARGET), OS2) +MDCPUCFG_H = _os2.cfg +else +MDCPUCFG_H = _winnt.cfg +endif +endif +endif +endif + +ifeq ($(OS_ARCH),AIX) +MDCPUCFG_H = _aix.cfg +endif + +ifeq ($(OS_ARCH),BSD_OS) +MDCPUCFG_H = _bsdi.cfg +endif + +ifeq ($(OS_ARCH),FreeBSD) +MDCPUCFG_H = _freebsd.cfg +endif + +ifeq ($(OS_ARCH),NetBSD) +MDCPUCFG_H = _netbsd.cfg +endif + +ifeq ($(OS_ARCH),HP-UX) +MDCPUCFG_H = _hpux.cfg +endif + +ifeq ($(OS_ARCH),Linux) +MDCPUCFG_H = _linux.cfg +endif + +ifeq ($(OS_ARCH),OSF1) +MDCPUCFG_H = _osf1.cfg +endif + +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +MDCPUCFG_H = _sunos4.cfg +else +MDCPUCFG_H = _solaris.cfg +endif +endif + +ifeq ($(OS_ARCH),SINIX) +MDCPUCFG_H = _reliantunix.cfg +endif + +ifeq ($(OS_ARCH),Rhapsody) +MDCPUCFG_H = _rhapsody.cfg +endif + +ifeq ($(OS_ARCH),NEWS-OS) +MDCPUCFG_H = _sony.cfg +endif + +ifeq ($(OS_ARCH),NEC) +MDCPUCFG_H = _nec.cfg +endif + +ifeq ($(OS_ARCH),SCOOS) +MDCPUCFG_H = _scoos.cfg +endif + +ifeq ($(OS_ARCH),UNIXWARE) +MDCPUCFG_H = _unixware.cfg +endif + +ifeq ($(OS_ARCH),NCR) +MDCPUCFG_H = _ncr.cfg +endif + +export:: $(HEADERS) $(MDCPUCFG_H) + $(INSTALL) -m 444 $(HEADERS) $(DIST)/include/md + $(INSTALL) -m 444 $(srcdir)/$(MDCPUCFG_H) $(DIST)/include +ifeq ($(MOZ_BITS),16) + cp $(DIST)/include/$(MDCPUCFG_H) $(DIST)/include/prcpucfg.h + $(INSTALL) -m 444 $(HEADERS) $(MOZ_INCL)/md + $(INSTALL) -m 444 $(MDCPUCFG_H) $(MOZ_INCL) + mv -f $(DIST)/include/$(MDCPUCFG_H) $(MOZ_INCL)/prcpucfg.h +else + mv -f $(DIST)/include/$(MDCPUCFG_H) $(DIST)/include/prcpucfg.h +endif + +release:: export + @echo "Copying machine-dependent prcpucfg.h" + @if test -z "$(BUILD_NUMBER)"; then \ + echo "BUILD_NUMBER must be defined"; \ + false; \ + fi + @if test ! -d $(RELEASE_INCLUDE_DIR); then \ + rm -rf $(RELEASE_INCLUDE_DIR); \ + $(NSINSTALL) -D $(RELEASE_INCLUDE_DIR);\ + fi + cp $(MDCPUCFG_H) $(RELEASE_INCLUDE_DIR)/prcpucfg.h diff --git a/mozilla/nsprpub/pr/include/obsolete/Makefile.in b/mozilla/nsprpub/pr/include/obsolete/Makefile.in new file mode 100644 index 00000000000..7c15fea44bb --- /dev/null +++ b/mozilla/nsprpub/pr/include/obsolete/Makefile.in @@ -0,0 +1,40 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +HEADERS = $(wildcard $(srcdir)/*.h) + +RELEASE_HEADERS = $(HEADERS) +RELEASE_HEADERS_DEST = $(RELEASE_INCLUDE_DIR)/obsolete + +include $(topsrcdir)/config/rules.mk + +export:: $(HEADERS) + $(INSTALL) -m 444 $(HEADERS) $(DIST)/include/obsolete +ifeq ($(MOZ_BITS),16) + $(INSTALL) -m 444 $(HEADERS) $(MOZ_INCL)/obsolete +endif diff --git a/mozilla/nsprpub/pr/include/private/Makefile.in b/mozilla/nsprpub/pr/include/private/Makefile.in new file mode 100644 index 00000000000..8f0811d727f --- /dev/null +++ b/mozilla/nsprpub/pr/include/private/Makefile.in @@ -0,0 +1,41 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +RELEASE_HEADERS = pprio.h pprthred.h prpriv.h +RELEASE_HEADERS_DEST = $(RELEASE_INCLUDE_DIR)/private + +HEADERS = $(RELEASE_HEADERS) primpl.h +HEADERS := $(addprefix $(srcdir)/, $(HEADERS)) + +include $(topsrcdir)/config/rules.mk + +export:: $(HEADERS) + $(INSTALL) -m 444 $(HEADERS) $(DIST)/include/private +ifeq ($(MOZ_BITS),16) + $(INSTALL) -m 444 $(HEADERS) $(MOZ_INCL)/private +endif diff --git a/mozilla/nsprpub/pr/src/Makefile.in b/mozilla/nsprpub/pr/src/Makefile.in new file mode 100644 index 00000000000..8275757a8fa --- /dev/null +++ b/mozilla/nsprpub/pr/src/Makefile.in @@ -0,0 +1,322 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../.. +topsrcdir = @top_srcdir@/nsprpub +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +ifdef USE_PTHREADS + DIRS = io linking malloc md memory misc pthreads threads +else + DIRS = io linking malloc md memory misc threads +endif + +# +# Define platform-dependent OS_LIBS +# + +# Disable optimization of the nspr on SunOS4.1.3 +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +OPTIMIZER = +export OPTIMIZER +OS_LIBS = -lm +else # 4.1.3_U1 +ifdef USE_PTHREADS +OS_LIBS = -lpthread -lposix4 -lsocket -lnsl -ldl +else +ifdef LOCAL_THREADS_ONLY +OS_LIBS = -lsocket -lnsl -ldl +else +OS_LIBS = -lthread -lposix4 -lsocket -lnsl -ldl +endif # LOCAL_THREADS_ONLY +endif # USE_PTHREADS +endif # 4.1.3_U1 +endif # SunOS + +ifeq ($(OS_ARCH), IRIX) +ifeq ($(USE_PTHREADS), 1) +OS_LIBS += -lpthread +endif +endif + +ifeq ($(OS_ARCH),AIX) +ifeq ($(CLASSIC_NSPR),1) +ifeq ($(OS_RELEASE),4.1) +OS_LIBS += -lsvld -lc +else +OS_LIBS += -ldl -lc +endif +else +ifeq ($(OS_RELEASE),4.1) +OS_LIBS += -lsvld -lC_r -lC -lpthreads -lc_r -lm /usr/lib/libc.a +else +OS_LIBS += -ldl -lC_r -lC -lpthreads -lc_r -lm /usr/lib/libc.a +endif +endif +endif + +# On AIX, we override malloc in non-pthread versions. On AIX 4.2 or +# above, this requires that we use the rtl-enabled version of libc.a. +ifeq ($(OS_ARCH),AIX) +ifneq ($(OS_RELEASE),4.1) +ifneq ($(USE_PTHREADS),1) +BUILD_AIX_RTL_LIBC = 1 +AIX_RTL_LIBC = $(OBJDIR)/libc.a +endif +endif +endif + +ifeq ($(OS_ARCH),OSF1) +ifneq ($(OS_RELEASE),V2.0) +OS_LIBS = -lc_r +endif +ifeq ($(USE_PTHREADS), 1) +OS_LIBS += -lpthread -lrt +endif +ifeq ($(USE_IPV6), 1) +OS_LIBS += -lip6 +endif +endif + +ifeq ($(OS_ARCH),Linux) +ifeq ($(USE_PTHREADS), 1) +OS_LIBS = -L/lib -lpthread -ldl -lc +else +OS_LIBS = -L/lib -ldl -lc +endif +endif + +ifeq ($(OS_ARCH),HP-UX) +ifeq ($(basename $(OS_RELEASE)),A.09) +OS_LIBS = -ldld -L/lib/pa1.1 -lm +else +OS_LIBS = -ldld -lm -lc +endif +ifeq ($(USE_PTHREADS), 1) +OS_LIBS += -lpthread +endif +ifeq ($(PTHREADS_USER), 1) +OS_LIBS += -lpthread +endif +endif + +ifeq ($(OS_ARCH),UNIXWARE) +OS_LIBS = -lsocket -lc +endif + +ifeq ($(OS_ARCH),NEWS-OS) +OS_LIBS = -lsocket -lnsl -lgen -lresolv +endif + +ifeq ($(OS_ARCH),WINNT) +ifeq ($(OS_TARGET),OS2) +OS_LIBS = so32dll.lib tcp32dll.lib +else +ifneq ($(OS_TARGET),WIN16) +OS_LIBS = wsock32.lib winmm.lib +endif +endif +endif + +# +# Define platform-dependent OBJS +# + +OBJS = \ + io/$(OBJDIR)/prmwait.$(OBJ_SUFFIX) \ + io/$(OBJDIR)/prmapopt.$(OBJ_SUFFIX) \ + io/$(OBJDIR)/priometh.$(OBJ_SUFFIX) \ + io/$(OBJDIR)/prlayer.$(OBJ_SUFFIX) \ + io/$(OBJDIR)/prlog.$(OBJ_SUFFIX) \ + io/$(OBJDIR)/prmmap.$(OBJ_SUFFIX) \ + io/$(OBJDIR)/prprf.$(OBJ_SUFFIX) \ + io/$(OBJDIR)/prscanf.$(OBJ_SUFFIX) \ + io/$(OBJDIR)/prstdio.$(OBJ_SUFFIX) \ + threads/$(OBJDIR)/prcmon.$(OBJ_SUFFIX) \ + linking/$(OBJDIR)/prlink.$(OBJ_SUFFIX) \ + malloc/$(OBJDIR)/prmalloc.$(OBJ_SUFFIX) \ + malloc/$(OBJDIR)/prmem.$(OBJ_SUFFIX) \ + md/$(OBJDIR)/prosdep.$(OBJ_SUFFIX) \ + memory/$(OBJDIR)/prseg.$(OBJ_SUFFIX) \ + misc/$(OBJDIR)/pralarm.$(OBJ_SUFFIX) \ + misc/$(OBJDIR)/pratom.$(OBJ_SUFFIX) \ + misc/$(OBJDIR)/prdtoa.$(OBJ_SUFFIX) \ + misc/$(OBJDIR)/prenv.$(OBJ_SUFFIX) \ + misc/$(OBJDIR)/prerror.$(OBJ_SUFFIX) \ + misc/$(OBJDIR)/prinit.$(OBJ_SUFFIX) \ + misc/$(OBJDIR)/prinrval.$(OBJ_SUFFIX) \ + misc/$(OBJDIR)/prlog2.$(OBJ_SUFFIX) \ + misc/$(OBJDIR)/prlong.$(OBJ_SUFFIX) \ + misc/$(OBJDIR)/prnetdb.$(OBJ_SUFFIX) \ + misc/$(OBJDIR)/prsystem.$(OBJ_SUFFIX) \ + misc/$(OBJDIR)/prthinfo.$(OBJ_SUFFIX) \ + misc/$(OBJDIR)/prtime.$(OBJ_SUFFIX) + +ifdef USE_PTHREADS +OBJS += \ + pthreads/$(OBJDIR)/ptsynch.$(OBJ_SUFFIX) \ + pthreads/$(OBJDIR)/ptio.$(OBJ_SUFFIX) \ + pthreads/$(OBJDIR)/ptthread.$(OBJ_SUFFIX) \ + pthreads/$(OBJDIR)/ptmisc.$(OBJ_SUFFIX) +else +OBJS += \ + io/$(OBJDIR)/prdir.$(OBJ_SUFFIX) \ + io/$(OBJDIR)/prfile.$(OBJ_SUFFIX) \ + io/$(OBJDIR)/prio.$(OBJ_SUFFIX) \ + io/$(OBJDIR)/prsocket.$(OBJ_SUFFIX) \ + threads/$(OBJDIR)/prcthr.$(OBJ_SUFFIX) \ + threads/$(OBJDIR)/prdump.$(OBJ_SUFFIX) \ + threads/$(OBJDIR)/prmon.$(OBJ_SUFFIX) \ + threads/$(OBJDIR)/prsem.$(OBJ_SUFFIX) \ + threads/$(OBJDIR)/prtpd.$(OBJ_SUFFIX) \ + threads/combined/$(OBJDIR)/prucpu.$(OBJ_SUFFIX) \ + threads/combined/$(OBJDIR)/prucv.$(OBJ_SUFFIX) \ + threads/combined/$(OBJDIR)/prulock.$(OBJ_SUFFIX) \ + threads/combined/$(OBJDIR)/prustack.$(OBJ_SUFFIX) \ + threads/combined/$(OBJDIR)/pruthr.$(OBJ_SUFFIX) +endif + +ifeq ($(USE_IPV6), 1) +OBJS += io/$(OBJDIR)/pripv6.$(OBJ_SUFFIX) +endif + +ifeq ($(OS_ARCH), WINNT) +ifneq (,$(filter-out WIN16 OS2,$(OS_TARGET))) +DLLBASE=/BASE:0x30000000 +RES=$(OBJDIR)/nspr.res +RESNAME=nspr.rc +endif + +ifeq ($(OS_TARGET), WIN16) +OBJS += md/windows/$(OBJDIR)/w16null.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/w16proc.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/w16thred.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/w16fmem.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/w16sock.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/w16mem.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/w16io.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/w16gc.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/w16error.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/w16callb.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/ntinrval.$(OBJ_SUFFIX) +EXTRA_LIBS += $(MOD_DEPTH)/tools/winsock.lib +W16_EXPORTS = EXPORT _malloc.2=_PR_MD_malloc RESIDENT, \ + _realloc.3=_PR_MD_realloc RESIDENT, \ + _calloc.4=_PR_MD_calloc RESIDENT, \ + _free.5=_PR_MD_free RESIDENT, \ + _getenv.9=_PR_MD_getenv RESIDENT, \ + _printf.11=_PR_MD_printf RESIDENT, \ + _strftime.13=_PR_MD_strftime RESIDENT, \ + _sscanf.33=_PR_MD_sscanf RESIDENT, \ + _putenv.10=_PR_MD_putenv RESIDENT, \ + _fprintf.12=_PR_MD_fprintf RESIDENT +else +ifeq ($(OS_TARGET), WIN95) +OBJS += md/windows/$(OBJDIR)/w95io.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/w95sock.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/w95thred.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/w95cv.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/ntgc.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/ntmisc.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/ntinrval.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/ntsem.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/win32_errors.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/w32poll.$(OBJ_SUFFIX) +ifeq ($(MOZ_BITS),32) +ifdef MOZ_DEBUG +ifdef GLOWCODE + EXTRA_LIBS += $(GLOWDIR)/glowcode.lib +endif +endif +endif +else +ifeq ($(OS_TARGET), OS2) +OBJS += md/os2/$(OBJDIR)/os2io.$(OBJ_SUFFIX) \ + md/os2/$(OBJDIR)/os2sock.$(OBJ_SUFFIX) \ + md/os2/$(OBJDIR)/os2thred.$(OBJ_SUFFIX) \ + md/os2/$(OBJDIR)/os2cv.$(OBJ_SUFFIX) \ + md/os2/$(OBJDIR)/os2gc.$(OBJ_SUFFIX) \ + md/os2/$(OBJDIR)/os2misc.$(OBJ_SUFFIX) \ + md/os2/$(OBJDIR)/os2inrval.$(OBJ_SUFFIX) \ + md/os2/$(OBJDIR)/os2sem.$(OBJ_SUFFIX) \ + md/os2/$(OBJDIR)/os2_errors.$(OBJ_SUFFIX) \ + md/os2/$(OBJDIR)/os2poll.$(OBJ_SUFFIX) +else +OBJS += md/windows/$(OBJDIR)/ntio.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/ntgc.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/ntthread.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/ntmisc.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/ntinrval.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/ntsem.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/win32_errors.$(OBJ_SUFFIX) \ + md/windows/$(OBJDIR)/w32poll.$(OBJ_SUFFIX) +endif +endif +endif + +else + + THREAD_DIR=threads/combined/$(OBJDIR) + +ifeq ($(OS_ARCH), MAC) + MD_DIR = md/mac/$(OBJDIR) +else + MD_DIR = md/unix/$(OBJDIR) + include $(srcdir)/md/unix/objs.mk +endif + +endif + +LIBRARY_NAME = nspr +LIBRARY_VERSION = $(MOD_VERSION) + +RELEASE_LIBS = $(TARGETS) + +include $(topsrcdir)/config/rules.mk + +ifeq ($(BUILD_AIX_RTL_LIBC),1) +TARGETS += $(AIX_RTL_LIBC) +# XXX is this a shared library? +endif + +# +# The Client build wants the shared libraries in $(DIST)/bin, +# so we also install them there. +# + +export:: $(TARGETS) + $(INSTALL) -m 444 $(TARGETS) $(DIST)/lib + $(INSTALL) -m 444 $(SHARED_LIBRARY) $(DIST)/bin +ifeq ($(MOZ_BITS),16) + $(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/lib + $(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/bin +endif + +ifeq ($(BUILD_AIX_RTL_LIBC),1) +$(AIX_RTL_LIBC): /usr/ccs/lib/libc.a + rtl_enable -o $@ $< +endif + +install:: export diff --git a/mozilla/nsprpub/pr/src/io/Makefile.in b/mozilla/nsprpub/pr/src/io/Makefile.in new file mode 100644 index 00000000000..fcae3a318fb --- /dev/null +++ b/mozilla/nsprpub/pr/src/io/Makefile.in @@ -0,0 +1,73 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +# Disable optimization of the nspr on SunOS4.1.3 +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +OPTIMIZER = +endif +endif + +CSRCS = \ + prmwait.c \ + priometh.c \ + prmapopt.c \ + prlayer.c \ + prlog.c \ + prmmap.c \ + prprf.c \ + prscanf.c \ + prstdio.c \ + $(NULL) + +ifndef USE_PTHREADS + CSRCS += \ + prdir.c \ + prfile.c \ + prio.c \ + prlog.c \ + prmmap.c \ + prprf.c \ + prsocket.c \ + prstdio.c \ + $(NULL) +endif + +ifdef USE_IPV6 +CSRCS += pripv6.c +endif + +TARGETS = $(OBJS) + +INCLUDES = -I$(DIST)/include/private -I$(DIST)/include + +include $(topsrcdir)/config/rules.mk + +export:: $(TARGETS) + +install:: export diff --git a/mozilla/nsprpub/pr/src/linking/Makefile.in b/mozilla/nsprpub/pr/src/linking/Makefile.in new file mode 100644 index 00000000000..8f1730f2b6a --- /dev/null +++ b/mozilla/nsprpub/pr/src/linking/Makefile.in @@ -0,0 +1,48 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +# Disable optimization of the nspr on SunOS4.1.3 +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +OPTIMIZER = +endif +endif + +CSRCS = \ + prlink.c \ + $(NULL) + +TARGETS = $(OBJS) + +INCLUDES = -I$(DIST)/include/private -I$(DIST)/include + +include $(topsrcdir)/config/rules.mk + +export:: $(TARGETS) + +install:: export diff --git a/mozilla/nsprpub/pr/src/malloc/Makefile.in b/mozilla/nsprpub/pr/src/malloc/Makefile.in new file mode 100644 index 00000000000..e904cc02e36 --- /dev/null +++ b/mozilla/nsprpub/pr/src/malloc/Makefile.in @@ -0,0 +1,46 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +# Disable optimization of the nspr on SunOS4.1.3 +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +OPTIMIZER = +endif +endif + +TARGETS = $(OBJS) + +INCLUDES = -I$(DIST)/include/private -I$(DIST)/include + +CSRCS = prmalloc.c prmem.c + +include $(topsrcdir)/config/rules.mk + +export:: $(TARGETS) + +install:: export diff --git a/mozilla/nsprpub/pr/src/md/Makefile.in b/mozilla/nsprpub/pr/src/md/Makefile.in new file mode 100644 index 00000000000..947bbd39c10 --- /dev/null +++ b/mozilla/nsprpub/pr/src/md/Makefile.in @@ -0,0 +1,62 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +ifeq ($(OS_ARCH),MAC) +DIRS = mac +else + ifeq ($(OS_ARCH),WINNT) + ifeq ($(OS_TARGET),OS2) + DIRS = os2 + else + DIRS = windows + endif + else + DIRS = unix + endif +endif + +# Disable optimization of the nspr on SunOS4.1.3 +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +OPTIMIZER = +endif +endif + +CSRCS = \ + prosdep.c \ + $(NULL) + +TARGETS = $(OBJS) + +INCLUDES = -I$(DIST)/include/private -I$(DIST)/include + +include $(topsrcdir)/config/rules.mk + +export:: $(TARGETS) + +install:: export diff --git a/mozilla/nsprpub/pr/src/md/os2/Makefile.in b/mozilla/nsprpub/pr/src/md/os2/Makefile.in new file mode 100644 index 00000000000..6310c02a5a8 --- /dev/null +++ b/mozilla/nsprpub/pr/src/md/os2/Makefile.in @@ -0,0 +1,55 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +ifeq ($(OS_TARGET), OS2) +CSRCS = \ + os2misc.c \ + os2sem.c \ + os2inrval.c \ + os2gc.c \ + os2thred.c \ + os2io.c \ + os2cv.c \ + os2sock.c \ + os2_errors.c \ + os2poll.c \ + $(NULL) +endif + +TARGETS = $(OBJS) + +INCLUDES = -I$(DIST)/include/private -I$(DIST)/include + +include $(topsrcdir)/config/rules.mk + +export:: $(TARGETS) + +install:: export + + + diff --git a/mozilla/nsprpub/pr/src/md/unix/Makefile.in b/mozilla/nsprpub/pr/src/md/unix/Makefile.in new file mode 100644 index 00000000000..1a96f03e29e --- /dev/null +++ b/mozilla/nsprpub/pr/src/md/unix/Makefile.in @@ -0,0 +1,248 @@ +# +# 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. +# + +MOD_DEPTH = ../../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +# Disable optimization of the nspr on SunOS4.1.3 +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +OPTIMIZER = +endif +endif + +CSRCS = \ + unix.c \ + unix_errors.c \ + uxproces.c \ + uxwrap.c \ + $(NULL) + +PTH_USER_CSRCS = \ + pthreads_user.c \ + $(NULL) + +IRIX_CSRCS = \ + irix.c \ + $(NULL) + +SUNOS4_CSRCS = \ + sunos4.c \ + $(NULL) + +SOLARIS_CSRCS = \ + solaris.c \ + $(NULL) + +AIX_CSRCS = \ + aix.c \ + $(NULL) + +FREEBSD_CSRCS = \ + freebsd.c \ + $(NULL) + +NETBSD_CSRCS = \ + netbsd.c \ + $(NULL) + +BSDI_CSRCS = \ + bsdi.c \ + $(NULL) + +HPUX_CSRCS = \ + hpux.c \ + $(NULL) + +OSF1_CSRCS = \ + osf1.c \ + $(NULL) + +LINUX_CSRCS = \ + linux.c \ + $(NULL) + +UNIXWARE_CSRCS = \ + unixware.c \ + $(NULL) + +RELIANTUNIX_CSRCS = \ + reliantunix.c \ + $(NULL) + +RHAPSODY_CSRCS = \ + rhapsody.c \ + $(NULL) + +NEC_CSRCS = \ + nec.c \ + $(NULL) + +SONY_CSRCS = \ + sony.c \ + $(NULL) + +NCR_CSRCS = \ + ncr.c \ + $(NULL) + +SCOOS_CSRCS = \ + scoos.c \ + $(NULL) + +ifeq ($(PTHREADS_USER),1) +CSRCS += $(PTH_USER_CSRCS) +endif + +ifeq ($(OS_ARCH),IRIX) +CSRCS += $(IRIX_CSRCS) +endif + +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +CSRCS += $(SUNOS4_CSRCS) +else +CSRCS += $(SOLARIS_CSRCS) +endif +endif + +ifeq ($(OS_ARCH),AIX) +CSRCS += $(AIX_CSRCS) +endif +ifeq ($(OS_ARCH),FreeBSD) +CSRCS += $(FREEBSD_CSRCS) +endif +ifeq ($(OS_ARCH),NetBSD) +CSRCS += $(NETBSD_CSRCS) +endif +ifeq ($(OS_ARCH),BSD_OS) +CSRCS += $(BSDI_CSRCS) +endif +ifeq ($(OS_ARCH),HP-UX) +CSRCS += $(HPUX_CSRCS) +endif +ifeq ($(OS_ARCH),OSF1) +CSRCS += $(OSF1_CSRCS) +endif +ifeq ($(OS_ARCH),Linux) +CSRCS += $(LINUX_CSRCS) +endif +ifeq ($(OS_ARCH),UNIXWARE) +CSRCS += $(UNIXWARE_CSRCS) +endif +ifeq ($(OS_ARCH),SINIX) +CSRCS += $(RELIANTUNIX_CSRCS) +endif +ifeq ($(OS_ARCH),Rhapsody) +CSRCS += $(RHAPSODY_CSRCS) +endif +ifeq ($(OS_ARCH),NEC) +CSRCS += $(NEC_CSRCS) +endif +ifeq ($(OS_ARCH),NEWS-OS) +CSRCS += $(SONY_CSRCS) +endif +ifeq ($(OS_ARCH),NCR) +CSRCS += $(NCR_CSRCS) +endif +ifeq ($(OS_ARCH),SCOOS) +CSRCS += $(SCOOS_CSRCS) +endif + +# +# Some Unix platforms have an assembly language file. +# E.g., AIX 3.2, Solaris (both sparc and x86). +# +ifeq ($(OS_ARCH), AIX) + ifeq ($(OS_RELEASE), 3.2) + ASFILES = os_$(OS_ARCH).s + endif +endif + +ifeq ($(OS_ARCH),SunOS) + ifeq ($(CPU_ARCH),x86) + ASFILES = os_$(OS_ARCH)_x86.s + else + ifneq ($(OS_RELEASE),4.1.3_U1) + ASFILES = os_$(OS_ARCH).s + endif + endif +endif + +ifeq ($(OS_ARCH), SINIX) + ASFILES = os_ReliantUNIX.s +endif + +ifeq ($(OS_ARCH)$(OS_RELEASE),BSD_OS2.1) + ASFILES = os_BSD_386_2.s +endif + +TARGETS = $(OBJS) + +ifeq ($(OS_ARCH),AIX) +ifneq ($(OS_RELEASE),4.2) +ifneq ($(USE_PTHREADS), 1) +#TARGETS += $(OBJDIR)/aixwrap.$(OBJ_SUFFIX) +endif +endif +endif + +ifeq ($(OS_ARCH),SunOS) + ifneq ($(OS_RELEASE),4.1.3_U1) + ifeq ($(OS_TEST),sun4u) + LIBRARY_NAME = $(ULTRASPARC_LIBRARY) + LIBRARY_VERSION = $(MOD_VERSION) + ULTRASPARC_ASFILES = os_$(OS_ARCH)_ultrasparc.s + ULTRASPARC_ASOBJS = $(addprefix $(OBJDIR)/,$(ULTRASPARC_ASFILES:.s=.$(OBJ_SUFFIX))) + TARGETS += $(ULTRASPARC_ASOBJS) $(SHARED_LIBRARY) + endif + endif +endif + +INCLUDES = -I$(DIST)/include/private -I$(DIST)/include + +include $(topsrcdir)/config/rules.mk + +export:: $(TARGETS) +#ifeq ($(OS_ARCH),AIX) +#ifneq ($(OS_RELEASE),4.2) +#ifneq ($(USE_PTHREADS), 1) +# $(INSTALL) -m 444 $(OBJDIR)/aixwrap.$(OBJ_SUFFIX) $(DIST)/lib +#endif +#endif +#endif + +ifeq ($(OS_ARCH),SunOS) +ifneq ($(OS_RELEASE),4.1.3_U1) +ifeq ($(OS_TEST),sun4u) +$(SHARED_LIBRARY): $(ULTRASPARC_ASOBJS) + $(LD) -G -z text -o $@ $(ULTRASPARC_ASOBJS) + $(INSTALL) -m 444 $(SHARED_LIBRARY) $(DIST)/lib + +$(ULTRASPARC_ASOBJS): $(ULTRASPARC_ASFILES) + /usr/ccs/bin/as -o $@ -K PIC -P -D_ASM -D__STDC__=0 -xarch=v8plus $< +endif +endif +endif + +install:: export diff --git a/mozilla/nsprpub/pr/src/md/windows/Makefile.in b/mozilla/nsprpub/pr/src/md/windows/Makefile.in new file mode 100644 index 00000000000..a8925b61d9b --- /dev/null +++ b/mozilla/nsprpub/pr/src/md/windows/Makefile.in @@ -0,0 +1,80 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +ifeq ($(OS_TARGET), WIN16) +CSRCS = \ + w16null.c \ + w16thred.c \ + w16proc.c \ + w16fmem.c \ + w16sock.c \ + w16mem.c \ + w16io.c \ + w16gc.c \ + w16error.c \ + w16stdio.c \ + w16callb.c \ + ntinrval.c \ + $(NULL) +else +ifeq ($(OS_TARGET), WIN95) +CSRCS = \ + ntmisc.c \ + ntsem.c \ + ntinrval.c \ + ntgc.c \ + w95thred.c \ + w95io.c \ + w95cv.c \ + w95sock.c \ + win32_errors.c \ + w32poll.c \ + $(NULL) +else +CSRCS = \ + ntmisc.c \ + ntsem.c \ + ntinrval.c \ + ntgc.c \ + ntthread.c \ + ntio.c \ + win32_errors.c \ + w32poll.c \ + $(NULL) +endif +endif + +TARGETS = $(OBJS) + +INCLUDES = -I$(DIST)/include/private -I$(DIST)/include + +include $(topsrcdir)/config/rules.mk + +export:: $(TARGETS) + +install:: export diff --git a/mozilla/nsprpub/pr/src/memory/Makefile.in b/mozilla/nsprpub/pr/src/memory/Makefile.in new file mode 100644 index 00000000000..97b55781d85 --- /dev/null +++ b/mozilla/nsprpub/pr/src/memory/Makefile.in @@ -0,0 +1,47 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +# Disable optimization of the nspr on SunOS4.1.3 +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +OPTIMIZER = +endif +endif + +CSRCS = prseg.c + +TARGETS = $(OBJS) + +INCLUDES = -I$(DIST)/include/private -I$(DIST)/include + +include $(topsrcdir)/config/rules.mk + +export:: $(TARGETS) + +install:: export + diff --git a/mozilla/nsprpub/pr/src/misc/Makefile.in b/mozilla/nsprpub/pr/src/misc/Makefile.in new file mode 100644 index 00000000000..ddf5d4b8348 --- /dev/null +++ b/mozilla/nsprpub/pr/src/misc/Makefile.in @@ -0,0 +1,69 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +# Disable optimization of the nspr on SunOS4.1.3 +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +OPTIMIZER = +endif +endif + +CSRCS = \ + pralarm.c \ + pratom.c \ + prdtoa.c \ + prenv.c \ + prerror.c \ + prinit.c \ + prinrval.c \ + prlog2.c \ + prlong.c \ + prnetdb.c \ + prsystem.c \ + prtime.c \ + prthinfo.c \ + $(NULL) + +TARGETS = $(OBJS) + +INCLUDES = -I$(DIST)/include/private -I$(DIST)/include + +include $(topsrcdir)/config/rules.mk + +# An AIX Optimization bug causes PR_dtoa() to produce wrong result. +# This suppresses optimization for this single compilation unit. +ifeq ($(OS_ARCH), AIX) +$(OBJDIR)/prdtoa.o: + @$(MAKE_OBJDIR) + $(CC) -o $@ -c $(filter-out -O, $(CFLAGS)) prdtoa.c +endif + +export:: $(TARGETS) + +install:: export + diff --git a/mozilla/nsprpub/pr/src/pthreads/Makefile.in b/mozilla/nsprpub/pr/src/pthreads/Makefile.in new file mode 100644 index 00000000000..8912fddf370 --- /dev/null +++ b/mozilla/nsprpub/pr/src/pthreads/Makefile.in @@ -0,0 +1,52 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +# Disable optimization of the nspr on SunOS4.1.3 +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +OPTIMIZER = +endif +endif + +CSRCS = \ + ptio.c \ + ptsynch.c \ + ptthread.c \ + ptmisc.c \ + $(NULL) + +TARGETS = $(OBJS) + +INCLUDES = -I$(DIST)/include/private -I$(DIST)/include + +include $(topsrcdir)/config/rules.mk + +export:: $(TARGETS) + +install:: export + diff --git a/mozilla/nsprpub/pr/src/threads/Makefile.in b/mozilla/nsprpub/pr/src/threads/Makefile.in new file mode 100644 index 00000000000..d79b81d774d --- /dev/null +++ b/mozilla/nsprpub/pr/src/threads/Makefile.in @@ -0,0 +1,64 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +ifdef USE_PTHREADS + DIRS = +else + DIRS = combined +endif + +# Disable optimization of the nspr on SunOS4.1.3 +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +OPTIMIZER = +endif +endif + +ifdef USE_PTHREADS +CSRCS = prcmon.c \ + $(NULL) +else +CSRCS = \ + prcmon.c \ + prdump.c \ + prmon.c \ + prsem.c \ + prcthr.c \ + prtpd.c \ + $(NULL) +endif + +TARGETS = $(OBJS) + +INCLUDES = -I$(DIST)/include/private -I$(DIST)/include + +include $(topsrcdir)/config/rules.mk + +export:: $(TARGETS) + +install:: export diff --git a/mozilla/nsprpub/pr/src/threads/combined/Makefile.in b/mozilla/nsprpub/pr/src/threads/combined/Makefile.in new file mode 100644 index 00000000000..cd88d0fa9a7 --- /dev/null +++ b/mozilla/nsprpub/pr/src/threads/combined/Makefile.in @@ -0,0 +1,57 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +# Disable optimization of the nspr on SunOS4.1.3 +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +OPTIMIZER = +endif +endif + +ifdef USE_PTHREADS +CSRCS = \ + $(NULL) +else +CSRCS = \ + prucpu.c \ + prucv.c \ + prulock.c \ + pruthr.c \ + prustack.c \ + $(NULL) +endif + +TARGETS = $(OBJS) + +INCLUDES = -I$(DIST)/include/private -I$(DIST)/include + +include $(topsrcdir)/config/rules.mk + +export:: $(TARGETS) + +install:: export diff --git a/mozilla/nsprpub/pr/tests/Makefile.in b/mozilla/nsprpub/pr/tests/Makefile.in new file mode 100644 index 00000000000..67b82156058 --- /dev/null +++ b/mozilla/nsprpub/pr/tests/Makefile.in @@ -0,0 +1,446 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +ifeq ($(OS_TARGET), WIN16) +OS_CFLAGS = $(OS_EXE_CFLAGS) +W16STDIO = $(MOD_DEPTH)/pr/src/md/windows/$(OBJDIR)/w16stdio.$(OBJ_SUFFIX) +endif + +ifeq ($(OS_TARGET),WIN16) +DIRS = dll w16gui +else +DIRS = dll +endif + +ifeq ($(OS_TARGET),OS2) +OS_CFLAGS = $(OS_EXE_CFLAGS) +endif + +CSRCS = \ + accept.c \ + alarm.c \ + atomic.c \ + attach.c \ + bigfile.c \ + cleanup.c \ + cltsrv.c \ + concur.c \ + cvar.c \ + cvar2.c \ + dceemu.c \ + dlltest.c \ + dtoa.c \ + exit.c \ + fileio.c \ + forktest.c \ + fsync.c \ + getproto.c \ + i2l.c \ + inrval.c \ + intrupt.c \ + io_timeout.c \ + ipv6.c \ + join.c \ + joinkk.c \ + joinku.c \ + joinuk.c \ + joinuu.c \ + layer.c \ + lazyinit.c \ + lltest.c \ + lock.c \ + lockfile.c \ + logger.c \ + multiwait.c \ + many_cv.c \ + nbconn.c \ + nblayer.c \ + nonblock.c \ + op_2long.c \ + op_filnf.c \ + op_filok.c \ + op_noacc.c \ + op_nofil.c \ + parent.c \ + perf.c \ + poll_er.c \ + poll_nm.c \ + poll_to.c \ + prftest1.c \ + prftest2.c \ + priotest.c \ + ranfile.c \ + sel_spd.c \ + selct_er.c \ + selct_nm.c \ + selct_to.c \ + select2.c \ + sem.c \ + servr_kk.c \ + servr_ku.c \ + servr_uk.c \ + short_thread.c \ + sigpipe.c \ + socket.c \ + sockopt.c \ + sprintf.c \ + sproc_ch.c \ + sproc_p.c \ + stdio.c \ + strod.c \ + suspend.c \ + switch.c \ + system.c \ + testbit.c \ + testfile.c \ + threads.c \ + thruput.c \ + timemac.c \ + timetest.c \ + tmoacc.c \ + tmocon.c \ + tpd.c \ + udpsrv.c \ + writev.c \ + xnotify.c \ + $(NULL) + +ifeq ($(OS_ARCH), WINNT) +PROG_SUFFIX = .exe +else +PROG_SUFFIX = +endif + +PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=$(PROG_SUFFIX))) + +TARGETS = $(PROGS) $(OBJS) + +INCLUDES = -I$(DIST)/include/obsolete -I$(DIST)/include/private -I$(DIST)/include + +# Setting the variables LDOPTS and LIBPR. We first initialize +# them to the default values, then adjust them for some platforms. +LDOPTS = -L$(DIST)/lib +LIBPR = -lnspr$(MOD_VERSION) +LIBPLC = -lplc$(MOD_VERSION) + +ifeq ($(OS_ARCH), WINNT) +ifeq ($(OS_TARGET), WIN16) + LIBPR = $(DIST)/lib/nspr$(MOD_VERSION).lib + LIBPLC= $(DIST)/lib/plc$(MOD_VERSION).lib +else +ifeq ($(OS_TARGET), OS2) + LDOPTS = -NOE -DEBUG -nologo -PMTYPE:VIO + LIBPR = $(DIST)/lib/nspr$(MOD_VERSION).lib + LIBPLC= $(DIST)/lib/plc$(MOD_VERSION).lib +else + LDOPTS = -NOLOGO -DEBUG -DEBUGTYPE:CV -INCREMENTAL:NO + LIBPR = $(DIST)/lib/libnspr$(MOD_VERSION).$(LIB_SUFFIX) + LIBPLC= $(DIST)/lib/libplc$(MOD_VERSION).$(LIB_SUFFIX) +endif +endif +endif + +ifneq ($(OS_ARCH), WINNT) +PWD = $(shell pwd) +endif + +ifeq ($(OS_ARCH), IRIX) +LDOPTS += -rpath $(PWD)/$(DIST)/lib -rdata_shared + +# For 6.x machines, include this flag +ifeq ($(basename $(OS_RELEASE)),6) +ifeq ($(USE_N32),1) +LDOPTS += -n32 +else +LDOPTS += -32 +endif +endif + +endif + +ifeq ($(OS_ARCH), OSF1) +# I haven't figured out how to pass -rpath to cc on OSF1 V3.2, so +# we do static linking. +ifeq ($(OS_RELEASE), V3.2) + LIBPR = $(DIST)/lib/libnspr$(MOD_VERSION).a + LIBPLC = $(DIST)/lib/libplc$(MOD_VERSION).a + EXTRA_LIBS = -lc_r +else + LDOPTS += -rpath $(PWD)/$(DIST)/lib +endif +endif + +ifeq ($(OS_ARCH), HP-UX) +LDOPTS += -Wl,+s,+b,$(PWD)/$(DIST)/lib +endif + +# AIX +ifeq ($(OS_ARCH),AIX) +ifeq ($(CLASSIC_NSPR),1) +LDOPTS += -blibpath:.:$(PWD)/$(DIST)/lib:/usr/lpp/xlC/lib:/usr/lib:/lib +else +LDOPTS += -blibpath:.:$(PWD)/$(DIST)/lib:/usr/lib/threads:/usr/lpp/xlC/lib:/usr/lib:/lib +endif +ifeq ($(OS_ARCH)$(OS_RELEASE),AIX4.1) +LIBPR = -lnspr$(MOD_VERSION)_shr +LIBPLC = -lplc$(MOD_VERSION)_shr +else +LDOPTS += -brtl +EXTRA_LIBS = -ldl +endif +endif + +# Solaris +ifeq ($(OS_ARCH), SunOS) +ifneq ($(OS_RELEASE), 4.1.3_U1) +ifdef NS_USE_GCC +LDOPTS += -Xlinker -R -Xlinker $(PWD)/$(DIST)/lib +else +LDOPTS += -R $(PWD)/$(DIST)/lib +endif +endif + +ifneq ($(LOCAL_THREADS_ONLY),1) +# SunOS 5.4 and 5.5 need to link with -lthread or -lpthread, +# even though we already linked with these system libraries +# when we built libnspr.so. +ifeq ($(OS_RELEASE), 5.4) +EXTRA_LIBS = -lthread +endif + +ifeq ($(OS_RELEASE), 5.5) +ifdef USE_PTHREADS +EXTRA_LIBS = -lpthread +else +EXTRA_LIBS = -lthread +endif +endif +endif # LOCAL_THREADS_ONLY +endif # SunOS + +ifeq ($(OS_ARCH), NEC) +EXTRA_LIBS = $(OS_LIBS) +# This hardcodes in the executable programs the directory to find +# libnspr.so etc. at program startup. Equivalent to the -R or -rpath +# option for ld on other platforms. +export LD_RUN_PATH = $(PWD)/$(DIST)/lib +endif + +ifeq ($(OS_ARCH), NCR) +# NCR needs to link against -lsocket -lnsl -ldl (and -lc, which is +# linked implicitly by $(CC)). Note that we did not link with these +# system libraries when we built libnspr.so. +EXTRA_LIBS = -lsocket -lnsl -ldl +# This hardcodes in the executable programs the directory to find +# libnspr.so etc. at program startup. Equivalent to the -R or -rpath +# option for ld on other platforms. +export LD_RUN_PATH = $(PWD)/$(DIST)/lib +endif + +ifeq ($(OS_ARCH), NEWS-OS) +# This hardcodes in the executable programs the directory to find +# libnspr.so etc. at program startup. Equivalent to the -R or -rpath +# option for ld on other platforms. +#export LD_RUN_PATH = $(PWD)/$(DIST)/lib + LIBPR = $(DIST)/lib/libnspr$(MOD_VERSION).a + LIBPLC = $(DIST)/lib/libplc$(MOD_VERSION).a + EXTRA_LIBS = -lsocket -lnsl -lgen -lresolv +endif + +ifeq ($(OS_ARCH), Linux) +ifeq ($(OS_RELEASE), 1.2) +EXTRA_LIBS = -ldl +else +LDOPTS += -Xlinker -rpath $(PWD)/$(DIST)/lib +ifeq ($(USE_PTHREADS),1) +EXTRA_LIBS = -lpthread +endif +endif +endif + +ifeq ($(OS_ARCH), SCOOS) +# SCO Unix needs to link against -lsocket again even though we +# already linked with these system libraries when we built libnspr.so. +EXTRA_LIBS = -lsocket +# This hardcodes in the executable programs the directory to find +# libnspr.so etc. at program startup. Equivalent to the -R or -rpath +# option for ld on other platforms. +export LD_RUN_PATH = $(PWD)/$(DIST)/lib +endif + +ifeq ($(OS_ARCH),SINIX) +EXTRA_LIBS = -lsocket -lnsl -lresolv -ldl +# This hardcodes in the executable programs the directory to find +# libnspr.so etc. at program startup. Equivalent to the -R or -rpath +# option for ld on other platforms. +export LD_RUN_PATH = $(PWD)/$(DIST)/lib +endif + +ifeq ($(OS_ARCH), UNIXWARE) +export LD_RUN_PATH = $(PWD)/$(DIST)/lib +endif + +ifeq ($(OS_ARCH),FreeBSD) +ifeq ($(USE_PTHREADS),1) +EXTRA_LIBS = -lc_r +endif +endif + +ifeq ($(OS_ARCH),BSD_OS) +EXTRA_LIBS = -ldl +endif + +##################################################### +# +# The rules +# +##################################################### + +include $(topsrcdir)/config/rules.mk + +AIX_PRE_4_2 = 0 +ifeq ($(OS_ARCH),AIX) +ifeq ($(OS_RELEASE),4.1) +ifneq ($(USE_PTHREADS), 1) +#AIX_PRE_4_2 = 1 +endif +endif +endif + +ifeq ($(AIX_PRE_4_2),1) + +# AIX releases prior to 4.2 need a special two-step linking hack +# in order to both override the system select() and be able to +# get at the original system select(). +# +# We use a pattern rule in ns/nspr20/config/rules.mk to generate +# the .$(OBJ_SUFFIX) file from the .c source file, then do the +# two-step linking hack below. + +$(OBJDIR)/%: $(OBJDIR)/%.$(OBJ_SUFFIX) + @$(MAKE_OBJDIR) + rm -f $@ $(AIX_TMP) + $(CC) $(AIX_LINK_OPTS) -o $(AIX_TMP) $< $(DIST)/lib/libnspr$(MOD_VERSION).a + $(CC) -o $@ $(AIX_TMP) $(AIX_WRAP) + rm -f $(AIX_TMP) + +else + +# All platforms that are not AIX pre-4.2. + + +ifeq ($(USE_PTHREADS), 1) +$(OBJDIR)/attach: $(OBJDIR)/attach.$(OBJ_SUFFIX) + @$(MAKE_OBJDIR) +ifeq ($(OS_ARCH), AIX) + $(CC) $< $(LDOPTS) $(LIBPLC) $(LIBPR) -lpthreads -o $@ +else +ifeq ($(OS_ARCH),FreeBSD) + $(CC) $< $(LDOPTS) $(LIBPLC) $(LIBPR) -lc_r -o $@ +else + $(CC) $< $(LDOPTS) $(LIBPLC) $(LIBPR) -lpthread -o $@ +endif +endif +endif + + +$(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX) + @$(MAKE_OBJDIR) +ifeq ($(OS_ARCH), WINNT) +ifeq ($(OS_TARGET),WIN16) + echo system windows >w16link + echo name $@ >>w16link + echo option map >>w16link +# echo option CASEEXACT >>w16link + echo option stack=16K >>w16link + echo debug $(DEBUGTYPE) all >>w16link + echo file >>w16link + echo $< , >>w16link + echo $(W16STDIO) >>w16link + echo library >>w16link + echo $(LIBPR), >>w16link + echo $(LIBPLC), >>w16link + echo winsock.lib >>w16link + wlink @w16link. +else +ifeq ($(OS_TARGET),OS2) + $(LINK) $(LDOPTS) $< $(LIBPLC) $(LIBPR) so32dll.lib tcp32dll.lib -MAP:$(@:.exe=.map) -out:$@ +else + link $(LDOPTS) $< $(LIBPLC) $(LIBPR) wsock32.lib -out:$@ +endif +endif +else + $(CC) $(XCFLAGS) $< $(LDOPTS) $(LIBPLC) $(LIBPR) $(EXTRA_LIBS) -o $@ +endif + +endif + +export:: $(TARGETS) +install:: export +clean:: + rm -f $(TARGETS) + +# +# Run the test programs with no arguments +# +# Test output goes to the file pointed to by the environment variable +# NSPR_TEST_LOGFILE, if set, else to /dev/null +# +ECHO = echo +PROGRAMS = $(notdir $(PROGS)) +ifdef NSPR_TEST_LOGFILE +LOGFILE = $(NSPR_TEST_LOGFILE) +else +ifeq ($(OS_ARCH), WINNT) +LOGFILE = nul +else +LOGFILE = /dev/null +endif +endif + +ifeq ($(OS_TARGET),Linux) +ECHO = /bin/echo +endif + +ALWAYS: + +runtests:: $(PROGS) ALWAYS + @$(ECHO) "\nNSPR Test Results - $(OBJDIR)\n" + @$(ECHO) "BEGIN\t\t\t`date`" + @$(ECHO) "NSPR_TEST_LOGFILE\t$(LOGFILE)\n" + @$(ECHO) "Test\t\t\tResult\n" + @cd $(OBJDIR); for i in $(PROGRAMS); do \ + $(ECHO) "$$i\c"; \ + ./$$i >> $(LOGFILE) 2>&1 ; \ + if [ 0 = $$? ] ; then \ + $(ECHO) "\t\t\tPassed"; \ + else \ + $(ECHO) "\t\t\tFAILED"; \ + fi; \ + done + @$(ECHO) "\nEND\t\t`date`\n" diff --git a/mozilla/nsprpub/pr/tests/dll/Makefile.in b/mozilla/nsprpub/pr/tests/dll/Makefile.in new file mode 100644 index 00000000000..335d56fb972 --- /dev/null +++ b/mozilla/nsprpub/pr/tests/dll/Makefile.in @@ -0,0 +1,95 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +# Disable optimization of the nspr on SunOS4.1.3 +ifeq ($(OS_ARCH),SunOS) +ifeq ($(OS_RELEASE),4.1.3_U1) +OPTIMIZER = +endif +endif + +INCLUDES = -I$(DIST)/include + +OBJS = $(OBJDIR)/mygetval.$(OBJ_SUFFIX) \ + $(OBJDIR)/mysetval.$(OBJ_SUFFIX) + +ifeq ($(OS_TARGET), WIN16) +W16OBJS = $(subst $(space),$(comma)$(space),$(OBJS)) +endif + +ifeq ($(OS_ARCH), WINNT) +ifeq (,$(filter-out WIN16 OS2,$(OS_TARGET))) +# do nothing +else +DLLBASE=/BASE:0x30000000 +RES=$(OBJDIR)/my.res +RESNAME=../../../pr/src/nspr.rc +endif +endif + +ifeq ($(OS_ARCH), WINNT) +IMPORT_LIBRARY = $(OBJDIR)/my.lib +SHARED_LIBRARY = $(OBJDIR)/my.dll +ifeq ($(OS_TARGET), OS2) +LIBRARY = $(OBJDIR)/my_s.lib +# XXX $(LIBRARY) probably doesn't need to be added to TARGETS. +TARGETS = $(LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY) +else +TARGETS = $(SHARED_LIBRARY) $(IMPORT_LIBRARY) +endif +else +SHARED_LIBRARY = $(OBJDIR)/libmy.$(DLL_SUFFIX) +TARGETS = $(SHARED_LIBRARY) +endif + +# +# To create a loadable module on Rhapsody, we must override +# -dynamiclib with -bundle. +# +ifeq ($(OS_ARCH),Rhapsody) +DSO_LDOPTS = -bundle +endif + +include $(topsrcdir)/config/rules.mk + +ifeq ($(OS_TARGET), WIN16) +# Note: The Win16 target: my.dll requires these macros +# to be overridden to build the test .dll +# default values in win16...mk are for release targets. +# +OS_DLL_OPTION = NOCASEEXACT +OS_LIB_FLAGS = -irn +endif + +export:: $(TARGETS) + $(NSINSTALL) $(TARGETS) ../$(OBJDIR)/dll + +install:: export + +clean:: + rm -rf $(TARGETS) diff --git a/mozilla/nsprpub/pr/tests/w16gui/Makefile.in b/mozilla/nsprpub/pr/tests/w16gui/Makefile.in new file mode 100644 index 00000000000..b2d2c8ad3d3 --- /dev/null +++ b/mozilla/nsprpub/pr/tests/w16gui/Makefile.in @@ -0,0 +1,81 @@ +# +# 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. +# + +#! gmake + + + +MOD_DEPTH = ../../.. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +INCLUDES = -I$(DIST)/include +W16STDIO = $(MOD_DEPTH)/pr/src/md/windows/$(OBJDIR)/w16stdio.$(OBJ_SUFFIX) + +CSRCS = poppad.c \ + popfile.c \ + popfont.c \ + popfind.c \ + popprnt0.c + + +INCLUDES = -I$(DIST)/include/private -I$(DIST)/include +LIBPR = $(DIST)/lib/nspr$(MOD_VERSION).lib +LIBPLDS = $(DIST)/lib/plds$(MOD_VERSION).lib +TARGETS = $(OBJDIR)/poppad.exe +OS_CFLAGS = $(OS_EXE_CFLAGS) + +include $(topsrcdir)/config/rules.mk + + +ifeq ($(OS_TARGET),WIN16) +$(OBJDIR)/poppad.exe: $(OBJS) + @$(MAKE_OBJDIR) + echo system windows >w16link + echo name $@ >>w16link + echo option map >>w16link + echo option stack=16K >>w16link + echo debug $(DEBUGTYPE) all >>w16link + echo file >>w16link + echo $(OBJDIR)\\poppad.$(OBJ_SUFFIX), >>w16link + echo $(OBJDIR)\\popfile.$(OBJ_SUFFIX), >>w16link + echo $(OBJDIR)\\popfont.$(OBJ_SUFFIX), >>w16link + echo $(OBJDIR)\\popfind.$(OBJ_SUFFIX), >>w16link + echo $(OBJDIR)\\popprnt0.$(OBJ_SUFFIX), >>w16link + echo $(W16STDIO) >>w16link + echo library $(LIBPR) >>w16link + echo library $(LIBPLDS) >>w16link + echo library clibl, commdlg >>w16link + echo library winsock.lib >>w16link + wlink @w16link. + wrc -bt=windows poppad.rc $(OBJDIR)\\poppad.exe +else +$(OBJDIR)/poppad.exe: $(OBJS) + link $(LDOPTS) $< $(LIBPLC) $(LIBPR) wsock32.lib -out:$@ +endif + +export:: $(TARGETS) + +install:: export + +clean:: + rm -rf $(TARGETS) diff --git a/mozilla/nsprpub/tools/Makefile.in b/mozilla/nsprpub/tools/Makefile.in new file mode 100644 index 00000000000..c3bef718ce7 --- /dev/null +++ b/mozilla/nsprpub/tools/Makefile.in @@ -0,0 +1,217 @@ +# +# 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. +# + +#! gmake + +MOD_DEPTH = .. +topsrcdir = @top_srcdir@/nsprpub +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(MOD_DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +ifeq ($(OS_TARGET), WIN16) +OS_CFLAGS = $(OS_EXE_CFLAGS) +endif + + +DIRS = + +CSRCS = \ + httpget.c \ + tail.c \ + $(NULL) + +ifeq ($(OS_ARCH), WINNT) +PROG_SUFFIX = .exe +else +PROG_SUFFIX = +endif + +PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=$(PROG_SUFFIX))) + +TARGETS = $(PROGS) + +INCLUDES = -I$(DIST)/include/private -I$(DIST)/include + +NSPR_VERSION = 21 + +# Setting the variables LDOPTS and LIBPR. We first initialize +# them to the default values, then adjust them for some platforms. +LDOPTS = -L$(DIST)/lib +LIBPR = -lnspr$(NSPR_VERSION) +LIBPLC = -lplc$(NSPR_VERSION) + +ifeq ($(OS_ARCH), WINNT) +ifeq ($(OS_TARGET), WIN16) + LIBPR = $(DIST)/lib/nspr$(NSPR_VERSION).lib + LIBPLC= $(DIST)/lib/plc$(NSPR_VERSION).lib +else +LDOPTS = -NOLOGO -DEBUG -DEBUGTYPE:CV -INCREMENTAL:NO +LIBPR = $(DIST)/lib/libnspr$(NSPR_VERSION).$(LIB_SUFFIX) +LIBPLC= $(DIST)/lib/libplc$(NSPR_VERSION).$(LIB_SUFFIX) +endif +endif + +ifneq ($(OS_ARCH), WINNT) +PWD = $(shell pwd) +endif + +ifeq ($(OS_ARCH), IRIX) +LDOPTS += -rpath $(PWD)/$(DIST)/lib +endif + +ifeq ($(OS_ARCH), OSF1) +LDOPTS += -rpath $(PWD)/$(DIST)/lib -lpthread +endif + +ifeq ($(OS_ARCH), HP-UX) +LDOPTS += -Wl,+s,+b,$(PWD)/$(DIST)/lib +endif + +# AIX +ifeq ($(OS_ARCH),AIX) +LDOPTS += -blibpath:.:$(PWD)/$(DIST)/lib:/usr/lib/threads:/usr/lpp/xlC/lib:/usr/lib:/lib +LIBPR = -lnspr$(NSPR_VERSION)_shr +LIBPLC = -lplc$(NSPR_VERSION)_shr +endif + +# Solaris +ifeq ($(OS_ARCH), SunOS) +ifneq ($(OS_RELEASE), 4.1.3_U1) +ifdef NS_USE_GCC +LDOPTS += -Xlinker -R -Xlinker $(PWD)/$(DIST)/lib +else +LDOPTS += -R $(PWD)/$(DIST)/lib +endif +endif + +# SunOS 5.4 and 5.5 need to link with -lthread or -lpthread, +# even though we already linked with these system libraries +# when we built libnspr.so. +ifeq ($(OS_RELEASE), 5.4) +EXTRA_LIBS = -lthread +endif + +ifeq ($(OS_RELEASE), 5.5) +ifdef USE_PTHREADS +EXTRA_LIBS = -lpthread +else +EXTRA_LIBS = -lthread +endif +endif +endif # SunOS + +ifeq ($(OS_ARCH), NCR) +# XXX: We see some strange problems when we link with libnspr.so. +# So for now we use static libraries on NCR. The shared library +# stuff below is commented out. +LIBPR = $(DIST)/lib/libnspr$(NSPR_VERSION).a +LIBPLC = $(DIST)/lib/libplc$(NSPR_VERSION).a +EXTRA_LIBS = -lsocket -lnsl -ldl + +# NCR needs to link against -lsocket -lnsl (and -lc, which is linked +# implicitly by $(CC)) again even though we already linked with these +# system libraries when we built libnspr.so. +#EXTRA_LIBS = -lsocket -lnsl +# This hardcodes in the executable programs the directory to find +# libnspr.so etc. at program startup. Equivalent to the -R or -rpath +# option for ld on other platforms. +#export LD_RUN_PATH = $(PWD)/$(DIST)/lib +endif + +ifeq ($(OS_ARCH), SCOOS) +# SCO Unix needs to link against -lsocket again even though we +# already linked with these system libraries when we built libnspr.so. +EXTRA_LIBS = -lsocket +# This hardcodes in the executable programs the directory to find +# libnspr.so etc. at program startup. Equivalent to the -R or -rpath +# option for ld on other platforms. +export LD_RUN_PATH = $(PWD)/$(DIST)/lib +endif + +##################################################### +# +# The rules +# +##################################################### + +include $(topsrcdir)/config/rules.mk + +AIX_PRE_4_2 = 0 +ifeq ($(OS_ARCH),AIX) +ifneq ($(OS_RELEASE),4.2) +ifneq ($(USE_PTHREADS), 1) +#AIX_PRE_4_2 = 1 +endif +endif +endif + +ifeq ($(AIX_PRE_4_2),1) + +# AIX releases prior to 4.2 need a special two-step linking hack +# in order to both override the system select() and be able to +# get at the original system select(). +# +# We use a pattern rule in ns/nspr20/config/rules.mk to generate +# the .$(OBJ_SUFFIX) file from the .c source file, then do the +# two-step linking hack below. + +$(OBJDIR)/%: $(OBJDIR)/%.$(OBJ_SUFFIX) + @$(MAKE_OBJDIR) + rm -f $@ $(AIX_TMP) + $(CC) $(AIX_LINK_OPTS) -o $(AIX_TMP) $< $(DIST)/lib/libnspr$(NSPR_VERSION).a + $(CC) -o $@ $(AIX_TMP) $(AIX_WRAP) + rm -f $(AIX_TMP) + +else + +# All platforms that are not AIX pre-4.2. + +$(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX) + @$(MAKE_OBJDIR) +ifeq ($(OS_ARCH), WINNT) +ifeq ($(OS_TARGET),WIN16) + echo system windows >w16link + echo option map >>w16link + echo option stack=10K >>w16link + echo option heapsize=32K >>w16link + echo debug $(DEBUGTYPE) all >>w16link + echo name $@ >>w16link + echo file >>w16link + echo $< >>w16link + echo library >>w16link + echo $(LIBPR), >>w16link + echo $(LIBPLC), >>w16link + echo winsock.lib >>w16link + wlink @w16link. +else + link $(LDOPTS) $< $(LIBPR) $(LIBPLC) wsock32.lib -out:$@ +endif +else + $(CC) $(XCFLAGS) $< $(LDOPTS) $(LIBPR) $(LIBPLC) $(EXTRA_LIBS) -o $@ +endif + +endif + +export:: $(TARGETS) +install:: export +clean:: + rm -f $(TARGETS) + diff --git a/mozilla/privacy/Makefile.in b/mozilla/privacy/Makefile.in new file mode 100644 index 00000000000..9a171771bf3 --- /dev/null +++ b/mozilla/privacy/Makefile.in @@ -0,0 +1,33 @@ +#! gmake +# +# The contents of this file are subject to the Netscape Public License +# Version 1.0 (the "License"); you may not use this file except in +# compliance with the License. You may obtain a copy of the License at +# http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS IS" +# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See +# the License for the specific language governing rights and limitations +# under the License. +# +# The Original Code is Mozilla Communicator client code. +# +# The Initial Developer of the Original Code is Netscape Communications +# Corporation. Portions created by Netscape are Copyright (C) 1998 +# Netscape Communications Corporation. All Rights Reserved. + +# +# + +DEPTH = .. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = public src + +include $(topsrcdir)/config/config.mk + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/privacy/public/Makefile.in b/mozilla/privacy/public/Makefile.in new file mode 100644 index 00000000000..bd4a5477eac --- /dev/null +++ b/mozilla/privacy/public/Makefile.in @@ -0,0 +1,36 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = privacy + +EXPORTS = \ + privacy.h \ + receipt.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/config.mk + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/privacy/src/Makefile.in b/mozilla/privacy/src/Makefile.in new file mode 100644 index 00000000000..32dc20302f6 --- /dev/null +++ b/mozilla/privacy/src/Makefile.in @@ -0,0 +1,48 @@ +#!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=../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +LIBRARY_NAME = privacy + +CSRCS = privacy.c + +ifdef MOZ_TRANSACTION_RECEIPTS +DEFINES += -DTRANSACTION_RECEIPTS +CSRCS += receipt.c +endif + +CPPSRCS = \ + $(NULL) + +MODULE = privacy + +EXPORTS = \ + $(NULL) + +REQUIRES = privacy network layer pref style lay rdf nspr util img js + +include $(topsrcdir)/config/config.mk + +TARGETS = $(LIBRARY) + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/sun-java/stubs/include/Makefile.in b/mozilla/sun-java/stubs/include/Makefile.in new file mode 100644 index 00000000000..7346b90f5c3 --- /dev/null +++ b/mozilla/sun-java/stubs/include/Makefile.in @@ -0,0 +1,27 @@ +#!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. + +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ +USE_AUTOCONF = 1 + +include $(srcdir)/manifest.mn + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/sun-java/stubs/include/manifest.mn b/mozilla/sun-java/stubs/include/manifest.mn index 46897f0ea50..0cc269ba2d6 100644 --- a/mozilla/sun-java/stubs/include/manifest.mn +++ b/mozilla/sun-java/stubs/include/manifest.mn @@ -44,3 +44,7 @@ EXPORTS = bool.h \ typedefs_md.h \ zip.h \ $(NULL) +ifdef USE_AUTOCONF +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) +endif + diff --git a/mozilla/sun-java/stubs/jri/Makefile.in b/mozilla/sun-java/stubs/jri/Makefile.in new file mode 100644 index 00000000000..8ecdf4c5414 --- /dev/null +++ b/mozilla/sun-java/stubs/jri/Makefile.in @@ -0,0 +1,27 @@ +#!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. + +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ +USE_AUTOCONF = 1 + +include $(srcdir)/manifest.mn + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/sun-java/stubs/jri/manifest.mn b/mozilla/sun-java/stubs/jri/manifest.mn index 2e06834f35a..32a7e62ce3f 100644 --- a/mozilla/sun-java/stubs/jri/manifest.mn +++ b/mozilla/sun-java/stubs/jri/manifest.mn @@ -28,3 +28,8 @@ CSRCS = EXPORTS = java_lang_String.h \ jdk_java_lang_String.h \ $(NULL) + +ifdef USE_AUTOCONF +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) +endif + diff --git a/mozilla/sun-java/stubs/src/Makefile.in b/mozilla/sun-java/stubs/src/Makefile.in new file mode 100644 index 00000000000..44e3d59fa40 --- /dev/null +++ b/mozilla/sun-java/stubs/src/Makefile.in @@ -0,0 +1,30 @@ +#!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. + +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ +USE_AUTOCONF = 1 + +include $(srcdir)/manifest.mn + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/rules.mk + +INCLUDES += -I$(DEPTH)/dist/public/img -I$(DEPTH)/dist/public/util -I$(DEPTH)/dist/public/layer + diff --git a/mozilla/xpcom/Makefile.in b/mozilla/xpcom/Makefile.in new file mode 100644 index 00000000000..5a3080037e8 --- /dev/null +++ b/mozilla/xpcom/Makefile.in @@ -0,0 +1,30 @@ +#!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 = .. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = src + +ifdef ENABLE_TESTS +DIRS += tests +endif + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/xpcom/src/Makefile.in b/mozilla/xpcom/src/Makefile.in new file mode 100644 index 00000000000..6d95e69c52c --- /dev/null +++ b/mozilla/xpcom/src/Makefile.in @@ -0,0 +1,58 @@ +#!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 = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = xpcom +LIBRARY_NAME = xpcom + +CPPSRCS = nsDebug.cpp \ + nsHashtable.cpp \ + nsID.cpp \ + nsSupportsArray.cpp \ + nsRepository.cpp \ + nsMalloc.cpp \ + $(NULL) + +EXPORTS = nsCom.h \ + nsAgg.h \ + nsDebug.h \ + nsError.h \ + nsHashtable.h \ + nsID.h \ + nsIFactory.h \ + nsISupports.h \ + nsIPtr.h \ + nsISupportsArray.h \ + nsRepository.h \ + nsIEnumerator.h \ + nsIMalloc.h \ + nsMalloc.h \ + nsVector.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +LCFLAGS = -D_IMPL_NS_COM -DUSE_NSREG + +REQUIRES = libreg + +include $(topsrcdir)/config/rules.mk diff --git a/mozilla/xpcom/tests/Makefile.in b/mozilla/xpcom/tests/Makefile.in new file mode 100644 index 00000000000..b5eaf93c590 --- /dev/null +++ b/mozilla/xpcom/tests/Makefile.in @@ -0,0 +1,79 @@ +#!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=../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/config.mk + +CPPSRCS = \ + RegFactory.cpp \ + TestFactory.cpp \ + $(NULL) + +INCLUDES=-I$(srcdir)/../src -I$(DIST)/include + +ifndef NO_SHARED_LIB +DIRS = dynamic +endif + +OBJS = $(CPPSRCS:.cpp=.o) + +EX_LIBS = + +ifndef NO_SHARED_LIB +EX_LIBS += \ + $(DIST)/bin/libreg.$(DLL_SUFFIX) \ + $(DIST)/bin/libxpcom.$(DLL_SUFFIX) +else +ifndef NO_STATIC_LIB +EX_LIBS += \ + $(DIST)/lib/libreg.a \ + $(DIST)/lib/libxpcom.a +endif +endif + +EX_LIBS += \ + $(DIST)/lib/libplc21.a \ + $(DIST)/lib/libplds21.a \ + $(DIST)/lib/libnspr21.a \ + $(NULL) + +PROGS = $(addprefix $(OBJDIR)/, $(CPPSRCS:.cpp=)) + +NON_DIRS = $(PROGS) +TARGETS = $(NON_DIRS) + +include $(topsrcdir)/config/rules.mk + +$(OBJDIR)/%.o: %.cpp + @$(MAKE_OBJDIR) + $(CCC) -o $@ $(CFLAGS) -DUSE_NSREG -c $< + +$(PROGS):$(OBJDIR)/%: $(OBJDIR)/%.o $(EX_LIBS) + @$(MAKE_OBJDIR) + $(CCC) -o $@ $@.o $(LDFLAGS) $(EX_LIBS) $(OS_LIBS) + +export:: + +install:: $(PROGS) + $(INSTALL) $(PROGS) $(DIST)/bin + diff --git a/mozilla/xpcom/tests/dynamic/Makefile.in b/mozilla/xpcom/tests/dynamic/Makefile.in new file mode 100644 index 00000000000..eff6c9ad6c9 --- /dev/null +++ b/mozilla/xpcom/tests/dynamic/Makefile.in @@ -0,0 +1,35 @@ +#!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 = ../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +LIBRARY_NAME = testdynamic + +LOCAL_INCLUDES = -I$(srcdir)/.. -I$(srcdir)/../../src + +CPPSRCS = \ + TestDynamic.cpp \ + $(NULL) + +include $(topsrcdir)/config/config.mk + +include $(topsrcdir)/config/rules.mk