[18859] | 1 | # |
---|
| 2 | # The contents of this file are subject to the Netscape Public |
---|
| 3 | # License Version 1.1 (the "License"); you may not use this file |
---|
| 4 | # except in compliance with the License. You may obtain a copy of |
---|
| 5 | # the License at http://www.mozilla.org/NPL/ |
---|
| 6 | # |
---|
| 7 | # Software distributed under the License is distributed on an "AS |
---|
| 8 | # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
---|
| 9 | # implied. See the License for the specific language governing |
---|
| 10 | # rights and limitations under the License. |
---|
| 11 | # |
---|
| 12 | # The Original Code is mozilla.org code. |
---|
| 13 | # |
---|
| 14 | # The Initial Developer of the Original Code is Netscape |
---|
| 15 | # Communications Corporation. Portions created by Netscape are |
---|
| 16 | # Copyright (C) 1998 Netscape Communications Corporation. All |
---|
| 17 | # Rights Reserved. |
---|
| 18 | # |
---|
| 19 | # Contributor(s): |
---|
| 20 | # |
---|
| 21 | |
---|
| 22 | DEPTH = . |
---|
| 23 | THIS_MAKEFILE = nglayout.mk |
---|
| 24 | |
---|
| 25 | # Branch tags we use |
---|
| 26 | LIBPREF_BRANCH = XPCOM_BRANCH |
---|
| 27 | NETLIB_BRANCH = |
---|
| 28 | PLUGIN_BRANCH = |
---|
| 29 | |
---|
| 30 | ifdef MOZ_DATE |
---|
| 31 | CVSCO = cvs -q co -P -D $(MOZ_DATE) |
---|
| 32 | CVSCO_PLUGIN = $(CVSCO) |
---|
| 33 | else |
---|
| 34 | CVSCO = cvs -q co -P |
---|
| 35 | CVSCO_PLUGIN = $(CVSCO) -A |
---|
| 36 | endif |
---|
| 37 | |
---|
| 38 | CVSCO_IMGLIB = $(CVSCO) |
---|
| 39 | CVSCO_LIBPREF = $(CVSCO) -r $(LIBPREF_BRANCH) |
---|
| 40 | CVSCO_LIZARD = $(CVSCO) |
---|
| 41 | CVSCO_NETLIB = $(CVSCO) |
---|
| 42 | CVSCO_NGLAYOUT = $(CVSCO) |
---|
| 43 | |
---|
| 44 | # The list of directories that need to be built to build the standalone |
---|
| 45 | # nglayout test program. The order is important. |
---|
| 46 | DIRS = \ |
---|
| 47 | config \ |
---|
| 48 | dbm \ |
---|
| 49 | nsprpub \ |
---|
| 50 | jpeg \ |
---|
| 51 | modules/libreg \ |
---|
| 52 | xpcom \ |
---|
| 53 | modules/zlib \ |
---|
| 54 | modules/libutil \ |
---|
| 55 | sun-java \ |
---|
| 56 | nav-java \ |
---|
| 57 | js \ |
---|
| 58 | modules/security/freenav \ |
---|
| 59 | modules/libpref \ |
---|
| 60 | modules/libimg \ |
---|
| 61 | modules/oji \ |
---|
| 62 | modules/plugin \ |
---|
| 63 | base \ |
---|
| 64 | caps \ |
---|
| 65 | lib/xp \ |
---|
| 66 | lib/libpwcac \ |
---|
| 67 | network \ |
---|
| 68 | lib/liblayer/include \ |
---|
| 69 | htmlparser \ |
---|
| 70 | gfx \ |
---|
| 71 | dom \ |
---|
| 72 | view \ |
---|
| 73 | widget \ |
---|
| 74 | layout \ |
---|
| 75 | editor \ |
---|
| 76 | webshell |
---|
| 77 | |
---|
| 78 | real_all: all |
---|
| 79 | |
---|
| 80 | real_export: export |
---|
| 81 | |
---|
| 82 | real_libs: libs |
---|
| 83 | |
---|
| 84 | real_install: install |
---|
| 85 | |
---|
| 86 | real_clobber: clobber |
---|
| 87 | |
---|
| 88 | real_depend: depend |
---|
| 89 | |
---|
| 90 | # |
---|
| 91 | # Rules for pulling the source from the cvs repository |
---|
| 92 | # |
---|
| 93 | pull_all: pull_lizard pull_xpcom pull_imglib pull_netlib pull_nglayout pull_editor pull_plugin pull_autoconf |
---|
| 94 | |
---|
| 95 | pull_lizard: |
---|
| 96 | cd $(DEPTH)/..; \ |
---|
| 97 | $(CVSCO_LIZARD) mozilla/config; \ |
---|
| 98 | $(CVSCO_LIZARD) mozilla/dbm; \ |
---|
| 99 | $(CVSCO_LIZARD) mozilla/build/build_number; \ |
---|
| 100 | $(CVSCO_LIZARD) mozilla/cmd/xfe/icons/icondata.h; \ |
---|
| 101 | $(CVSCO_LIZARD) mozilla/lib/liblayer; \ |
---|
| 102 | $(CVSCO_LIZARD) mozilla/modules/zlib; \ |
---|
| 103 | $(CVSCO_LIZARD) mozilla/modules/libutil; \ |
---|
| 104 | $(CVSCO_LIZARD) mozilla/nsprpub; \ |
---|
| 105 | $(CVSCO_LIZARD) mozilla/sun-java; \ |
---|
| 106 | $(CVSCO_LIZARD) mozilla/nav-java; \ |
---|
| 107 | $(CVSCO_LIZARD) mozilla/js; \ |
---|
| 108 | $(CVSCO_LIZARD) mozilla/caps; \ |
---|
| 109 | $(CVSCO_LIZARD) mozilla/modules/security/freenav; \ |
---|
| 110 | $(CVSCO_LIZARD) mozilla/rdf; |
---|
| 111 | |
---|
| 112 | pull_xpcom: |
---|
| 113 | cd $(DEPTH)/..; \ |
---|
| 114 | $(CVSCO) -A mozilla/modules/libreg; \ |
---|
| 115 | $(CVSCO) -A mozilla/xpcom; \ |
---|
| 116 | $(CVSCO_LIBPREF) mozilla/modules/libpref |
---|
| 117 | |
---|
| 118 | pull_imglib: |
---|
| 119 | cd $(DEPTH)/..; \ |
---|
| 120 | $(CVSCO_IMGLIB) mozilla/jpeg; \ |
---|
| 121 | $(CVSCO_IMGLIB) mozilla/modules/libutil; \ |
---|
| 122 | $(CVSCO_IMGLIB) mozilla/modules/libimg |
---|
| 123 | |
---|
| 124 | pull_plugin: |
---|
| 125 | cd $(DEPTH)/..; \ |
---|
| 126 | $(CVSCO_LIZARD) mozilla/modules/oji; \ |
---|
| 127 | $(CVSCO_PLUGIN) mozilla/modules/plugin |
---|
| 128 | |
---|
| 129 | pull_netlib: |
---|
| 130 | cd $(DEPTH)/..; \ |
---|
| 131 | $(CVSCO_NETLIB) mozilla/lib/xp; \ |
---|
| 132 | $(CVSCO_NETLIB) mozilla/lib/libpwcac; \ |
---|
| 133 | $(CVSCO_NETLIB) mozilla/network; \ |
---|
| 134 | $(CVSCO_NETLIB) mozilla/include |
---|
| 135 | |
---|
| 136 | pull_nglayout: |
---|
| 137 | cd $(DEPTH)/..; \ |
---|
| 138 | $(CVSCO_NGLAYOUT) mozilla/base; \ |
---|
| 139 | $(CVSCO_NGLAYOUT) mozilla/dom; \ |
---|
| 140 | $(CVSCO_NGLAYOUT) mozilla/gfx; \ |
---|
| 141 | $(CVSCO_NGLAYOUT) mozilla/htmlparser; \ |
---|
| 142 | $(CVSCO_NGLAYOUT) mozilla/layout; \ |
---|
| 143 | $(CVSCO_NGLAYOUT) mozilla/view; \ |
---|
| 144 | $(CVSCO_NGLAYOUT) mozilla/webshell; \ |
---|
| 145 | $(CVSCO_NGLAYOUT) mozilla/widget |
---|
| 146 | |
---|
| 147 | pull_editor: |
---|
| 148 | cd $(DEPTH)/..; \ |
---|
| 149 | $(CVSCO_NGLAYOUT) mozilla/editor |
---|
| 150 | |
---|
| 151 | pull_doc: |
---|
| 152 | cd $(DEPTH)/..; \ |
---|
| 153 | $(CVSCO_NGLAYOUT) README/nglayout; \ |
---|
| 154 | $(CVSCO_NGLAYOUT) mozilla/LICENSE; \ |
---|
| 155 | $(CVSCO_NGLAYOUT) mozilla/LEGAL |
---|
| 156 | |
---|
| 157 | pull_autoconf: |
---|
| 158 | cd $(DEPTH)/..; \ |
---|
| 159 | $(CVSCO_NGLAYOUT) mozilla/build/autoconf; \ |
---|
| 160 | $(CVSCO_NGLAYOUT) mozilla/build/hcc; \ |
---|
| 161 | $(CVSCO_NGLAYOUT) mozilla/build/hcpp; \ |
---|
| 162 | $(CVSCO_NGLAYOUT) mozilla/xpfe; \ |
---|
| 163 | $(CVSCO_NGLAYOUT) mozilla/Makefile.in; \ |
---|
| 164 | $(CVSCO_NGLAYOUT) mozilla/aclocal.m4; \ |
---|
| 165 | $(CVSCO_NGLAYOUT) mozilla/configure.in; |
---|
| 166 | |
---|
| 167 | ###################################################################### |
---|
| 168 | # |
---|
| 169 | # Build tarball |
---|
| 170 | |
---|
| 171 | DATE_CMD = date |
---|
| 172 | DATE = $(shell $(DATE_CMD) +%Y%m%d) |
---|
| 173 | |
---|
| 174 | TAR = tar |
---|
| 175 | GZIP = gzip |
---|
| 176 | |
---|
| 177 | TARBALL = $(MOZ_SRC)/unix-$(DATE).tar |
---|
| 178 | |
---|
| 179 | TARFILES = mozilla README/nglayout |
---|
| 180 | |
---|
| 181 | tarball: pull_all pull_doc clobber clobber_all real_tar |
---|
| 182 | |
---|
| 183 | real_tar: |
---|
| 184 | @echo Making $(TARBALL) |
---|
| 185 | cd $(DEPTH)/..; \ |
---|
| 186 | rm -f $(TARBALL) $(TARBALL).gz; \ |
---|
| 187 | $(TAR) cf $(TARBALL) $(TARFILES) |
---|
| 188 | @echo Making gzip of $(TARBALL); \ |
---|
| 189 | cd $(DEPTH)/..; \ |
---|
| 190 | $(GZIP) -9 -q $(TARBALL) |
---|
| 191 | |
---|