1
0
mirror of https://github.com/wg/wrk synced 2025-01-08 23:32:54 +08:00

minor Makefile improvements

This commit is contained in:
Will 2014-05-15 20:11:07 +09:00
parent 14088561d9
commit 205a1960c8

View File

@ -1,7 +1,7 @@
CFLAGS := -std=c99 -Wall -O2 -D_REENTRANT CFLAGS := -std=c99 -Wall -O2 -D_REENTRANT
LIBS := -lpthread -lm -lcrypto -lssl 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) ifeq ($(TARGET), sunos)
CFLAGS += -D_PTHREADS -D_POSIX_C_SOURCE=200112L 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 LDIR = deps/luajit/src
LIBS := -lluajit $(LIBS) LIBS := -lluajit $(LIBS)
CFLAGS += -I $(LDIR) CFLAGS += -I$(LDIR)
LDFLAGS += -L $(LDIR) LDFLAGS += -L$(LDIR)
all: $(BIN) all: $(BIN)