head     3.2;
access   ;
symbols  ;
locks    nkm:3.2; strict;
comment  @# @;


3.2
date     85.12.13.12.06.42;  author nkm;  state Exp;
branches ;
next     3.1;

3.1
date     85.12.13.11.58.16;  author nkm;  state Exp;
branches ;
next     3.0;

3.0
date     85.10.08.18.14.22;  author nkm;  state Exp;
branches ;
next     ;


desc
@@


3.2
log
@Removed -O option from GLOBFLAGS
@
text
@#
# Makefile to compile the CadMac library.
#
# Four versions of the library may be compiled:
#
#	libmac.a	- generic, two byte integer
#	libLmac.a	- four byte integer
#	libmacnsc.a	- two byte integer with NSC floating point.
#	libLmacnsc.a	- four byte integer with NSC floating point.
#
#	make		- just makes the generic libmac.a
#	make all	- compiles all 4 versions.
#	make <LIBNAME>	- compiles the given library.
#	make clean	- removes the libraries, *.o, etc.
#	make depend	- create a new dependency list in each makefile.
#
# To make a non-qsh version of each of these, you must define on the 
# make command line, "GLOBFLAGS=-DNO_QSH" (QSH is defined in the header
# file include/mac/global.h).  This actually only affects the module
# QuickDraw/GrafPort.c; the code should probably be fixed so that an
# application may use the same library whether it is executed through
# the qsh or not.
#

MAIN_DIR =	..
INCLUDE_DIR =	../$(MAIN_DIR)/include
INCLUDES =	-I$(INCLUDE_DIR) -I$(INCLUDE_DIR)/mac
MACLIB_DIR =	.

MACLIB =	libmac.a
ENTRY =		libmac

LIBS =		libmac.a libLmac.a libmacnsc.a libLmacnsc.a

FRC =		FRC
.PRECIOUS:	$(LIBS)

GLOBFLAGS =  -DAFWS -DNEWDEFS

libmac.a libmac mac:			$(FRC)
	@@echo
	@@echo "*** Making >>> libmac.a <<<  (2 byte)   [`date`]"
	@@echo
	-rm -f libmac.a
	-make "GLOBFLAGS=$(GLOBFLAGS)" "ENTRY=libmac" lib
	-ranlib libmac.a
	@@echo "*** Done making libmac.a   [`date`]"

libLmac.a libLmac Lmac:			$(FRC)
	@@echo
	@@echo "*** Making >>> libLmac.a <<<  (4 byte)   [`date`]"
	@@echo
	-rm -f libLmac.a
	-make "GLOBFLAGS=$(GLOBFLAGS)" "ENTRY=libLmac" lib
	-ranlib libLmac.a
	@@echo "*** Done making libLmac.a   [`date`]"

libmacnsc.a libmacnsc macnsc:		$(FRC)
	@@echo
	@@echo "*** Making >>> libmacnsc.a <<<  (2 byte, NSC)   [`date`]"
	@@echo
	-rm -f libmacnsc.a
	-make "GLOBFLAGS=$(GLOBFLAGS)" "ENTRY=libmacnsc" lib
	-ranlib libmacnsc.a
	@@echo "*** Done making libmacnsc.a   [`date`]"

libLmacnsc.a libLmacnsc Lmacnsc:	$(FRC)
	@@echo
	@@echo "*** Making >>> libLmacnsc.a <<<  (4 byte, NSC)   [`date`]"
	@@echo
	-rm -f libLmacnsc.a
	-make "GLOBFLAGS=$(GLOBFLAGS)" "ENTRY=libLmacnsc" lib
	-ranlib libLmacnsc.a
	@@echo "*** Done making libLmacnsc.a   [`date`]"

all:
	@@echo
	@@echo "*** Making all four CadMac libraries   [`date`]"
	@@-make "GLOBFLAGS=$(GLOBFLAGS)" libmac.a
	@@-make "GLOBFLAGS=$(GLOBFLAGS)" libLmac.a
	@@-make "GLOBFLAGS=$(GLOBFLAGS)" libmacnsc.a
	@@-make "GLOBFLAGS=$(GLOBFLAGS)" libLmacnsc.a
	@@echo "*** Done making all four libraries   [`date`]"

lib:
	-cd ControlMgr ; make "GLOBFLAGS=$(GLOBFLAGS)" $(ENTRY)
	-cd DialogMgr ; make "GLOBFLAGS=$(GLOBFLAGS)" $(ENTRY)
	-cd EventMgr ; make "GLOBFLAGS=$(GLOBFLAGS)" $(ENTRY)
	-cd FileMgr ; make "GLOBFLAGS=$(GLOBFLAGS)" $(ENTRY)
	-cd FontMgr ; make "GLOBFLAGS=$(GLOBFLAGS)" $(ENTRY)
	-cd LayerMgr ; make "GLOBFLAGS=$(GLOBFLAGS)" $(ENTRY)
	-cd MemMgr ; make "GLOBFLAGS=$(GLOBFLAGS)" $(ENTRY)
	-cd MenuMgr ; make "GLOBFLAGS=$(GLOBFLAGS)" $(ENTRY)
	-cd QuickDraw ; make "GLOBFLAGS=$(GLOBFLAGS)" $(ENTRY)
	-cd RMgr ; make "GLOBFLAGS=$(GLOBFLAGS)" $(ENTRY)
	-cd SegLdr ; make "GLOBFLAGS=$(GLOBFLAGS)" $(ENTRY)
	-cd ScrapMgr ; make "GLOBFLAGS=$(GLOBFLAGS)" $(ENTRY)
	-cd StdFile ; make "GLOBFLAGS=$(GLOBFLAGS)" $(ENTRY)
	-cd TextEdit ; make "GLOBFLAGS=$(GLOBFLAGS)" $(ENTRY)
	-cd UtilMgr ; make "GLOBFLAGS=$(GLOBFLAGS)" $(ENTRY)
	-cd WindowMgr ; make "GLOBFLAGS=$(GLOBFLAGS)" $(ENTRY)


depend:
		make "ENTRY=depend" lib

clean:
		-/bin/rm -f *.a *.o a.out core
		make "ENTRY=clean" lib

lint:
		-csh -c 'lint.rpd -hxa $(INCLUDES) [A-LN-Z]*/*.c'

tag:
		ctags [A-Z]*/*.[ch] $(INCLUDE_DIR)/mac/*.h >& /dev/null
		-cd ControlMgr;	ctags *.[ch] >& /dev/null
		-cd DialogMgr;  ctags *.[ch] >& /dev/null
		-cd EventMgr;	ctags *.[ch] >& /dev/null
		-cd FileMgr;	ctags *.[ch] >& /dev/null
		-cd FontMgr;	ctags *.[ch] >& /dev/null
		-cd LayerMgr;	ctags *.[ch] >& /dev/null
		-cd MemMgr;	ctags *.[ch] >& /dev/null
		-cd MenuMgr;	ctags *.[ch] >& /dev/null
		-cd QuickDraw;	ctags *.[ch] >& /dev/null
		-cd RMgr;	ctags *.[ch] >& /dev/null
		-cd SegLdr;	ctags *.[ch] >& /dev/null
		-cd ScrapMgr;   ctags *.[ch] >& /dev/null
		-cd StdFile;	ctags *.[ch] >& /dev/null
		-cd TextEdit;   ctags *.[ch] >& /dev/null
		-cd UtilMgr;	ctags *.[ch] >& /dev/null
		-cd WindowMgr;	ctags *.[ch] >& /dev/null
		-cd $(INCLUDE_DIR)/mac;	ctags *.[ch] >& /dev/null
		fixtags tags */tags

everything:	depend tag all lint

$(FRC):		;

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

SHIP_DIR =	$(MAIN_DIR)/ship
RELENGINSTALL =	$(MAIN_DIR)/mytools/bin/rinstall -v -c -f -r $(SHIP_DIR)

RELENG_build:	all

RELENG_install:
		$(RELENGINSTALL) /usr/lib -m 444 -o root -g root -i \
			libmac.a \
			libLmac.a \
			libmacnsc.a \
			libLmacnsc.a
		$(RELENGINSTALL) /usr/lib/cadmac -m 555 -o root -g root -i \
			data/*.bin
		$(RELENGINSTALL) /usr/lib/cadmac -m 666 -o root -g root -i \
			data/*.res

RELENG_clean:	clean
@


3.1
log
@Changed GLOBFLAGS to reflect compilation directives for entire
single-user system.
@
text
@d38 1
a38 1
GLOBFLAGS =  -O -DAFWS -DNEWDEFS
@


3.0
log
@CadMac Port to AFWS Development Machine -- Release 3.0.
@
text
@d38 1
@
