view test/callback_plain_c++/Makefile.generic @ 565:d1fa4b5a41f7

- Makefile show-tool-versions target: use more portable -V flag for version number output (works with lld & gnu ld, required for solaris ld)
author Tassilo Philipp
date Sun, 04 Sep 2022 10:36:51 +0200
parents 09bf0470ed50
children
line wrap: on
line source

APP       = callback_plain_c++
OBJS      = test_main.o
SRCTOP    = ${VPATH}/../..
BLDTOP    = ../..
CXXFLAGS += -I${SRCTOP}/dyncall
LDLIBS   += -L${BLDTOP}/dyncallback -ldyncallback_s -L${BLDTOP}/dyncall -ldyncall_s
.PHONY: all clean install
all: ${APP}
${APP}: ${OBJS} 
	${CXX} ${CXXFLAGS} ${LDFLAGS} ${OBJS} ${LDLIBS} -o ${APP}
clean:
	rm -f ${APP} ${OBJS}
install:
	mkdir -p ${PREFIX}/test
	cp ${APP} ${PREFIX}/test