This commit is contained in:
anon 2018-05-22 14:53:10 -05:00
parent bd0cfec731
commit 9a2bab0df2
3 changed files with 6 additions and 6 deletions

View File

@ -136,6 +136,11 @@ convert_swig: build/S_library_swig
S_define_exp:
$(TRICK_CC) -E -C -xc++ ${TRICK_SFLAGS} $(TRICK_SYSTEM_SFLAGS) S_define > $@
# prints the value of a makefile variable, example invocation "make print-TRICK_CXXFLAGS"
# This rule is used by trick-config
print-%:
@echo '$*=$($*)'
help:
@echo -e "\
Simulation make options:\n\

View File

@ -26,7 +26,7 @@ sub print_prefix() {
# Run a special rule in Makefile.sim that prints the value of the environment variable we request
sub print_makefile_var($) {
open(README, "make -f $ENV{TRICK_HOME}/share/trick/makefiles/Makefile.common print-@_ | ") or
open(README, "make -f $ENV{TRICK_HOME}/share/trick/makefiles/Makefile.trickconfig print-@_ | ") or
die "Couldn't fork $!\n" ;
while (<README>) {
/=(.*)/ && print "$1\n" ;

View File

@ -155,8 +155,3 @@ TRICK_DEFINES = $(shell $(PERL) -e '@defines = "${TRICK_CFLAGS}" =~ /-D\s*(\S+)
DEPFILE = $(PWD)/Makefile_deps
DEPTEMPFILE = $(PWD)/Makefile_temp_depends
# prints the value of a makefile variable, example invocation "make print-TRICK_CXXFLAGS"
# This rule is used by trick-config
print-%:
@echo '$*=$($*)'