PolymorphicEngine
Barry Read ELF format for binary modification 85e847c (2 years, 4 months ago)diff --git a/Makefile b/Makefile index 0a208ee..3c61d47 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ PRODUCT = poly_original CC=gcc CFLAGS= -LFLAGS=-T script.ld +LFLAGS=-T script.ld -static -s C_SOURCES := $(shell find src -name '*.c') OBJS = $(sort $(subst src/,build/,$(subst .c,.o,$(C_SOURCES)))) @@ -10,10 +10,11 @@ OBJS = $(sort $(subst src/,build/,$(subst .c,.o,$(C_SOURCES)))) $(PRODUCT): $(OBJS) @echo "LINKING $(PRODUCT)..." @$(CC) -o $@ $^ $(LFLAGS) + @strip --strip-all $(PRODUCT) clean: @echo "REMOVING OBJECT FILES..." - @touch build/main.o + @touch $(OBJS) @rm $(OBJS) build/%.o: src/%.c