annotate test/nm/Makefile.embedded @ 217:87c695673522
dynload darwin/mach-o update:
- removed unnecessarily complex darwin loader interface, and sharing with dynload_unix now
- mach-o symbol resolving refactored:
* to handle symlinks, relative paths, paths with random casing
* loading lib when not already loaded, for API consistency with ELF and PE implementations
author |
Tassilo Philipp |
date |
Thu, 06 Apr 2017 12:00:36 +0200 |
parents |
3e629dc19168 |
children |
|
rev |
line source |
0
|
1 APP = nm
|
|
2 OBJS = nm.o
|
|
3
|
|
4 TOP = ../..
|
|
5 CFLAGS += -I${TOP}/dynload
|
|
6 LDFLAGS += -L${TOP}/dynload
|
|
7 LDLIBS += -ldynload_s
|
|
8 # Works on: Darwin, NetBSD.
|
|
9 # Linux: add '-ldl'
|
|
10
|
|
11 all: ${APP}
|
|
12
|
|
13 .PHONY: all clean
|
|
14
|
|
15 ${APP}: ${OBJS}
|
|
16 ${CC} ${OBJS} ${LDFLAGS} ${LDLIBS} -o $@
|
|
17
|
|
18 clean:
|
|
19 rm -f ${APP} ${OBJS}
|
|
20
|