feat(compiler): Restore sovereign compiler engine & VM with zero-key cloud gateway and vendored GitHub stats
This commit is contained in:
1 parent
bd12a80ff0
commit
506eb25977
64 files changed
+9715
-1
No files matched your search
Vendored
+31
@@ -0,0 +1,31 @@
|
||||
CC = clang
|
||||
CFLAGS = -O3 -Wall -Wextra -Wno-unused-parameter -Iinclude -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fPIE
|
||||
LDFLAGS = -pie -Wl,-z,relro,-z,now -lm
|
||||
|
||||
SRCS = src/common.c src/lexer.c src/value.c src/ast.c src/parser.c src/env.c src/modules.c src/evaluator.c src/elf_emitter.c src/main.c
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
TARGET = bin/airalang
|
||||
INSTALL_DIR = /data/data/com.termux/files/usr/bin
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
@mkdir -p bin
|
||||
$(CC) $(OBJS) -o $(TARGET) $(LDFLAGS)
|
||||
@echo "\033[1;32m[✓] AiraLang S1 Duo Native Binary successfully compiled!\033[0m"
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
install: $(TARGET)
|
||||
@mkdir -p $(INSTALL_DIR)
|
||||
cp $(TARGET) $(INSTALL_DIR)/airalang
|
||||
cp $(TARGET) $(INSTALL_DIR)/airalang3
|
||||
chmod 755 $(INSTALL_DIR)/airalang $(INSTALL_DIR)/airalang3
|
||||
@echo "\033[1;32m[✓] Installed airalang and airalang3 to $(INSTALL_DIR)\033[0m"
|
||||
|
||||
clean:
|
||||
rm -rf src/*.o bin/
|
||||
@echo "\033[1;33m[*] Cleaned build artifacts.\033[0m"
|
||||
|
||||
.PHONY: all clean install
|
||||
Reference in new issue
Block a user