summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGentoo <installgentoo@endianness.com>2021-03-27 10:01:59 +1100
committerGentoo <installgentoo@endianness.com>2021-03-27 10:01:59 +1100
commit4b06c06ec8e309abf64a0086ae9ebc056aec8285 (patch)
tree7feba344b1c47753b4d59bdca6476c25b2ad3cfd /Makefile
downloaddiv-algo-octal-4b06c06ec8e309abf64a0086ae9ebc056aec8285.tar.gz
div-algo-octal-4b06c06ec8e309abf64a0086ae9ebc056aec8285.tar.bz2
div-algo-octal-4b06c06ec8e309abf64a0086ae9ebc056aec8285.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..6340189
--- /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)
+
+d2o: $(OBJ)
+ $(CC) -o $@ $^ $(CFLAGS)
+
+clean:
+ rm d2o
+ rm main.o