Mercurial > pub > dyncall > dyncall
view test/sharedlib/Makefile.embedded @ 331:74c056b597b7
- disassembly example annotations
- callconv appendix in doc:
* ppc64 chapter
* some cleanups for consistency
author | Tassilo Philipp |
---|---|
date | Sat, 23 Nov 2019 13:51:35 +0100 |
parents | 3e629dc19168 |
children |
line wrap: on
line source
MAKEFILE = Makefile.embedded MAKE_CMD = ${MAKE} -f ${MAKEFILE} TARGET = libsharedlib.so OBJS = sharedlib.o CPPFLAGS += -I../../dynload LDFLAGS += -L../../dynload LDLIBS += -ldynload_s ${TARGET}: ${OBJS} ${CC} -shared -o $@ $? ${LDFLAGS} ${LDLIBS} all: ${TARGET} clean: rm -f ${TARGET} ${OBJS} sun-gcc: CC=gcc CFLAGS="${CFLAGS} -fPIC" ${MAKE_CMD} all