view test/sharedlib/Makefile.embedded @ 528:e56241bba0f5

- test/callback_suite: reduce number of args, as it uses macros in generated cases.h and some platforms' preprocessor cannot handle that many args
author Tassilo Philipp
date Thu, 14 Apr 2022 14:44:40 +0200
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