annotate Makefile @ 5:92ec47e63923

Add missing semicolon
author Paper <mrpapersonic@gmail.com>
date Fri, 21 Jan 2022 01:53:58 -0500
parents 87c7d43b03ff
children d1e5b8390cd3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
87c7d43b03ff Add support for runtime inputs
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
1 CC=clang # clang cause gcc throws compiling errors that i don't know how to fix
87c7d43b03ff Add support for runtime inputs
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
2 CC_FLAGS=-Wall -static -O2
87c7d43b03ff Add support for runtime inputs
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
3 LD_FLAGS=-ffunction-sections
1
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
4
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
5 %.o : %.c
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
6 $(CC) -c $(CC_FLAGS) $< -o $@
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
7
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
8 msvpvf: msvpvf.o
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
9 $(CC) -o $@ $< $(CC_FLAGS) $(LD_FLAGS)
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
10
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
11 clean:
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
12 rm -f *.o
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
13 rm -f msvpvf msvpvf.exe