view Makefile.generic @ 166:d5705f226298

- added portasm support for adding .section .note.GNU-stack "hints" marking generated .o files from assembly files as not needing an executable stack * needed to be done manually in assembly files, in contrast to C translation units where gcc adds such hints automatically * this is for security, and better/easier integration of dyncall into other projects and builds, as dyncall doesn't need an executable stack * thanks to Thorsten Behrens for bringing this up to our intention and providing a first analysis * currently only done on Linux, but will be added across other platforms (where applicable) after some testing
author cslag
date Thu, 05 Jan 2017 11:07:29 +0100
parents 089df1eee6d0
children 76b75fd84c72
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
show-compiler-predefs:
	${CC} ${CFLAGS} -dM -E - < /dev/null