mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
parent
bd0cfec731
commit
9a2bab0df2
@ -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\
|
||||
|
@ -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" ;
|
||||
|
@ -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 '$*=$($*)'
|
||||
|
Loading…
Reference in New Issue
Block a user