# HG changeset patch # User Paper <37962225+mrpapersonic@users.noreply.github.com> # Date 1653208075 14400 # Node ID bc85395ff699f8f13a5c1aad703f46928f6c3aa6 # Parent cf9a1475547250bd65f1b9afc25c43be3c736897 [Makefile] Remove unused functions diff -r cf9a14755472 -r bc85395ff699 Makefile --- a/Makefile Sun May 22 04:20:11 2022 -0400 +++ b/Makefile Sun May 22 04:27:55 2022 -0400 @@ -1,15 +1,15 @@ -CC_FLAGS=-Wall -O2 -LD_FLAGS= +CC_FLAGS=-Wall -O2 -fstack-protector -fdata-sections -ffunction-sections +LD_FLAGS=-Wl,--gc-sections src/%.o : src/%.c $(CC) -c $(CC_FLAGS) $< -o $@ msvpvf: src/main.o src/common.o - $(CC) -o $@ $^ $(CC_FLAGS) $(LD_FLAGS) + $(CC) $(CC_FLAGS) -o $@ $^ $(LD_FLAGS) # GUI is windows-only, please use cross-compiler! gui: src/gui.o src/common.o - $(CC) -o $@ $^ $(CC_FLAGS) $(LD_FLAGS) -mwindows -fstack-protector + $(CC) $(CC_FLAGS) -o $@ $^ $(LD_FLAGS) -mwindows clean: rm -f src/*.o *.exe msvpvf gui