view Makefile @ 51:0f6c604b6863

We don't need to specify that it's ANSI because MinGW does it for us (I think)
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Sun, 22 May 2022 04:11:30 -0400
parents 652343b56a60
children bc85395ff699
line wrap: on
line source

CC_FLAGS=-Wall -O2
LD_FLAGS=

src/%.o : src/%.c
	$(CC) -c $(CC_FLAGS) $< -o $@

msvpvf: src/main.o src/common.o
	$(CC) -o $@ $^ $(CC_FLAGS) $(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

clean:
	rm -f src/*.o *.exe msvpvf gui