mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-27 04:50:28 +00:00
Remove dependency on ragel command
This commit is contained in:
parent
92b794002b
commit
565edd051f
10 changed files with 913 additions and 76 deletions
Binary file not shown.
Binary file not shown.
|
@ -53,7 +53,6 @@ SILENT ?= 1
|
|||
ZFLAGS ?=
|
||||
XARGS ?= xargs -P4 -rs8000
|
||||
NICE ?= build/actuallynice
|
||||
RAGEL ?= ragel
|
||||
DOT ?= dot
|
||||
GZ ?= gzip
|
||||
CLANG = clang-10
|
||||
|
|
|
@ -86,16 +86,3 @@ o/$(MODE)/%-clang.asm: %.f; @ACTION=OBJECTIFY.f build/compile $(OBJECTIFY.f) -S
|
|||
o/$(MODE)/%-gcc.asm: %.F; @ACTION=OBJECTIFY.F build/compile $(OBJECTIFY.F) -S -g0 $(OUTPUT_OPTION) $<
|
||||
o/$(MODE)/%-clang.asm: CC = $(CLANG)
|
||||
o/$(MODE)/%-clang.asm: %.F; @ACTION=OBJECTIFY.F build/compile $(OBJECTIFY.F) -S -g0 $(OUTPUT_OPTION) $< || echo / need $(CLANG) >$@
|
||||
|
||||
# ragel state machine compiler
|
||||
.PRECIOUS: build/bootstrap/%.c.gz
|
||||
o/$(MODE)/%.c: %.rl build/bootstrap/%.c.gz
|
||||
@mkdir -p $(dir $@)
|
||||
@$(GZ) $(ZFLAGS) -dc $(<:%.rl=build/bootstrap/%.c.gz) >$@
|
||||
-@ACTION=RAGEL build/do $(RAGEL) $(RAGELFLAGS) $(OUTPUT_OPTION) $<
|
||||
build/bootstrap/%.c.gz: %.rl
|
||||
@mkdir -p $(dir $@)
|
||||
@$(RAGEL) -o $(@:%.gz=%) $<
|
||||
@$(GZ) $(ZFLAGS) -f $(@:%.gz=%)
|
||||
%.svgz: %.rl
|
||||
@$(RAGEL) -V -p $< | $(DOT) -Tsvg | $(GZ) $(ZFLAGS) >$@
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue