# Generated automaticaINSTALlly from Makefile.in by configure.
# NOTE: If you have no `make' program at all to process this makefile, run
# `build.sh' instead.
#
# Copyright (C) 1988, 1989, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
# This file is part of GNU Make.
# 
# GNU Make 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, or (at your option)
# any later version.
#
# GNU Make 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 GNU Make; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

#
#	Makefile for GNU Make
#

# Ultrix 2.2 make doesn't expand the value of VPATH.
# This must repeat the value, because configure will remove `VPATH = .'.
srcdir=.

CC=gcc

# Define these for your system as follows:
#	-DNO_ARCHIVES		To disable `ar' archive support.
#	-DNO_FLOAT		To avoid using floating-point numbers.
#	-DENUM_BITFIELDS	If the compiler isn't GCC but groks enum foo:2.
#				Some compilers apparently accept this
#				without complaint but produce losing code,
#				so beware.
# NeXT 1.0a uses an old version of GCC, which required -D__inline=inline.
# See also `config.h'.
defs = -DHAVE_CONFIG_H -DNO_FLOAT -DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\"

INCS=-I. -I$(srcdir) -I$(srcdir)/glob

CFLAGS=-O -g -DVSTA -DVSTADOSFS $(defs) $(INCS)

# Which flavor of remote job execution support to use.
# The code is found in `remote-$(REMOTE).c'.
REMOTE=stub

# If you are using the GNU C library, or have the GNU getopt functions in
# your C library, you can comment these out.
GETOPT=getopt.o getopt1.o
GETOPT_SRC=$(srcdir)/getopt.c $(srcdir)/getopt1.c $(srcdir)/getopt.h

# If you are using the GNU C library, or have the GNU glob functions in
# your C library, you can comment this out.  GNU make uses special hooks
# into the glob functions to be more efficient (by using make's directory
# cache for globbing), so you must use the GNU functions even if your
# system's C library has the 1003.2 glob functions already.  Also, the glob
# functions in the AIX and HPUX C libraries are said to be buggy.
GLOB=glob/libglob.a

# If your system doesn't have alloca, or the one provided is bad, define this.
ALLOCA = 
ALLOCA_SRC = $(srcdir)/alloca.c

# If your system needs extra libraries loaded in, define them here.
# System V probably need -lPW for alloca.  HP-UX 7.0's alloca in
# libPW.a is broken on HP9000s300 and HP9000s400 machines.  Use
# alloca.c instead on those machines.
LOADLIBES=/vandys/vsta/src/lib/libc_s.a

# Any extra object files your system needs.
extras=getloadavg.o

# Common prefix for machine-independent installed files.
prefix=/vsta
# Common prefix for machine-dependent installed files.
exec_prefix=$(prefix)

# Directory to install `make' in.
bindir=$(exec_prefix)/bin
# Directory to find libraries in for `-lXXX'.
libdir=$(exec_prefix)/lib
# Directory to search by default for included makefiles.
includedir = $(prefix)/include
# Prefix to put on installed `make' binary file name.
binprefix=g

objs = commands.o job.o dir.o file.o misc.o main.o read.o remake.o	\
       rule.o implicit.o default.o variable.o expand.o function.o	\
       vpath.o version.o ar.o arscan.o signame.o remote-$(REMOTE).o	\
       $(GLOB) $(GETOPT) $(ALLOCA) $(extras)

all: make.new

make.new: $(objs)
	$(CC) $(CFLAGS) -o make.new $(objs) $(LOADLIBES)

install: make.new
	strip make.new
	cp make.new $(bindir)/$(binprefix)make

clean:
	rm -f loadavg *.o core make.info* make.dvi

clobber: clean
	rm -f make
