view test/nm/Makefile.embedded @ 275:1e3617d8a951

- mach-o loader fix (discovered on High Sierra, not sure what other versions were affected)
author Tassilo Philipp
date Thu, 01 Feb 2018 12:59:00 +0100 (2018-02-01)
parents 3e629dc19168
children
line wrap: on
line source
APP = nm
OBJS = nm.o

TOP = ../..
CFLAGS  += -I${TOP}/dynload
LDFLAGS += -L${TOP}/dynload
LDLIBS  += -ldynload_s
# Works on: Darwin, NetBSD.
# Linux: add '-ldl'

all: ${APP}

.PHONY: all clean

${APP}: ${OBJS} 
	${CC} ${OBJS} ${LDFLAGS} ${LDLIBS} -o $@

clean:
	rm -f ${APP} ${OBJS}