diff --git a/Makefile b/Makefile index d1175e2..d956c6b 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CFLAGS := -std=c99 -Wall -O2 -D_REENTRANT LIBS := -lpthread -lm -lcrypto -lssl -TARGET := $(shell uname -s | tr [A-Z] [a-z] 2>/dev/null || echo unknown) +TARGET := $(shell uname -s | tr '[A-Z]' '[a-z]' 2>/dev/null || echo unknown) ifeq ($(TARGET), sunos) CFLAGS += -D_PTHREADS -D_POSIX_C_SOURCE=200112L @@ -25,8 +25,8 @@ OBJ := $(patsubst %.c,$(ODIR)/%.o,$(SRC)) $(ODIR)/bytecode.o LDIR = deps/luajit/src LIBS := -lluajit $(LIBS) -CFLAGS += -I $(LDIR) -LDFLAGS += -L $(LDIR) +CFLAGS += -I$(LDIR) +LDFLAGS += -L$(LDIR) all: $(BIN)