all repos — hex @ ca53f1e841863f9f6be360901a78e2f3c3dae506

A tiny, minimalist, slightly-esoteric concatenative programming lannguage.

Makefile

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
CC ?= gcc
CFLAGS ?= -Wall -Wextra -g
LDFLAGS ?=

hex: hex.c
	$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@

wasm: hex.c
	 emcc -sASYNCIFY -sEXPORTED_RUNTIME_METHODS=stringToUTF8 hex.c -o web/assets/hex.js --pre-js web/assets/hex-playground.js

ape: hex.c
	cosmocc $(CFLAGS) $(LDFLAGS) $< -o $@

.PHONY: clean
clean:
	rm hex
	rm -r web/out/

.PHONY: test
test:
	./hex test.hex

.PHONY: dtest
dtest:
	./hex -d test.hex

.PHONY: web
web: wasm
	./hex web.hex

.PHONY: dweb
dweb:
	./hex -d web.hex