summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lldb/packages/Python/lldbsuite/test/linux/sepdebugsymlink/Makefile
blob: a290c8c6f2e807761e00b64caad3a6aa8978f744 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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

clean::
	$(RM) -r dirreal dirsymlink

include Makefile.rules