view dynload/Makefile.generic @ 551:eef302b7a58d

- amendment fix for buffer overflow (see commit 0455834d29a1), to also handle non-standard struct packing, + better asserts - changelog wording tweaks for clarity - comment tweaks for clarity - (mostly pointless) microoptimization in aggr alignment calculation, avoiding a modulo, as alignment always a power of 2 - cleanups
author Tassilo Philipp
date Mon, 20 Jun 2022 14:57:49 +0200
parents 3e629dc19168
children
line wrap: on
line source

LIBNAME = dynload
OBJS 	= dynload.o dynload_syms.o
HEADERS = ${VPATH}/dynload.h 

LIB = lib${LIBNAME}_s.a

.PHONY: all clean install

all: ${LIB}
${LIB}: ${OBJS}
	${AR} ${ARFLAGS} ${LIB} ${OBJS}
clean:
	rm -f ${OBJS} ${LIB}
install: all
	mkdir -p ${PREFIX}/lib
	mkdir -p ${PREFIX}/include
	cp ${LIB} ${PREFIX}/lib
	cp ${HEADERS} ${PREFIX}/include