annotate test/sharedlib/Makefile.embedded @ 256:7520e2260097

- added to configure some detection on how to compile .s/.S with --noexecstack (or similar), as compilers' defaults are often insane - since no-execstack handling is now in build, remove .note.GNU-stack section markers (were of limites use, anyways, b/c unportable or implemented inconsistently across platforms) - some ToDo, etc. updates
author Tassilo Philipp
date Sat, 20 May 2017 00:02:59 +0200
parents 3e629dc19168
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
1 MAKEFILE = Makefile.embedded
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
2 MAKE_CMD = ${MAKE} -f ${MAKEFILE}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
3 TARGET = libsharedlib.so
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
4 OBJS = sharedlib.o
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
5 CPPFLAGS += -I../../dynload
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
6 LDFLAGS += -L../../dynload
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
7 LDLIBS += -ldynload_s
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
8
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
9 ${TARGET}: ${OBJS}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
10 ${CC} -shared -o $@ $? ${LDFLAGS} ${LDLIBS}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
11 all: ${TARGET}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
12 clean:
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
13 rm -f ${TARGET} ${OBJS}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
14
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
15 sun-gcc:
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
16 CC=gcc CFLAGS="${CFLAGS} -fPIC" ${MAKE_CMD} all