Mercurial > pub > dyncall > dyncall
annotate dyncallback/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 | 170cde9e2a83 |
children | 6eec7c270aea |
rev | line source |
---|---|
0 | 1 LIBNAME = dyncallback |
2 OBJS = dyncall_alloc_wx.o dyncall_args.o dyncall_callback.o dyncall_callback_arch.o dyncall_thunk.o | |
143 | 3 HEADERS = ${VPATH}/dyncall_thunk.h ${VPATH}/dyncall_thunk_x86.h ${VPATH}/dyncall_thunk_ppc32.h ${VPATH}/dyncall_thunk_x64.h ${VPATH}/dyncall_thunk_arm32.h ${VPATH}/dyncall_thunk_arm64.h ${VPATH}/dyncall_args.h ${VPATH}/dyncall_callback.h |
0 | 4 TOP = ${VPATH}/.. |
5 CFLAGS += -I${TOP}/dyncall | |
6 | |
7 LIB = lib${LIBNAME}_s.a | |
8 | |
9 .PHONY: all clean install | |
10 | |
11 all: ${LIB} | |
12 ${LIB}: ${OBJS} | |
13 ${AR} ${ARFLAGS} ${LIB} ${OBJS} | |
14 clean: | |
15 rm -f ${OBJS} ${LIB} | |
16 install: all | |
17 mkdir -p ${PREFIX}/lib | |
18 mkdir -p ${PREFIX}/include | |
19 cp ${LIB} ${PREFIX}/lib | |
20 cp ${HEADERS} ${PREFIX}/include |