summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGentoo <installgentoo@endianness.com>2021-03-27 10:07:44 +1100
committerGentoo <installgentoo@endianness.com>2021-03-27 10:07:44 +1100
commit28d0297a914164fc3f023679d80e636a104ae9c3 (patch)
tree211c4ee3c4636421f68e9ec2b5dea4445255e063 /Makefile
downloadchip8-28d0297a914164fc3f023679d80e636a104ae9c3.tar.gz
chip8-28d0297a914164fc3f023679d80e636a104ae9c3.tar.bz2
chip8-28d0297a914164fc3f023679d80e636a104ae9c3.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ae1aca4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+CC=gcc
+CFLAGS=-O3 -march=native -flto -pipe
+LIBS=-lSDL2
+
+OBJ = main.o
+DEPS = main.h lookup.h number_sprites.h
+
+%.o: %.c $(DEPS)
+ $(CC) -c -o $@ $< $(CFLAGS) $(LIBS)
+
+out: $(OBJ)
+ $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
+
+clean:
+ rm $(OBJ)
+ rm out