###############################################################################
# $Id: Makefile,v 1.1.1.1 2000/02/03 20:45:12 twilson Exp $
###############################################################################
# Synthesis Makefile for hierarchal build. 
# 5/5/97 Gregg D. Lahti initial release 
# 11/16/99 Gregg D. Lahti for greer-V
###############################################################################
#
# Overview:
#
# The main Makefile slurps the make.rules file in when gmake is called.  
# The make.rules uses $(DB) to expand into a ./dbs/ variable which is 
# pre-appended to the target being compiled.  The ./dbs/[file].db is used as 
# a "timestamp" of the VHDL file being compiled (as well as the final object).
#
# User edits:
#
# Each Makefile should have a main target called "all.local" which
# the make.rules file uses as it's target.  Set the RECURSEDIRS variable to
# a list of sub-directories that make should traverse first as a dependency. 
#
###############################################################################
###############################################################################
# INCLUDE YOUR DEPENDENCY LIST HERE!
###############################################################################


# Sub-unit directories (referenced from here).  Leave empty if no subdirs.
# example: RECURSEDIRS = ../foo ../bar ../bletch
#
RECURSEDIRS = 
###############################################################################
# DO NOT EDIT PAST THIS LINE!  
###############################################################################
include $(PROJ_SYN)/syn_make.rules

# sub-functional units to be included at unit compile time
# Syntax is SUBFUB_[unit_name] := {list of units}
# example:  SUBFUB_foo_unit := bar.vhd bletch.vhd comps_kg.vhd
# 
SUBFUB_cnt2_vlog :=    ../src/cnt2_vlog.v 
$(DB)cnt2_vlog.db :    $(SUBFUB_cnt2_vlog)
cnt2_vlog : $(DB)cnt2_vlog.db

$(DB)cnt4_vlog.db :    ../src/cnt4_vlog.v
cnt4_vlog : $(DB)cnt4_vlog.db

SUBFUB_count_unit :=	../src/cnt4_vlog.v \
			../src/cnt2_vlog.v \
			../src/comps_pkg.vhd

# Make i2c_unit if any sub-functional units or the top changes
$(DB)count_unit.db :    $(SUBFUB_count_unit) ../src/count_unit.vhd

all.local: $(DB)count_unit.db



###############################################################################
# Log file
###############################################################################
#
# $Log: Makefile,v $
# Revision 1.1.1.1  2000/02/03 20:45:12  twilson
# i2c create
#
# Revision 1.1  2000/02/01 23:01:45  sjbrown
# initial checkin of common files
#
#
