switched build and test scripts to a makefile
This commit is contained in:
parent
72d9d73f57
commit
1caccffa5b
5 changed files with 24 additions and 29 deletions
21
Makefile
Normal file
21
Makefile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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/**
|
||||
Loading…
Add table
Add a link
Reference in a new issue