view test/sharedlib/Makefile.embedded @ 588:dfc2e6ee8782 r1.4-RC3

- more robust endian detection, on some platforms inclusion of endian.h led to assuming wrong endianness (subtle if inclusion was in - syscall test: added newline to output
author Tassilo Philipp
date Mon, 19 Sep 2022 09:54:21 +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