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

build bytecode.o from C source

This commit is contained in:
Will 2021-02-06 08:38:22 +09:00
parent 2221a30405
commit 2d433a9b43

View File

@ -59,9 +59,9 @@ $(OBJ): config.h Makefile $(DEPS) | $(ODIR)
$(ODIR):
@mkdir -p $@
$(ODIR)/bytecode.o: src/wrk.lua
$(ODIR)/bytecode.c: src/wrk.lua $(DEPS)
@echo LUAJIT $<
@$(SHELL) -c 'PATH=obj/bin:$(PATH) luajit -b $(CURDIR)/$< $(CURDIR)/$@'
@$(SHELL) -c 'PATH="obj/bin:$(PATH)" luajit -b "$(CURDIR)/$<" "$(CURDIR)/$@"'
$(ODIR)/version.o:
@echo 'const char *VERSION="$(VER)";' | $(CC) -xc -c -o $@ -