#
# $PROJECT: cli.datatype
#
# $VER: Makefile 39.1 (06.08.95)
#
# by
#
# Stefan Ruppert , Windthorststrasse 5 , 65439 Floersheim , GERMANY
#
# (C) Copyright 1995
# All Rights Reserved !
#
# $DESCRIPTION:
#
# If you want to recompile the datatype you have to do some initial work, to
# run this makefile !
# First you must have installed the ixemul.library and the gnu make utility !
# Second you have to set the VERSION,REVISION variables (In my environment it's
# automatically set). After this you need a assign called objs: to hold all
# Now you can run make from this directory !
#
# $HISTORY:
#
# 06.08.95 : 039.001 : initial
#

VERSTR     = $(VERSION).$(REVISION)
NAME       = cli
SHNAME     = clidt
SHORT      = V$(VERSTR) displays stdout of a cli-cmd (lha,tar,etc)
PLACE      = util/dtype
README     = Readme

RELEASE    = $(NAME)dt_$(VERSION).$(REVISION).lha
RELEASEPAT = $(NAME)dt $(NAME)dt.info


##############################################################################
#
# just call the makefile in source for each cpu in CPUTOMAKE
#

CPUTOMAKE = 000 \
				020

##############################################################################
#
# docs and guides
#

AUTODOCS = doc/$(NAME)_dtc.doc
GUIDE    = help/$(NAME)_dtc

##############################################################################
#
# source
#

SRCS     = source/dispatch.c


all:: cpuversions

cpuversions::
	-@for i in $(CPUTOMAKE); \
	do \
		(cd source; echo "making 68$$i version of $(NAME).datatype"; \
		 make SCOPTIMIZE='OPT OPTTIME CPU=68'$$i \
				SLOPT='NOICONS VERBOSE SMALLDATA SMALLCODE NODEBUG' \
				OBJDIR='/objs/$(SHNAME)/rls'$$i \
				LIBSDEST='../classes/datatypes/$(NAME).datatype.'$$i \
				DEBUG='' ) ; \
	done


documentation:: $(AUTODOCS) $(GUIDE)

include misc/autodoc.mk

release: $(RELEASE)

include /gnu/local/share/gmk/release.mk

checkout:
	(cd source; co -l Makefile; make checkout)

