summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorEndianness <git@endianness.com>2020-08-26 23:29:37 +1000
committerEndianness <git@endianness.com>2020-08-26 23:29:37 +1000
commitb467cf03c0c7aba9cdcd62045c7ed2e0cc897d5e (patch)
tree4326d6048f62078f8a5d2051326e801285b2bc55 /Makefile
downloadsleep-sort-b467cf03c0c7aba9cdcd62045c7ed2e0cc897d5e.tar.gz
sleep-sort-b467cf03c0c7aba9cdcd62045c7ed2e0cc897d5e.tar.bz2
sleep-sort-b467cf03c0c7aba9cdcd62045c7ed2e0cc897d5e.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e889a06
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+CC=gcc
+CFLAGS=-O3 -march=native -pipe
+LIBS=-lpthread
+
+OBJ = main.o
+
+%.o: %.c $(DEPS)
+ $(CC) -c -o $@ $< $(CFLAGS) $(LIBS)
+
+out: $(OBJ)
+ $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
+clean:
+ rm out main.o