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:
parent
2221a30405
commit
2d433a9b43
4
Makefile
4
Makefile
@ -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 $@ -
|
||||
|
Loading…
Reference in New Issue
Block a user