Making with different compile-time switches

92 views
Skip to first unread message

Harold

unread,
Nov 13, 2009, 5:10:08 PM11/13/09
to CoreMark
In Coremark v1.01, the default makefile target does:

rerun:
$(MAKE) XCFLAGS="$(XCFLAGS) -DPERFORMANCE_RUN=1" load run1.log
$(MAKE) XCFLAGS="$(XCFLAGS) -DVALIDATION_RUN=1" load run2.log

The first make invokes a compilation, but the second one doesn't,
since the executable target is already up-to-date.

The end result is that run2.log contains results with
PERFORMANCE_RUN=1, and not (as presumably intended) with
VALIDATION_RUN=1

Adding
rm -f $(OUTFILE)

after each make will force recompilation

Shay Gal-On

unread,
Nov 13, 2009, 6:31:45 PM11/13/09
to Harold, CoreMark
Hello Harold,

If your platform supports passing arguments via the command line, the
defines are not needed, and the correct flags will be passed (check the
run1.log and run2.log targets in the make).
Otherwise, you can use REBUILD=1 to force a rebuild.
Please check the readme under run rules for more details.

Thanks,
- Shay
www.eembc.org/contact
> --
>
> You received this message because you are subscribed to the Google Groups
> "CoreMark" group.
> To post to this group, send email to core...@googlegroups.com.
> To unsubscribe from this group, send email to
> coremark+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/coremark?hl=.


Reply all
Reply to author
Forward
0 new messages