view Makefile @ 13:a4e604789e2e

Multiple changes Move non-required includes from common.h to CLI and fix GUI compatibility with MSVC
author Paper <mrpapersonic@gmail.com>
date Tue, 01 Feb 2022 21:01:29 -0500
parents d1e5b8390cd3
children 7103ac60ebdc
line wrap: on
line source

CC=clang
CC_FLAGS=-Wall -O2
LD_FLAGS=

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

msvpvf: src/main.o
	$(CC) -o $@ $< $(CC_FLAGS) $(LD_FLAGS)

# GUI is windows-only, please use cross-compiler!
gui: src/gui.o
	$(CC) -o $@ $< $(CC_FLAGS) $(LD_FLAGS) -mwindows

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