annotate test/plain/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 71c884e610f0
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 APP = plain
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
2 OBJS = test_main.o test_structs.o
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
3 SRCTOP = ${VPATH}/../..
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
4 BLDTOP = ../..
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
5 CFLAGS += -I${SRCTOP}/dyncall
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
6 LDLIBS += -L${BLDTOP}/dyncall -ldyncall_s
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
7 .PHONY: all clean install
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
8 all: ${APP}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
9 ${APP}: ${OBJS}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
10 ${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} ${LDLIBS} -o ${APP}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
11 clean:
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
12 rm -f ${APP} ${OBJS}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
13 install:
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
14 mkdir -p ${PREFIX}/test
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
15 cp ${APP} ${PREFIX}/test
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
16