view Makefile @ 50:0fa325f60f07 v1.2.1

Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Sun, 22 May 2022 03:52:39 -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