blangfile(1)
This commit is contained in:
parent
6c659ee621
commit
6a90901f81
4
Makefile
4
Makefile
@ -7,8 +7,6 @@ all: $(TARGETS)
|
||||
clean:
|
||||
$(RM) $(TARGETS)
|
||||
|
||||
bin:
|
||||
mkdir -p bin
|
||||
build:
|
||||
mkdir -p build
|
||||
|
||||
@ -18,7 +16,7 @@ build/blang.o: build src/blang.c src/blang.h
|
||||
build/ops.o: build src/blang.h src/ops.c src/ops.h
|
||||
$(CC) -c -o $@ src/ops.c
|
||||
|
||||
bin/blang: bin build/blang.o build/ops.o
|
||||
bin/blang: build/blang.o build/ops.o
|
||||
$(CC) $(CFLAGS) -o $@ build/*.o
|
||||
|
||||
.PHONY: all clean
|
||||
|
3
bin/blangfile
Executable file
3
bin/blangfile
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
blang "$(cat "$@")"
|
2
example/hello_world.blang
Normal file
2
example/hello_world.blang
Normal file
@ -0,0 +1,2 @@
|
||||
<H><e><l><l><o><,>< ><w><o><r><l><d><!><
|
||||
>^*
|
Loading…
Reference in New Issue
Block a user