summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorMikhail Burakov <mburakov@mailbox.org>2022-12-26 12:15:30 +0100
committerMikhail Burakov <mburakov@mailbox.org>2022-12-26 12:15:30 +0100
commitb2ccb9ff8fa7e7ad14143cfbf7e26ec79bfbfdc8 (patch)
tree1c372c1ef20f3dfa9931f908837ac8f94e7a826c /makefile
parent2fcd2038a47b1990532dde4078d71308dfcc58ca (diff)
Initial commit for version 2
Diffstat (limited to 'makefile')
-rw-r--r--makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/makefile b/makefile
index 4f0cb04..674f704 100644
--- a/makefile
+++ b/makefile
@@ -2,16 +2,16 @@ bin:=$(notdir $(shell pwd))
src:=$(shell ls *.c)
obj:=$(src:.c=.o)
-libs?=luajit
-
-CFLAGS?=\
- -march=native -O3 -flto \
- -Wall -Wextra -pedantic \
- -D_GNU_SOURCE
-
-LDFLAGS?=\
- -O3 -s -flto \
- -lmosquitto
+obj+=\
+ toolbox/buffer.o \
+ toolbox/http_parser.o \
+ toolbox/io_muxer.o \
+ toolbox/mqtt.o \
+ toolbox/mqtt_parser.o \
+ toolbox/utils.o
+
+libs:=\
+ luajit
CFLAGS+=$(shell pkg-config --cflags $(libs))
LDFLAGS+=$(shell pkg-config --libs $(libs))