aboutsummaryrefslogtreecommitdiffhomepage
path: root/justfile
blob: c10a9783672dc42c4fbc4e37a56667cf1869419f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CFLAGS := "-Wno-builtin-declaration-mismatch"

all: build

build:
    gcc -o p4dcc main.c {{CFLAGS}}

test TESTCASE="all": build
    #!/usr/bin/env bash
    if [[ {{TESTCASE}} = all ]]; then
        bash tests/all.sh
    else
        bash tests/run.sh {{TESTCASE}}
    fi

clean:
    rm p4dcc
    rm -rf tests/tmp