#############################################################################
#       $Id: GNUmakefile,v 1.6 1995/08/08 05:42:42 rich Exp $
# $Revision: 1.6 $
#     $Date: 1995/08/08 05:42:42 $
#   $Author: rich $
#    $State: Exp $
#   $Locker:  $
#
# PROJECT:	TCA
#
# FILE:		GNUmakefile
#		Based on Erebus prototypical Makefile
#		Makefile.proto,v 1.1 1992/06/16 22:50:21 jwest Exp 
#
# DESCRIPTION:
# Makes tca lisp code.
#
# EXPORTS:
#	The following targets are available as part of Makefile.std:
#		all bins libs privs objs
#		clean install
#		lint depend
#
# HISTORY:
#
# $Log: GNUmakefile,v $
# Revision 1.6  1995/08/08  05:42:42  rich
# Fixed broadcast message interface in lisp.  Added test routines
# broadcast.lisp and listener.lisp.
#
# Revision 1.5  1995/07/10  16:15:58  rich
# Interm save.
#
# Revision 1.4  1995/07/08  18:24:04  rich
# Change all /afs/cs to /afs/cs.cmu.edu to get ride of conflict problems.
#
# Revision 1.3  1995/07/06  21:14:28  rich
# Solaris and Linux changes.
#
# Revision 1.2  1995/06/14  02:57:50  rich
# ???
#
# Revision 1.1  1995/04/17  16:33:15  rich
# Adding lisp as a subdirectory so it gets included in the tar file.
# Added GNUmakefile and README.
#
#
#############################################################################

.KEEP_STATE:

#############################################################################
# Module configuration.
#############################################################################

INSTALL_DIR	= ..
BASE_DIR	:= $(shell cd $(INSTALL_DIR);/bin/pwd)
MODULE_DIR	= lisp
PROJECT		= tca
MODULE		= lisp
SUBDIRS		=

#############################################################################
# Standard Makefile Includes
#############################################################################

PWD 	:= $(shell /bin/pwd)
STD_FILE := $(shell ls $(INSTALL_DIR)/etc/GNUmakefile.std $(PROJECT_DIR)/etc/GNUmakefile.std 2>/dev/null | grep -v "not found" | head -1)
DEFS_FILE := $(shell ls $(INSTALL_DIR)/etc/GNUmakefile.defs $(PROJECT_DIR)/etc/GNUmakefile.defs 2>/dev/null | grep -v "not found" | head -1)

##########
# Include standard definitions
##########

include $(DEFS_FILE)

##########
# Override defaults here.
##########

##########
# File Definition Macros.  Deletion of generated files assumed
#    to be o.k.  Source files will never be deleted.
##########

# Generated files - installed
PUBLIC_BINS		= 
PUBLIC_LIBS		= 
PUBLIC_LINTS		= 

MODULE_LIBS		= 
MODULE_LINTS		= 

# Source files - installed
PUBLIC_INCS		= 
PUBLIC_MANS		= 
PUBLIC_DOCS		= 

MODULE_INCS		= 
MODULE_DOCS		= 

INCS			= $(MODULE_INCS) $(PUBLIC_INCS)

# Generated files - not installed
PRIVS		= 

OBJS            = 

# Source files - not installed

SRCS            = a1.lisp a2.lisp a3.lisp a4.lisp b1.lisp b2.lisp b3.lisp \
		b4.lisp formatters.lisp load-tests.lisp map.lisp mt.lisp \
		primFmttrs.lisp sample.lisp tca-compile.lisp tca.lisp \
		tcaForeignCalls.lisp tcaTimings.lisp tcaTrace.lisp \
		timingReport.lisp broadcast.lisp listener.lisp

PRIVATE_INCS	= 

MISC		= GNUmakefile README

# All source files
SRCS_ALL	= $(INCS) $(PRIVATE_INCS) $(SRCS) $(MANS) $(DOCS) $(MISC)

# Files to be removed by 'make clean' and 'make realclean'
DELETES		= core $(DEPEND_FILE) \
	  	  $(PUBLIC_BINS) $(PUBLIC_LIBS) $(PUBLIC_LINTS) \
		  $(MODULE_LIBS) $(MODULE_LINTS) $(PRIVS) $(OBJS) make.state \
		  $(wildcard .nse_dep*) $(wildcard *.CKP) $(wildcard \#*\#) \
		  $(wildcard *~) $(wildcard .*~) $(wildcard *.CKP)\
	          $(wildcard *.BAK) $(wildcard .*.BAK)

# Files never to be removed, even if Make encounters an error
.PRECIOUS: $(SRCS_ALL) $(SUBDIRS)

##########
# Default Target
##########

all:: srcs libs bins privs

##########
# User Defined Targets
##########

# Define rules for all files listed in BINS, LIBS, and LINTS in this section.
# Example executable, object, library, and combined objects are shown below:
#
#  sample: file1.o file2.o $(LIBDEP)
#	$(LINK.c) -o $@ file1.o file2.o $(LIBRARIES)
#
#  alternateName.o: file1.c
#	$(COMPILE.c) -o $@ file1.o
#
#  libsample.a: file1.o file2.o
#	-$(RM) $@
#	$(AR) $(ARFLAGS) $@ file1.o file2.o
#	$(RANLIB) $@
#
#  combined.o: part1.o part2.o
#	$(LD) -r -o $@ part1.o part2.o; chmod a-x $@

##########
# Include standard target definitions and RCS rules
##########

include $(STD_FILE)
