# HG changeset patch # User Paper <37962225+mrpapersonic@users.noreply.github.com> # Date 1659757604 14400 # Node ID 83b8fdb45d5e42c7571984992c1b1af610f8f9d0 # Parent a2e97924544176121b17f3f037e96ef8f37f942e makefile: CC_FLAGS->CFLAGS diff -r a2e979245441 -r 83b8fdb45d5e Makefile --- a/Makefile Mon Aug 01 21:41:54 2022 -0400 +++ b/Makefile Fri Aug 05 23:46:44 2022 -0400 @@ -1,21 +1,21 @@ -CC_FLAGS=-Wall -O2 -fstack-protector -fdata-sections -ffunction-sections -LD_FLAGS= +CFLAGS=-Wall -O2 -fstack-protector -fdata-sections -ffunction-sections +LDFLAGS= ifeq ($(shell uname -s),Darwin) # macOS is the odd one... - LD_FLAGS+=-Wl,-dead_strip + LDFLAGS+=-Wl,-dead_strip else - LD_FLAGS+=-Wl,--gc-sections + LDFLAGS+=-Wl,--gc-sections endif src/%.o : src/%.c $(CC) -c $(CC_FLAGS) $< -o $@ msvpvf: src/main.o src/common.o - $(CC) $(CC_FLAGS) -o $@ $^ $(LD_FLAGS) + $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) # GUI is windows-only, please use cross-compiler! gui: src/gui.o src/common.o - $(CC) $(CC_FLAGS) -o $@ $^ $(LD_FLAGS) -mwindows + $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -mwindows clean: rm -f src/*.o *.exe msvpvf gui