head     3.0;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


3.0
date     85.10.09.08.53.40;  author nkm;  state Exp;
branches ;
next     2.0;

2.0
date     85.10.01.11.58.54;  author nkm;  state Exp;
branches ;
next     ;


desc
@@


3.0
log
@CadMac Port to AFWS Development Machine -- Release 3.0.
@
text
@#
# MAKEFILE
#	Master makefile for the CadMac software.
#
# DESCRIPTION
#	"make everything" will make all of the CadMac software which
#	will need to be put into a distribution, including for example:
#	the user libraries "libmac.a", "libLmac.a", "libmacnsc.a" and
#	"libLmacnsc.a", various utilities such as "qsh", "paint",
#	"bipterm", and "tekterm", and data files likd "Patterns.bin".
#
#	"make all" will do the same as above execpt it will only
#	make the generic version of the library -- "libmac.a".
#
#	"make depend" will update the makefile dependencies.
#	The "depend" program which is used to do this resides
#	in "mytools/bin" (source in "mytools/src").
#
#	"make install" will install into the directory "ship" all
#	of the files to be shipped in a distribution.  This "ship"
#	directory will correspond to the root directory (/) of the
#	target machine.  All of the files will be in the correct
#	directories, with the correct owners, groups, and modes.
#	This installation process is controlled be the "RELENG_install"
#	entry in each of the top level makefiles (i.e. in "doc",
#	"include", "maclib" and, "util".  The "rinstall" program
#	used to do this resides in "mytools/bin" (source in
#	"mytools/src").
#
#	"make clean" will remove all ".o", ".a" and other compiled
#	files.  This should only be done if you want to start from
#	scratch.
#
# WARNING
#	Do NOT use the C optimizer (by using the -O flag with cc) when
#	compiling any of this software.  It causes problems.  We do not
#	know the exact reason for the problems, but we suspect it is because
#	some of the sources use inline assembly code which may confuse the
#	optimizer.  In the future we should find out exactly which modules
#	cause this problem so that the others may be optimized.
#
# HISTORY
#	5.6.85	- Created (David Michaels, david@@cadmus).
#	5.9.85	- Found "-O" problem described under WARNING (david). 
#	6.11.85	- Took out kernel stuff, it has been merged into the kernel.
#

MAIN_DIR =	.
DOC_DIR =	$(MAIN_DIR)/doc
INCLUDE_DIR =	$(MAIN_DIR)/include
# KERNEL_DIR =	$(MAIN_DIR)/kernel
MACLIB_DIR =	$(MAIN_DIR)/maclib
SHIP_DIR =	$(MAIN_DIR)/ship
TOOL_DIR =	$(MAIN_DIR/mytools/bin
MACLIB =	$(MACLIB_DIR)/libmac.a

INCLUDES =	-I$(INCLUDE_DIR) -I$(INCLUDE_DIR)/mac -I$(INCLUDE_DIR)/sys/mac
CFLAGS =	$(INCLUDES) $(GLOBFLAGS)

FRC =		FRC

DEPEND =	$(TOOL_DIR)/depend
RELENGINSTALL =	$(TOOL_DIR)/rinstall -v -c -f -r

### GLOBFLAGS =	-O	##### DO NOT USE THE -O (optimizer) flag !!! #####

GLOBFLAGS =

GLOBDEFS =	"GLOBFLAGS=$(GLOBFLAGS)"

all:	maclib util
	@@echo 
	@@echo "************************************************************"
	@@echo "*** CadMac make done  (`date`)"
	@@echo "************************************************************"

# kernel:	$(FRC)
# 	@@echo 
# 	@@echo "************************************************************"
# 	@@echo "*** Making the CadMac kernel (`date`)"
# 	@@echo "************************************************************"
# 	@@echo 
# 	-cd kernel ; make $(GLOBDEFS)

maclib:	$(FRC)
	@@echo 
	@@echo "************************************************************"
	@@echo "*** Making the CadMac libraries (`date`)"
	@@echo "************************************************************"
	@@echo 
	-cd maclib ; make $(GLOBDEFS) $(ENTRY)

util:	$(FRC)
	@@echo "************************************************************"
	@@echo "*** Making the CadMac utilities (`date`)"
	@@echo "************************************************************"
	@@echo 
	-cd util ; make $(GLOBDEFS)

everything:
	make "ENTRY=all"
	

depend:
		-cd maclib ; make depend
# 		-cd kernel ; make depend
		-cd util ; make depend

install:	RELENG_install

clean:
		-cd maclib ; make clean
# 		-cd kernel ; make clean
		-cd util ; make clean

$(FRC):		;

########################################################################
# CADMUS Release Engineering
########################################################################

RELENG_build:	all

RELENG_install:
		cd doc ; \
		make $(GLOBDEFS) RELENG_install
		cd include ; \
		make $(GLOBDEFS) RELENG_install
# 		cd kernel ; \
# 		make $(GLOBDEFS) RELENG_install
		cd maclib ; \
		make $(GLOBDEFS) RELENG_install
		cd util ; \
		make $(GLOBDEFS) RELENG_install

RELENG_clean:	clean
@


2.0
log
@Initial 3.8 Release
@
text
@@
