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


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

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

3.0
date     85.10.09.07.10.12;  author nkm;  state Exp;
branches ;
next     2.1;

2.1
date     85.10.07.18.06.47;  author nkm;  state Exp;
branches ;
next     2.0;

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


desc
@@


3.2
log
@Updated for build.
@
text
@#
# Makefile to compile the CADMAC LayerMgr module.
#

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

LIBVERSION =	mac
MACLIB =	lib$(LIBVERSION).a
LIB =		$(MACLIB_DIR)/$(MACLIB)
OBJDIR =	OBJ.$(LIBVERSION)

# Defaults for use when making from local directory (good only for libmac.a)
# (Overriden if either of these is passed as a parameter to this make)
GLOBFLAGS =	-DAFWS
OPT = 		-O

CFLAGS =	$(OPT) $(INCLUDES) $(GLOBFLAGS)
FRC =		FRC

TOOL_DIR =	$(MAIN_DIR)/mytools/bin
DEPEND =	-$(TOOL_DIR)/depend


LIB_OBJS =	LayerMgr.o

#### Make Rules

mac mac.debug mac.afws mac.afwsdebug mac.multi:		$(FRC)
		make "LIBVERSION=$@@" "GLOBFLAGS=$(GLOBFLAGS)" "OPT=$(OPT)" start

libLmac Lmac:		$(FRC)
		make "LIBVERSION=Lmac" "GLOBFLAGS=$(GLOBFLAGS) -4" start

libmacnsc macnsc:	$(FRC)
		make "LIBVERSION=macnsc" "GLOBFLAGS=$(GLOBFLAGS) -fN" start

libLmacnsc Lmacnsc:	$(FRC)
		make "LIBVERSION=Lmacnsc" "GLOBFLAGS=$(GLOBFLAGS) -4 -fN" start

all:		libmac libLmac libmacnsc libLmacnsc

start:
		-rm -f *.o
		-ln -f $(OBJDIR)/*.o .
		-make "GLOBFLAGS=$(GLOBFLAGS)" "LIBVERSION=$(LIBVERSION)" "OPT=$(OPT)" lib
		-rm -f *.o

lib:		$(LIB_OBJS)
		ar rv $(LIB) $(LIB_OBJS)
		@@echo "*** LayerMgr files in $(LIB) are now up to date."

$(LIB):		$(LIB_OBJS)
		ar rv $@@ $(OBJDIR)/*.o

$(FRC):		;

clean:
		-/bin/rm -f OBJ.*/*.o *.o a.out core

depend:
		$(DEPEND) -M Makefile -S $(INCLUDES) $(LIB_OBJS)

#### Make Directives

.PRECIOUS:	$(LIB)

.c.o:
		$(CC) $(CFLAGS) -c $<
		-rm -f $(OBJDIR)/$*.o
		-ln -f $*.o $(OBJDIR)

.s.o:
		$(CC) $(CFLAGS) -c $<
		-rm -f $(OBJDIR)/$*.o
		-ln -f $*.o $(OBJDIR)

########################################################################
############ DO NOT PUT STUFF BELOW HERE -- IT WILL GO AWAY ############
############ DO NOT DELETE THIS LINE -- MAKE DEPEND USES IT ############

LayerMgr.o:     LayerMgr.c
#LayerMgr.o:     /usr/include/sys/param.h # nkm -- changed ../.. to /usr
#LayerMgr.o:     /usr/include/sys/types.h # nkm -- changed ../.. to /usr
LayerMgr.o:     /usr/include/sys/ioctl.h # nkm -- changed ../.. to /usr
LayerMgr.o:     ./local.h
LayerMgr.o:     $(INCLUDE_DIR)/mac/global.h
LayerMgr.o:     $(INCLUDE_DIR)/mac/bool.h
LayerMgr.o:     $(INCLUDE_DIR)/mac/MemMgr.h
LayerMgr.o:     $(INCLUDE_DIR)/mac/QuickDraw.h
LayerMgr.o:     $(INCLUDE_DIR)/mac/FontMgr.h
LayerMgr.o:     $(INCLUDE_DIR)/mac/LayerMgr.h
LayerMgr.o:     $(INCLUDE_DIR)/mac/OSIntrface.h
@


3.1
log
@Added OPT directive.
@
text
@d15 6
a20 1
CFLAGS =	$(OPT) $(INCLUDES) $(GLOBFLAGS) -DAFWS
a28 14
#### Make Directives

.PRECIOUS:	$(LIB)

.c.o:
		$(CC) $(CFLAGS) -c $<
		-rm -f $(OBJDIR)/$*.o
		-ln -f $*.o $(OBJDIR)

.s.o:
		$(CC) $(CFLAGS) -c $<
		-rm -f $(OBJDIR)/$*.o
		-ln -f $*.o $(OBJDIR)

d31 2
a32 2
libmac mac:		$(FRC)
		make "LIBVERSION=mac" "GLOBFLAGS=$(GLOBFLAGS)" start
d48 1
a48 1
		-make "GLOBFLAGS=$(GLOBFLAGS)" "LIBVERSION=$(LIBVERSION)" lib
d65 14
@


3.0
log
@CadMac Port to AFWS Development Machine -- Release 3.0.
@
text
@d15 1
a15 1
CFLAGS =	-g $(INCLUDES) $(GLOBFLAGS) -DAFWS
@


2.1
log
@Added appropriate include definitions, debugging flags
@
text
@@


2.0
log
@Initial 3.8 Release
@
text
@d6 1
a6 1
INCLUDE_DIR =	$(MAIN_DIR)/include
d15 1
a15 1
CFLAGS =	$(INCLUDES) $(GLOBFLAGS)
d80 3
a82 3
LayerMgr.o:     ../../include/sys/param.h
LayerMgr.o:     ../../include/sys/types.h
LayerMgr.o:     ../../include/sys/ioctl.h
d84 7
a90 7
LayerMgr.o:     ../../include/mac/global.h
LayerMgr.o:     ../../include/mac/bool.h
LayerMgr.o:     ../../include/mac/MemMgr.h
LayerMgr.o:     ../../include/mac/QuickDraw.h
LayerMgr.o:     ../../include/mac/FontMgr.h
LayerMgr.o:     ../../include/mac/LayerMgr.h
LayerMgr.o:     ../../include/mac/OSInterface.h
@
