aboutsummaryrefslogtreecommitdiffstats
path: root/remount/Makefile
blob: 71633d519104488bf4479edc4a26b23090c13e3f (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
	sstrip $@