view Makefile.generic @ 27:523c45dfa8fb

- refactored arm calling conventions' callvm code, so that the code that keeps the caller from overwriting the return value on some platforms also works on OpenBSD (before we casted the function pointer to have long long as return type, to hint the caller that there is one, but that triggers an intentional SIGABRT on OpenBSD for security reasons; now the decl reflects this, directly)
author cslag
date Tue, 15 Sep 2015 12:48:52 +0200
parents 3e629dc19168
children 089df1eee6d0
line wrap: on
line source

.PHONY: all clean install tests docs run-tests clean distclean libdyncall libdyncallback libdynload
all: libdyncall libdyncallback libdynload
install: all install-libdyncall install-libdyncallback install-libdynload
libdyncall:
	cd dyncall && ${MAKE} all
libdyncallback:
	cd dyncallback && ${MAKE} all
libdynload:
	cd dynload && ${MAKE} all
install-libdyncall: libdyncall
	cd dyncall && ${MAKE} install
install-libdyncallback: libdyncallback
	cd dyncallback && ${MAKE} install
install-libdynload: libdynload
	cd dynload && ${MAKE} install
clean:
	cd dyncall && ${MAKE} $@
	cd dynload && ${MAKE} $@
	cd dyncallback && ${MAKE} $@
	cd test && ${MAKE} $@
	cd doc && ${MAKE} $@
tests: tests-libdyncall tests-libdyncallback tests-libdynload
tests-libdyncall: libdyncall
	cd test && ${MAKE} all-dyncall
tests-libdyncallback: libdyncallback
	cd test && ${MAKE} all-dyncallback
tests-libdynload: libdynload
	cd test && ${MAKE} all-dynload
docs:
	cd doc && ${MAKE} all
run-tests: all
	cd test && ${MAKE} $@
distclean: clean
	rm -f Makefile.config
	find . -type f -name "Makefile.generic" | sed s/\.generic$$// | xargs rm