From 231e7f7fa4702fd11e462708e606fffee0453ca8 Mon Sep 17 00:00:00 2001 From: sup39 Date: Fri, 1 Jul 2022 12:12:31 +0900 Subject: [PATCH] improve Makefile (CC, FLAGS) --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 6a12e7a..7fc50db 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,6 @@ VERSION = 0.1.0-beta.1 -CC = gcc -CFLAGS = -O2 -LDFLAGS = -llua -lm +CFLAGS = -Os $(and $(LUA_ROOT),-I$(LUA_ROOT)) $(MYCFLAGS) +LDFLAGS = $(and $(LUA_ROOT),-L$(LUA_ROOT)) -llua -lm $(MYLDFLAGS) IFACE = eth0 CONFILE = config.lua