Quantcast
Channel: How do I modify the dependencies and rules of a GNU makefile target depending upon the platform (Linux vs. OS X)? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Daryl Spitzer for How do I modify the dependencies and rules of a...

T.E.D.'s answer triggered me to come up with the following:ifeq ($(uname),Linux)cmockery_tests_exe = cmockery_testselsecmockery_tests_exe = $()endif.PHONY: allall: $(unittest++_tests_exe)...

View Article


Answer by T.E.D. for How do I modify the dependencies and rules of a GNU...

I believe the Right Way to do this is to use something like autoconf.If you want to hack it, try calling uname and putting the result in a symbol. You can then parse out the relevant parts

View Article

How do I modify the dependencies and rules of a GNU makefile target depending...

I have a (GNU) makefile with an all target that looks like this:.PHONY: allall: $(unittest++_tests_exe) $(cmockery_tests_exe) @echo Running UnitTest++ tests... @./$(unittest++_tests_exe) @echo Running...

View Article
Browsing all 3 articles
Browse latest View live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>