aboutsummaryrefslogtreecommitdiff
path: root/remount/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'remount/Makefile')
-rw-r--r--remount/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/remount/Makefile b/remount/Makefile
new file mode 100644
index 0000000..718de45
--- /dev/null
+++ b/remount/Makefile
@@ -0,0 +1,12 @@
+OBJS=remountr remountw
+include ../include/rules.make
+CFLAGS+=-fomit-frame-pointer
+
+remountw : remountr
+ ln -s $^ $@
+
+%: %.c
+ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
+ strip -R .comment -R .note $@
+ objdump -h $@ | grep -q '\.data[ ]*00000000' && strip -R .data $@ || true
+ sstrip $@