aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/linux/sepdebugsymlink/Makefile
blob: a1b84c1843e968ab674a90d1756f7de80da704c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
C_SOURCES := main.c

all: dirsymlink

dirreal: a.out
	$(RM) -r $@
	mkdir $@
	$(OBJCOPY) --only-keep-debug $< $@/stripped.debug
	$(OBJCOPY) --strip-all --add-gnu-debuglink=$@/stripped.debug $< $@/stripped.out

dirsymlink: dirreal
	$(RM) -r $@
	mkdir $@
	ln -s ../$</stripped.out $@/stripped.symlink

include Makefile.rules