CFLAGS = -Wall -Wextra -g3 -ansi -pedantic OBJ = build/main.o build/tokenizer.o build/parser.o build/bytecode.o build/buffer.o all: build_dir $(OBJ) cc -o build/tsl $(OBJ) -fPIE clean: rm $(OBJ) build/tsl build_dir: mkdir -p build compiledb: make clean; bear make build/main.o: src/main.c include/tokenizer.h cc -c src/main.c -o build/main.o $(CFLAGS) build/tokenizer.o: src/tokenizer.c include/tokenizer.h cc -c src/tokenizer.c -o build/tokenizer.o $(CFLAGS) build/parser.o: src/parser.c include/parser.h cc -c src/parser.c -o build/parser.o $(CFLAGS) build/bytecode.o: src/bytecode.c include/bytecode.h cc -c src/bytecode.c -o build/bytecode.o $(CFLAGS) build/buffer.o: src/std/buffer.c include/std/buffer.h cc -c src/std/buffer.c -o build/buffer.o $(CFLAGS)