mirror of
https://github.com/wfjm/w11.git
synced 2026-02-28 01:35:58 +00:00
52 lines
1.7 KiB
Makefile
52 lines
1.7 KiB
Makefile
# $Id: generic_ghdl.mk 1176 2019-06-30 07:16:06Z mueller $
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
# Copyright 2007-2016 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
|
#
|
|
# Revision History:
|
|
# Date Rev Version Comment
|
|
# 2016-07-01 781 1.5.1 ghdl_clean: remove also gcov files
|
|
# 2016-06-24 778 1.5 use ghdl.?sim as workdir
|
|
# 2015-02-14 646 1.4 use --xlpath for vbomconv; drop cygwin support;
|
|
# 2014-07-26 575 1.3.2 use XTWI_PATH now (ise/vivado switch done later)
|
|
# 2013-01-27 477 1.3.1 use dontincdep.mk to suppress .dep include on clean
|
|
# 2011-08-13 405 1.3 renamed, moved to rtl/make;
|
|
# 2007-11-04 95 1.2.2 fix find statement in ghdl_tmp_clean
|
|
# 2007-11-02 94 1.2.1 don't delete cext_*.o in ghdl_tmp_clean
|
|
# 2007-07-08 65 1.2 support now autobuilding of _fsim and _tsim models
|
|
# 2007-06-16 57 1.1 cleanup ghdl_clean handling
|
|
# 2007-06-10 52 1.0 Initial version
|
|
#
|
|
GHDLIEEE = --ieee=synopsys
|
|
GHDLXLPATH = ${XTWI_PATH}/ISE_DS/ISE/ghdl
|
|
#
|
|
% : %.vbom
|
|
vbomconv --ghdl_i $<
|
|
vbomconv --ghdl_m --xlpath=$(GHDLXLPATH) $<
|
|
#
|
|
# rules for _[ft]sim to use 'virtual' [ft]sim vbom's (derived from _ssim)
|
|
#
|
|
%_fsim : %_ssim.vbom
|
|
vbomconv --ghdl_i $*_fsim.vbom
|
|
vbomconv --ghdl_m --xlpath=$(GHDLXLPATH) $*_fsim.vbom
|
|
#
|
|
%_tsim : %_ssim.vbom
|
|
vbomconv --ghdl_i $*_tsim.vbom
|
|
vbomconv --ghdl_m --xlpath=$(GHDLXLPATH) $*_tsim.vbom
|
|
#
|
|
%.dep_ghdl: %.vbom
|
|
vbomconv --dep_ghdl $< > $@
|
|
#
|
|
include ${RETROBASE}/rtl/make_ise/dontincdep.mk
|
|
#
|
|
.PHONY: ghdl_clean ghdl_tmp_clean
|
|
#
|
|
ghdl_clean: ghdl_tmp_clean
|
|
rm -f $(EXE_all)
|
|
rm -f $(EXE_all:%=%_[sft]sim)
|
|
rm -f *.gcov *.gcda *.gcno
|
|
#
|
|
ghdl_tmp_clean:
|
|
rm -rf ghdl.[bsft]sim
|
|
rm -f cext_*.o e~*.o
|
|
#
|