view test/nm/Makefile.generic @ 57:4eef76c8d22f r0.9-RC5

- another gnu/kfreebsd configure script linker flag
author cslag
date Fri, 25 Dec 2015 23:13:17 +0100
parents 3e629dc19168
children
line wrap: on
line source

APP       = nm
OBJS      = nm.o
SRCTOP    = ${VPATH}/../..
BLDTOP    = ../..
CFLAGS   += -I${SRCTOP}/dynload
LDLIBS_D += -L${BLDTOP}/dynload -ldynload_s
# Works on: Darwin, NetBSD.
# Linux: add '-ldl'
.PHONY: all clean install
all: ${APP}
${APP}: ${OBJS} 
	${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} ${LDLIBS_D} ${LDLIBS} -o ${APP}
clean:
	rm -f ${APP} ${OBJS}
install:
	mkdir -p ${PREFIX}/test
	cp ${APP} ${PREFIX}/test