aboutsummaryrefslogtreecommitdiffstats
path: root/mk/elf.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/elf.mk')
-rw-r--r--mk/elf.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/elf.mk b/mk/elf.mk
index 160dadcc..f759b70f 100644
--- a/mk/elf.mk
+++ b/mk/elf.mk
@@ -81,5 +81,9 @@ C_LNXLIBS = $(com32)/libutil/libutil_lnx.a \
%.lnx: %.lo $(LNXLIBS) $(C_LNXLIBS)
$(CC) $(LNXCFLAGS) -o $@ $^
-%.c32: %.o $(C_LIBS)
+.PRECIOUS: %.elf
+%.elf: %.o $(C_LIBS)
$(LD) $(LDFLAGS) -o $@ $^
+
+%.c32: %.elf
+ $(OBJCOPY) --strip-debug --strip-unneeded $< $@