# # 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 shape
#
# Author: Axel Mahler (Axel.Mahler@cs.tu-berlin.de)
#
# $Header: Shapefile[8.0] Thu Jul 22 15:31:39 1993 axel@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=gnu
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


all:+
	MAINTARGET=all
	ALLTARGETS=subsystems targets

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

clean:+
	MAINTARGET=clean
	ALLTARGETS=subsystems doclean

my_gnu:+
	CC=gcc -traditional -Wall

macro-ext:+
	vpath=macro-ext

IMPORT= NEED_STATUS

# Variant activation for normal builds and installation builds

#_all: all

$(TARGET): $(BINDDEFAULT) +$(HOSTSYSTEM) +$(COMPILER) +$(QUALITY) +$(MISCVAR)

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

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

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

disttar: $(COMPONENTS)
	tar cvf shape-dist.tar $(COMPONENTS)

# --------------------------------------------------------------------
#			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.

Dependencies=Dependencies

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)
