Mercurial > msvpvf
view Makefile @ 63:a2e979245441 v1.2.3
paper is retarded and caused a segfault episode 1
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Mon, 01 Aug 2022 21:41:54 -0400 |
parents | dbed5f51d635 |
children | 83b8fdb45d5e |
line wrap: on
line source
CC_FLAGS=-Wall -O2 -fstack-protector -fdata-sections -ffunction-sections LD_FLAGS= ifeq ($(shell uname -s),Darwin) # macOS is the odd one... LD_FLAGS+=-Wl,-dead_strip else LD_FLAGS+=-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) # GUI is windows-only, please use cross-compiler! gui: src/gui.o src/common.o $(CC) $(CC_FLAGS) -o $@ $^ $(LD_FLAGS) -mwindows clean: rm -f src/*.o *.exe msvpvf gui