view Makefile @ 4:78a0ecd756da

Add automated output filename creation
author Paper <mrpapersonic@gmail.com>
date Fri, 21 Jan 2022 01:40:57 -0500
parents 87c7d43b03ff
children d1e5b8390cd3
line wrap: on
line source

CC=clang  # clang cause gcc throws compiling errors that i don't know how to fix
CC_FLAGS=-Wall -static -O2
LD_FLAGS=-ffunction-sections

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

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

clean:
	rm -f *.o
	rm -f msvpvf msvpvf.exe