1C_SOURCES := main.c
2
3all: dirsymlink
4
5dirreal: a.out
6	$(RM) -r $@
7	mkdir $@
8	$(OBJCOPY) --only-keep-debug $< $@/stripped.debug
9	$(OBJCOPY) --strip-all --add-gnu-debuglink=$@/stripped.debug $< $@/stripped.out
10
11dirsymlink: dirreal
12	$(RM) -r $@
13	mkdir $@
14	ln -s ../$</stripped.out $@/stripped.symlink
15
16include Makefile.rules
17