Files
verilator/test_verilated/Makefile_obj
T

32 lines
1.1 KiB
Makefile
Raw Normal View History

2008-06-09 21:25:10 -04:00
# -*- Makefile -*-
2006-08-26 11:35:28 +00:00
#*****************************************************************************
#
# DESCRIPTION: Verilator Example: Makefile for inside object directory
#
# This is executed in the object directory, and called by ../Makefile
2006-08-26 11:35:28 +00:00
#
# Copyright 2003 by Wilson Snyder. This program is free software; you can
# redistribute it and/or modify it under the terms of either the GNU
# Lesser General Public License Version 3 or the Perl Artistic License
# Version 2.0.
2006-08-26 11:35:28 +00:00
#
#*****************************************************************************
default: simx
include Vvgen.mk
#######################################################################
# Use sp_log.cpp, so we can get output in sim.log
# Needed by tracing routines
CPPFLAGS += -DVL_DEBUG=1
CPPFLAGS += $(CPPFLAGS_ADD)
#######################################################################
# Linking final exe -- presumes have a sim_main.cpp
2010-01-24 18:17:27 -05:00
simx: sim_main.o $(VK_GLOBAL_OBJS) $(VM_PREFIX)__ALL.a
$(LINK) $(LDFLAGS) -g $^ $(LOADLIBES) $(LDLIBS) -o $@ $(LIBS) 2>&1 | c++filt
2006-08-26 11:35:28 +00:00
sim_main.o: sim_main.cpp $(VM_PREFIX).h