Skip to content

Commit

Permalink
build bytecode.o from C source
Browse files Browse the repository at this point in the history
  • Loading branch information
wg committed Feb 7, 2021
1 parent 2221a30 commit 2d433a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@ -
Expand Down

0 comments on commit 2d433a9

Please sign in to comment.