From b2ccb9ff8fa7e7ad14143cfbf7e26ec79bfbfdc8 Mon Sep 17 00:00:00 2001 From: Mikhail Burakov Date: Mon, 26 Dec 2022 12:15:30 +0100 Subject: Initial commit for version 2 --- makefile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'makefile') 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)) -- cgit v1.2.3