## Copyright (C) 1993,1994 by the author(s).
# 
# This software is published in the hope that it will be useful, but
# WITHOUT ANY WARRANTY for any part of this software to work correctly
# or as described in the manuals. See the ShapeTools Public License
# for details.
#
# Permission is granted to use, copy, modify, or distribute any part of
# this software but only under the conditions described in the ShapeTools 
# Public License. A copy of this license is supposed to have been given
# to you along with ShapeTools in a file named LICENSE. Among other
# things, this copyright notice and the Public License must be
# preserved on all copies.

#
# Shapefile for AtFS
#
# Authors: Andreas Lampen (Andreas.Lampen@cs.tu-berlin.de)
#          Axel Mahler (Axel.Mahler@cs.tu-berlin.de)
#
# $Header: Shapefile[7.0] Fri Jun 25 14:33:26 1993 andy@cs.tu-berlin.de frozen $
#

# --------------------------------------------------------------------
#		   version and variant selection
# --------------------------------------------------------------------

# The default version selection rule.
# See $(SHAPELIBPATH)/stdrules for further options.

VERSIONS=most_recent

BINDDEFAULT=$(VERSIONS)
BINDINSTALL=recent_release

# The default variant settings.
# The corresponding definitions are in $(SHAPELIBPATH)/stdvar

COMPILER=pcc
QUALITY=debug

# The base directory of the release area
#
#  for global releases of the whole system
TOTALRELEASEBASE = /home/stone/shape/release

# for collecting the most recent releases of all subsystems
PARTIALRELEASEBASE = /home/stone/shape/partial.release

# Pathnames for the components within the release areas.
RELEASESRCPATH = $(NODEPATH)
RELEASEMANPATH = man

# Variant activation for normal builds and installation builds

# Local test environment. This definition is to be removed when
# the Shapefile shall be used outside the AtFS development area.
#

_all: all

$(LIBTARGET) $(BINTARGET): \
	$(BINDDEFAULT) +$(HOSTSYSTEM) +$(COMPILER) +$(QUALITY)

$(VERSIONOBJECT): $(VERSIONFILE) : +(LASTRELEASE) +(CC) +(CFLAGS)
	$(CC) -c $(CFLAGS) $(VERSIONFILE)

install: +$(HOSTSYSTEM) +$(COMPILER) +$(QUALITY)

localinstall: +$(HOSTSYSTEM) +$(COMPILER) +$(QUALITY)

# --------------------------------------------------------------------
#			includes
# --------------------------------------------------------------------

include Makefile

CFLAGS += $(VARCFLAGS)
LDFLAGS += $(VARLDFLAGS)

SHAPELIBPATH = $(LOCALLIBPATH)/shape
include $(SHAPELIBPATH)/stdtargets
include $(SHAPELIBPATH)/stdrules
include $(SHAPELIBPATH)/stdvar
include $(SHAPELIBPATH)/stdconf

# The system's include dependencies (C development specific).
# This file is automatically generated by invocation of "shape depend".
# !!! shape depend requires a C compiler supporting the -M option.

include Dependencies

# --------------------------------------------------------------------
#			miscellaneous stuff
# --------------------------------------------------------------------

#
# List of objects to be stored in the derived object cache.

.BPOOL: $(OBJECTS)
# .NOBPOOL:
# deactivates the derived object cache.

# --------------------------------------------------------------------
#			internals (do not modify)
# --------------------------------------------------------------------

MAKE=$(SHAPE)

#% VARIANT-SECTION

all:
	MAINTARGET=all
	ALLTARGETS=subsystems targets

localinstall:
	MAINTARGET=localinstall
	ALLTARGETS=subsystems localinstalltargets
	BINDDEFAULT=$(BINDINSTALL)

install:
	MAINTARGET=install
	ALLTARGETS=subsystems installtargets
	BINDDEFAULT=$(BINDINSTALL)

clean:
	MAINTARGET=clean
	ALLTARGETS=subsystems doclean

trace_keys:
	VARCFLAGS=-DAFTRACE

#% END-VARIANT-SECTION
