view test/sharedlib/Makefile.embedded @ 169:2fa600ea50e7

- marking off solaris/sparc (32 bit) as completely supported (just tested sparc callbacks on solaris (with gnu toolchain, though), works)
author cslag
date Sun, 08 Jan 2017 03:07:57 +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