mirror of
https://github.com/wg/wrk
synced 2025-01-08 23:32:54 +08:00
minor Makefile improvements
This commit is contained in:
parent
14088561d9
commit
205a1960c8
6
Makefile
6
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user