summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGentoo <installgentoo@endianness.com>2021-03-27 10:01:16 +1100
committerGentoo <installgentoo@endianness.com>2021-03-27 10:01:16 +1100
commit105da972c5d78aa749b280a6a0b44b2457d55cac (patch)
tree7d55d112677ae98b5559001a54902ab5bfc8db65 /Makefile
downloaddiv-algo-hex-105da972c5d78aa749b280a6a0b44b2457d55cac.tar.gz
div-algo-hex-105da972c5d78aa749b280a6a0b44b2457d55cac.tar.bz2
div-algo-hex-105da972c5d78aa749b280a6a0b44b2457d55cac.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1c34818
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+CC=gcc
+CFLAGS=-O3 -march=native -flto -pipe
+
+OBJ = main.o
+
+%.o: %.c $(DEPS)
+ $(CC) -c -o $@ $< $(CFLAGS)
+
+d2h: $(OBJ)
+ $(CC) -o $@ $^ $(CFLAGS)
+
+clean:
+ rm d2h
+ rm main.o