view Makefile @ 84:7d4db3e24487

README: add CI build status
author Paper <paper@paper.us.eu.org>
date Fri, 22 Mar 2024 22:30:04 -0400
parents c06dcab17923
children 1acd477da42f
line wrap: on
line source

_CFLAGS = -Wall -O2 -Iinclude $(CFLAGS)
_LDFLAGS = $(LDFLAGS)

.c.o:
	$(CC) -c $(_CFLAGS) $< -o $@

# this is a unix-like version, barely functional on windows.
msvpvf: src/main.o src/common.o
	$(CC) $(_CFLAGS) -o $@ $^ $(_LDFLAGS)

# windows-specific
gui: src/gui.o src/common.o
	$(CC) -o $@ $^ -mwindows -lole32 -lshlwapi -luuid -lmsvcrt $(_LDFLAGS)

clean:
	rm -f src/main.o src/common.o src/gui.o msvpvf gui