Files
verilator/test_sc/Makefile_obj
T

35 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
#
2014-01-06 19:28:57 -05:00
# Copyright 2003-2014 by Wilson Snyder. This program is free software; you can
2006-08-26 11:35:28 +00:00
# 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 Vtop.mk
#######################################################################
CPPFLAGS += -Wno-deprecated
CPPFLAGS += $(SYSTEMC_CXX_FLAGS)
LDFLAGS += $(SYSTEMC_CXX_FLAGS)
#######################################################################
# Linking final exe -- presumes have a sim_main.cpp
2012-01-19 20:30:41 -05:00
SC_LIB = $(SYSTEMC_LIBDIR)/libsystemc.a
2006-08-26 11:35:28 +00:00
simx: sc_main.o $(VK_GLOBAL_OBJS) \
2006-08-26 11:35:28 +00:00
$(VM_PREFIX)__ALL.a $(SC_LIB)
$(LINK) $(LDFLAGS) -g $^ $(LOADLIBES) $(LDLIBS) -o $@ $(SC_LIBS) $(LIBS) 2>&1 | c++filt
2006-08-26 11:35:28 +00:00
sc_main.o: sc_main.cpp $(VM_PREFIX).h