22 lines
360 B
Makefile
22 lines
360 B
Makefile
|
build:
|
||
|
##### Compile kwil #####
|
||
|
gcc -o bin/kwil src/**.c -g -Itest_include -Wall
|
||
|
|
||
|
run:
|
||
|
|
||
|
test: build
|
||
|
##### Run kwil on test files #####
|
||
|
bin/kwil test_files/*.h
|
||
|
|
||
|
##### Compile test files #####
|
||
|
gcc -g -o bin/test test_files/*.c -Itest_include -Wall
|
||
|
|
||
|
##### Run test program #####
|
||
|
bin/test
|
||
|
|
||
|
debug: build
|
||
|
ugdb -- bin/kwil test_files/**.h
|
||
|
|
||
|
clean:
|
||
|
rm bin/**
|