Mercurial > msvpvf
view Makefile @ 67:0902a957d9b0
Update README.md
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Mon, 10 Oct 2022 17:05:16 -0400 |
parents | c8b91b8c2a64 |
children | 207684d44b54 |
line wrap: on
line source
CFLAGS=-Wall -O2 -fstack-protector -fdata-sections -ffunction-sections LDFLAGS= ifeq ($(shell uname -s),Darwin) # macOS is the odd one... LDFLAGS+=-Wl,-dead_strip else LDFLAGS+=-Wl,--gc-sections endif src/%.o : src/%.c $(CC) -c $(CFLAGS) $< -o $@ msvpvf: src/main.o src/common.o $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) # GUI is windows-only, please use cross-compiler! gui: src/gui.o src/common.o $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -mwindows clean: rm -f src/*.o *.exe msvpvf gui