helloJSON/compile
2023-06-18 21:40:36 +01:00

17 lines
242 B
Bash

#!/bin/bash
CC=clang
CFLAGS="-g -Wall -Werror -pedantic -Iinclude"
SRC="src/main.c"
OUT=main
# DSTRING
CFLAGS+=" -Iinclude/dstring"
SRC+=" src/dstring/*.c"
# LEXER
CFLAGS+=" -Iinclude/lexer"
SRC+=" src/lexer/*.c"
$CC $CFLAGS $SRC -o $OUT