| 1 | # NOTE: If you have no `make' program at all to process this makefile, run
|
|---|
| 2 | # `build.sh' instead.
|
|---|
| 3 | #
|
|---|
| 4 | # Copyright (C) 1988, 89, 91, 92, 93, 94, 1995 Free Software Foundation, Inc.
|
|---|
| 5 | # This file is part of GNU Make.
|
|---|
| 6 | #
|
|---|
| 7 | # GNU Make is free software; you can redistribute it and/or modify
|
|---|
| 8 | # it under the terms of the GNU General Public License as published by
|
|---|
| 9 | # the Free Software Foundation; either version 2, or (at your option)
|
|---|
| 10 | # any later version.
|
|---|
| 11 | #
|
|---|
| 12 | # GNU Make is distributed in the hope that it will be useful,
|
|---|
| 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 15 | # GNU General Public License for more details.
|
|---|
| 16 | #
|
|---|
| 17 | # You should have received a copy of the GNU General Public License
|
|---|
| 18 | # along with GNU Make; see the file COPYING. If not, write to
|
|---|
| 19 | # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|---|
| 20 | # Boston, MA 02111-1307, USA.
|
|---|
| 21 |
|
|---|
| 22 | #
|
|---|
| 23 | # Makefile for GNU Make
|
|---|
| 24 | #
|
|---|
| 25 |
|
|---|
| 26 | # Ultrix 2.2 make doesn't expand the value of VPATH.
|
|---|
| 27 | VPATH = /make-3.81beta1/
|
|---|
| 28 | # This must repeat the value, because configure will remove `VPATH = .'.
|
|---|
| 29 | srcdir = /make-3.81beta1/
|
|---|
| 30 |
|
|---|
| 31 | CC = sc
|
|---|
| 32 | RM = delete
|
|---|
| 33 | MAKE = smake
|
|---|
| 34 |
|
|---|
| 35 | CFLAGS =
|
|---|
| 36 | CPPFLAGS =
|
|---|
| 37 | LDFLAGS =
|
|---|
| 38 |
|
|---|
| 39 | # Define these for your system as follows:
|
|---|
| 40 | # -DNO_ARCHIVES To disable `ar' archive support.
|
|---|
| 41 | # -DNO_FLOAT To avoid using floating-point numbers.
|
|---|
| 42 | # -DENUM_BITFIELDS If the compiler isn't GCC but groks enum foo:2.
|
|---|
| 43 | # Some compilers apparently accept this
|
|---|
| 44 | # without complaint but produce losing code,
|
|---|
| 45 | # so beware.
|
|---|
| 46 | # NeXT 1.0a uses an old version of GCC, which required -D__inline=inline.
|
|---|
| 47 | # See also `config.h'.
|
|---|
| 48 | defines =
|
|---|
| 49 |
|
|---|
| 50 | # Which flavor of remote job execution support to use.
|
|---|
| 51 | # The code is found in `remote-$(REMOTE).c'.
|
|---|
| 52 | REMOTE = stub
|
|---|
| 53 |
|
|---|
| 54 | # If you are using the GNU C library, or have the GNU getopt functions in
|
|---|
| 55 | # your C library, you can comment these out.
|
|---|
| 56 | GETOPT = getopt.o getopt1.o
|
|---|
| 57 | GETOPT_SRC = $(srcdir)getopt.c $(srcdir)getopt1.c $(srcdir)getopt.h
|
|---|
| 58 |
|
|---|
| 59 | # If you are using the GNU C library, or have the GNU glob functions in
|
|---|
| 60 | # your C library, you can comment this out. GNU make uses special hooks
|
|---|
| 61 | # into the glob functions to be more efficient (by using make's directory
|
|---|
| 62 | # cache for globbing), so you must use the GNU functions even if your
|
|---|
| 63 | # system's C library has the 1003.2 glob functions already. Also, the glob
|
|---|
| 64 | # functions in the AIX and HPUX C libraries are said to be buggy.
|
|---|
| 65 | GLOB = Lib glob/glob.lib
|
|---|
| 66 |
|
|---|
| 67 | # If your system doesn't have alloca, or the one provided is bad, define this.
|
|---|
| 68 | ALLOCA = alloca.o
|
|---|
| 69 | ALLOCA_SRC = $(srcdir)alloca.c
|
|---|
| 70 |
|
|---|
| 71 | # If your system needs extra libraries loaded in, define them here.
|
|---|
| 72 | # System V probably need -lPW for alloca. HP-UX 7.0's alloca in
|
|---|
| 73 | # libPW.a is broken on HP9000s300 and HP9000s400 machines. Use
|
|---|
| 74 | # alloca.c instead on those machines.
|
|---|
| 75 | LOADLIBES =
|
|---|
| 76 |
|
|---|
| 77 | # Any extra object files your system needs.
|
|---|
| 78 | extras = amiga.o
|
|---|
| 79 |
|
|---|
| 80 | # Common prefix for machine-independent installed files.
|
|---|
| 81 | prefix =
|
|---|
| 82 | # Common prefix for machine-dependent installed files.
|
|---|
| 83 | exec_prefix =
|
|---|
| 84 |
|
|---|
| 85 | # Directory to install `make' in.
|
|---|
| 86 | bindir = sc:c
|
|---|
| 87 | # Directory to find libraries in for `-lXXX'.
|
|---|
| 88 | libdir = lib:
|
|---|
| 89 | # Directory to search by default for included makefiles.
|
|---|
| 90 | includedir = include:
|
|---|
| 91 | # Directory to install the Info files in.
|
|---|
| 92 | infodir = doc:
|
|---|
| 93 | # Directory to install the man page in.
|
|---|
| 94 | mandir = t:
|
|---|
| 95 | # Number to put on the man page filename.
|
|---|
| 96 | manext = 1
|
|---|
| 97 | # Prefix to put on installed `make' binary file name.
|
|---|
| 98 | binprefix =
|
|---|
| 99 | # Prefix to put on installed `make' man page file name.
|
|---|
| 100 | manprefix = $(binprefix)
|
|---|
| 101 |
|
|---|
| 102 | # Whether or not make needs to be installed setgid.
|
|---|
| 103 | # The value should be either `true' or `false'.
|
|---|
| 104 | # On many systems, the getloadavg function (used to implement the `-l'
|
|---|
| 105 | # switch) will not work unless make is installed setgid kmem.
|
|---|
| 106 | install_setgid = false
|
|---|
| 107 | # Install make setgid to this group so it can read /dev/kmem.
|
|---|
| 108 | group = sys
|
|---|
| 109 |
|
|---|
| 110 | # Program to install `make'.
|
|---|
| 111 | INSTALL_PROGRAM = copy
|
|---|
| 112 | # Program to install the man page.
|
|---|
| 113 | INSTALL_DATA = copy
|
|---|
| 114 | # Generic install program.
|
|---|
| 115 | INSTALL = copy
|
|---|
| 116 |
|
|---|
| 117 | # Program to format Texinfo source into Info files.
|
|---|
| 118 | MAKEINFO = makeinfo
|
|---|
| 119 | # Program to format Texinfo source into DVI files.
|
|---|
| 120 | TEXI2DVI = texi2dvi
|
|---|
| 121 |
|
|---|
| 122 | # Programs to make tags files.
|
|---|
| 123 | ETAGS = etags -w
|
|---|
| 124 | CTAGS = ctags -w
|
|---|
| 125 |
|
|---|
| 126 | objs = commands.o job.o dir.o file.o misc.o main.o read.o remake.o \
|
|---|
| 127 | rule.o implicit.o default.o variable.o expand.o function.o \
|
|---|
| 128 | vpath.o version.o ar.o arscan.o signame.o hash.o \
|
|---|
| 129 | remote-$(REMOTE).o $(GLOB) $(GETOPT) $(ALLOCA) $(extras)
|
|---|
| 130 | srcs = $(srcdir)commands.c $(srcdir)job.c $(srcdir)dir.c \
|
|---|
| 131 | $(srcdir)file.c $(srcdir)getloadavg.c $(srcdir)misc.c \
|
|---|
| 132 | $(srcdir)main.c $(srcdir)read.c $(srcdir)remake.c \
|
|---|
| 133 | $(srcdir)rule.c $(srcdir)implicit.c $(srcdir)default.c \
|
|---|
| 134 | $(srcdir)variable.c $(srcdir)expand.c $(srcdir)function.c \
|
|---|
| 135 | $(srcdir)vpath.c $(srcdir)version.c $(srcdir)hash.c \
|
|---|
| 136 | $(srcdir)remote-$(REMOTE).c \
|
|---|
| 137 | $(srcdir)ar.c $(srcdir)arscan.c \
|
|---|
| 138 | $(srcdir)signame.c $(srcdir)signame.h $(GETOPT_SRC) \
|
|---|
| 139 | $(srcdir)commands.h $(srcdir)dep.h $(srcdir)file.h \
|
|---|
| 140 | $(srcdir)job.h $(srcdir)make.h $(srcdir)rule.h \
|
|---|
| 141 | $(srcdir)variable.h $(ALLOCA_SRC) $(srcdir)config.h.in
|
|---|
| 142 |
|
|---|
| 143 |
|
|---|
| 144 | .SUFFIXES:
|
|---|
| 145 | .SUFFIXES: .o .c .h .ps .dvi .info .texinfo
|
|---|
| 146 |
|
|---|
| 147 | all: make
|
|---|
| 148 | info: make.info
|
|---|
| 149 | dvi: make.dvi
|
|---|
| 150 | # Some makes apparently use .PHONY as the default goal if it is before `all'.
|
|---|
| 151 | .PHONY: all check info dvi
|
|---|
| 152 |
|
|---|
| 153 | make.info: make.texinfo
|
|---|
| 154 | $(MAKEINFO) -I$(srcdir) $(srcdir)make.texinfo -o make.info
|
|---|
| 155 |
|
|---|
| 156 | make.dvi: make.texinfo
|
|---|
| 157 | $(TEXI2DVI) $(srcdir)make.texinfo
|
|---|
| 158 |
|
|---|
| 159 | make.ps: make.dvi
|
|---|
| 160 | dvi2ps make.dvi > make.ps
|
|---|
| 161 |
|
|---|
| 162 | make: $(objs) glob/glob.lib
|
|---|
| 163 | $(CC) Link $(LDFLAGS) $(objs) $(LOADLIBES) To make.new
|
|---|
| 164 | -delete quiet make
|
|---|
| 165 | rename make.new make
|
|---|
| 166 |
|
|---|
| 167 | # -I. is needed to find config.h in the build directory.
|
|---|
| 168 | .c.o:
|
|---|
| 169 | $(CC) $(defines) IDir "" IDir $(srcdir)glob \
|
|---|
| 170 | $(CPPFLAGS) $(CFLAGS) $< $(OUTPUT_OPTION)
|
|---|
| 171 |
|
|---|
| 172 | glob/glob.lib:
|
|---|
| 173 | execute <<
|
|---|
| 174 | cd glob
|
|---|
| 175 | smake
|
|---|
| 176 | <
|
|---|
| 177 |
|
|---|
| 178 | tagsrcs = $(srcs) $(srcdir)remote-*.c
|
|---|
| 179 | TAGS: $(tagsrcs)
|
|---|
| 180 | $(ETAGS) $(tagsrcs)
|
|---|
| 181 | tags: $(tagsrcs)
|
|---|
| 182 | $(CTAGS) $(tagsrcs)
|
|---|
| 183 |
|
|---|
| 184 | .PHONY: install installdirs
|
|---|
| 185 | install:
|
|---|
| 186 | copy make sc:c
|
|---|
| 187 |
|
|---|
| 188 | loadavg: loadavg.c config.h
|
|---|
| 189 | $(CC) $(defines) -DTEST -I. -I$(srcdir) $(CFLAGS) $(LDFLAGS) \
|
|---|
| 190 | loadavg.c $(LOADLIBES) -o $@
|
|---|
| 191 |
|
|---|
| 192 | clean: glob-clean
|
|---|
| 193 | -$(RM) -f make loadavg *.o core make.dvi
|
|---|
| 194 |
|
|---|
| 195 | distclean: clean glob-realclean
|
|---|
| 196 | -$(RM) -f Makefile config.h config.status build.sh
|
|---|
| 197 | -$(RM) -f config.log config.cache
|
|---|
| 198 | -$(RM) -f TAGS tags
|
|---|
| 199 | -$(RM) -f make.?? make.??s make.log make.toc make.*aux
|
|---|
| 200 | -$(RM) -f loadavg.c
|
|---|
| 201 |
|
|---|
| 202 | realclean: distclean
|
|---|
| 203 | -$(RM) -f make.info*
|
|---|
| 204 |
|
|---|
| 205 | mostlyclean: clean
|
|---|
| 206 |
|
|---|
| 207 | .PHONY: glob-clean glob-realclean
|
|---|
| 208 |
|
|---|
| 209 | glob-clean glob-realclean:
|
|---|
| 210 | execute <<
|
|---|
| 211 | cd glob
|
|---|
| 212 | smake $@
|
|---|
| 213 | <
|
|---|
| 214 |
|
|---|
| 215 | # --------------- DEPENDENCIES
|
|---|
| 216 | #
|
|---|
| 217 | # dummy
|
|---|
| 218 | # dummy
|
|---|
| 219 | ar.o : \
|
|---|
| 220 | ar.c make.h config.h \
|
|---|
| 221 | getopt.h \
|
|---|
| 222 | gettext.h filedef.h \
|
|---|
| 223 | hash.h dep.h
|
|---|
| 224 | arscan.o : \
|
|---|
| 225 | arscan.c make.h config.h \
|
|---|
| 226 | getopt.h \
|
|---|
| 227 | gettext.h \
|
|---|
| 228 |
|
|---|
| 229 | commands.o : \
|
|---|
| 230 | commands.c make.h config.h \
|
|---|
| 231 | getopt.h \
|
|---|
| 232 | gettext.h dep.h \
|
|---|
| 233 | filedef.h hash.h variable.h job.h \
|
|---|
| 234 | commands.h
|
|---|
| 235 | default.o : \
|
|---|
| 236 | default.c make.h config.h \
|
|---|
| 237 | getopt.h \
|
|---|
| 238 | gettext.h filedef.h \
|
|---|
| 239 | hash.h variable.h rule.h dep.h job.h \
|
|---|
| 240 | commands.h
|
|---|
| 241 | dir.o : \
|
|---|
| 242 | dir.c make.h config.h \
|
|---|
| 243 | getopt.h \
|
|---|
| 244 | gettext.h hash.h \
|
|---|
| 245 |
|
|---|
| 246 | expand.o : \
|
|---|
| 247 | expand.c make.h config.h \
|
|---|
| 248 | getopt.h \
|
|---|
| 249 | gettext.h \
|
|---|
| 250 | filedef.h hash.h job.h \
|
|---|
| 251 | commands.h variable.h rule.h
|
|---|
| 252 | file.o : \
|
|---|
| 253 | file.c make.h config.h \
|
|---|
| 254 | getopt.h \
|
|---|
| 255 | gettext.h \
|
|---|
| 256 | dep.h filedef.h hash.h job.h \
|
|---|
| 257 | commands.h variable.h \
|
|---|
| 258 | debug.h
|
|---|
| 259 | function.o : \
|
|---|
| 260 | function.c make.h config.h \
|
|---|
| 261 | getopt.h \
|
|---|
| 262 | gettext.h filedef.h \
|
|---|
| 263 | hash.h variable.h dep.h job.h \
|
|---|
| 264 | commands.h debug.h
|
|---|
| 265 | getopt.o : \
|
|---|
| 266 | getopt.c config.h \
|
|---|
| 267 |
|
|---|
| 268 | getopt1.o : \
|
|---|
| 269 | getopt1.c config.h getopt.h \
|
|---|
| 270 |
|
|---|
| 271 | hash.o : \
|
|---|
| 272 | hash.c make.h config.h \
|
|---|
| 273 | getopt.h \
|
|---|
| 274 | gettext.h hash.h
|
|---|
| 275 | implicit.o : \
|
|---|
| 276 | implicit.c make.h config.h \
|
|---|
| 277 | getopt.h \
|
|---|
| 278 | gettext.h filedef.h \
|
|---|
| 279 | hash.h rule.h dep.h debug.h
|
|---|
| 280 | job.o : \
|
|---|
| 281 | job.c make.h config.h \
|
|---|
| 282 | getopt.h \
|
|---|
| 283 | gettext.h \
|
|---|
| 284 | job.h \
|
|---|
| 285 | debug.h filedef.h hash.h commands.h \
|
|---|
| 286 | variable.h \
|
|---|
| 287 |
|
|---|
| 288 | loadavg-getloadavg.o : \
|
|---|
| 289 | getloadavg.c config.h \
|
|---|
| 290 | make.h \
|
|---|
| 291 | getopt.h \
|
|---|
| 292 | gettext.h \
|
|---|
| 293 |
|
|---|
| 294 | main.o : \
|
|---|
| 295 | main.c make.h config.h \
|
|---|
| 296 | getopt.h \
|
|---|
| 297 | gettext.h dep.h \
|
|---|
| 298 | filedef.h hash.h variable.h job.h \
|
|---|
| 299 | commands.h rule.h debug.h \
|
|---|
| 300 |
|
|---|
| 301 | misc.o : \
|
|---|
| 302 | misc.c make.h config.h \
|
|---|
| 303 | getopt.h \
|
|---|
| 304 | gettext.h dep.h \
|
|---|
| 305 | debug.h
|
|---|
| 306 | read.o : \
|
|---|
| 307 | read.c make.h config.h \
|
|---|
| 308 | getopt.h \
|
|---|
| 309 | gettext.h \
|
|---|
| 310 | dep.h filedef.h hash.h \
|
|---|
| 311 | job.h commands.h \
|
|---|
| 312 | variable.h rule.h debug.h
|
|---|
| 313 | remake.o : \
|
|---|
| 314 | remake.c make.h config.h \
|
|---|
| 315 | getopt.h \
|
|---|
| 316 | gettext.h filedef.h \
|
|---|
| 317 | hash.h job.h \
|
|---|
| 318 | commands.h dep.h variable.h debug.h
|
|---|
| 319 | # dummy
|
|---|
| 320 | remote-stub.o : \
|
|---|
| 321 | remote-stub.c make.h config.h \
|
|---|
| 322 | getopt.h \
|
|---|
| 323 | gettext.h filedef.h \
|
|---|
| 324 | hash.h job.h \
|
|---|
| 325 | commands.h
|
|---|
| 326 | rule.o : \
|
|---|
| 327 | rule.c make.h config.h \
|
|---|
| 328 | getopt.h \
|
|---|
| 329 | gettext.h dep.h \
|
|---|
| 330 | filedef.h hash.h job.h \
|
|---|
| 331 | commands.h variable.h rule.h
|
|---|
| 332 | signame.o : \
|
|---|
| 333 | signame.c make.h config.h \
|
|---|
| 334 | getopt.h \
|
|---|
| 335 | gettext.h
|
|---|
| 336 | variable.o : \
|
|---|
| 337 | variable.c make.h config.h \
|
|---|
| 338 | getopt.h \
|
|---|
| 339 | gettext.h dep.h \
|
|---|
| 340 | filedef.h hash.h job.h \
|
|---|
| 341 | commands.h variable.h rule.h
|
|---|
| 342 | version.o : \
|
|---|
| 343 | version.c config.h
|
|---|
| 344 | vpath.o : \
|
|---|
| 345 | vpath.c make.h config.h \
|
|---|
| 346 | getopt.h \
|
|---|
| 347 | gettext.h filedef.h \
|
|---|
| 348 | hash.h variable.h
|
|---|