################################################################################ # Makefile for LIBRARY 'CACHE' - can reference multiple entity/architecture pairs ################################################################################ # ################################################################################ ifndef TOOLSET USAGE: @echo 'USAGE: gmake -f TOOLSET=' @echo ' from one of the following:' @echo ' cadence - Leapfrog, Cadence Design Systems' @echo ' ikos - Voyager, Ikos Systems' @echo ' mtech - V-System, Model Technology' @echo ' qvhdl - QuickVHDL, Mentor Graphics' @echo ' synopsys - VSS, Synopsys' @echo ' vantage - Optium, Vantage Analysis Systems' endif ifeq (${TOOLSET}, cadence) COMPILER = cv -messages ${DEBUG} ${LIBS} $< DEBUG = LIBS = -work xilinx endif ifeq (${TOOLSET}, ikos) COMPILER = analyze ${DEBUG} ${LIBS} $< DEBUG = LIBS = -l xilinx endif ifeq (${TOOLSET}, mtech) COMPILER = vcom ${DEBUG} ${LIBS} -source $< DEBUG = LIBS = -work ${LIB_OBJ} endif ifeq (${TOOLSET}, qvhdl) COMPILER = qvcom ${DEBUG} ${LIBS} -source $< DEBUG = LIBS = -work ${LIB_OBJ} endif ifeq (${TOOLSET}, qhdl) COMPILER = qvlcom ${DEBUG} ${LIBS} -93 -source $< DEBUG = LIBS = -work ${LIB_OBJ} endif ifeq (${TOOLSET}, synopsys) COMPILER = vhdlan ${DEBUG} ${LIBS} $< DEBUG = LIBS = -w XILINX endif ifeq (${TOOLSET}, vantage) COMPILER = analyze ${DEBUG} ${LIBS} -src $< DEBUG = LIBS = -lib ${LIB_OBJ} -lib ${EIA_OBJ} -libieee -lib ${UTILITIES_OBJ} endif ################################################################################ ################################################################################ # This is the dummy directory for the timestamps TS = ts TOUCH = touch $@ LIB_SRC = ./verilab LIB_OBJ = ../obj/${TOOLSET}/verilab ################################################################################ ################################################################################ all: detff detff: ${LIB_OBJ}/${TS}/detff.v ################################################################################ # THE UPDATE RULES ################################################################################ #------------------------------------------------------------------------------- # ENTITY detff ${LIB_OBJ}/${TS}/detff.v: ${LIB_SRC}/detff.v ${COMPILER} ${TOUCH} #-------------------------------------------------------------------------------