aboutsummaryrefslogtreecommitdiffstats
path: root/remount/Makefile
blob: 5aa24911de373c106b35c6cf664aba770ba030c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
OBJS=remountr remountw
include ../include/rules.make
CFLAGS+=-fomit-frame-pointer

remountw : remountr
	ln -s $^ $@

%:	%.c
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
	$(STRIP) -x --strip-unneeded -R .comment -R .note $@
	$(OBJDUMP) -h $@ | grep -q '\.data[ ]*00000000' && $(STRIP) -R .data $@ || true
	-if [ -n "$(SSTRIP)" ]; then $(SSTRIP) $@ ; fi