diff options
Diffstat (limited to 'pgm1/makefile')
-rwxr-xr-x | pgm1/makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pgm1/makefile b/pgm1/makefile new file mode 100755 index 0000000..7be689d --- /dev/null +++ b/pgm1/makefile @@ -0,0 +1,36 @@ +all: beetle + +beetle: beetle.c + gcc -Wall -o beetle beetle.c -lm + +debug: beetle.c + gcc -Wall -o -g beetle beetle.c -lm + +clean: + rm -f beetle + +test: + gcc -Wall -o beetle beetle.c -lm + + # standard test case + ./beetle 10 10000 + + # too many/too few inputs + -./beetle 10 + -./beetle 10 10 10 + + # negatives + -./beetle -10 10000 + -./beetle 10 -10000 + + # non-number characters + -./beetle abc 10000 + -./beetle 10 abc + + # really big numbers + -./beetle 2147483647 2 + -./beetle 2 2147483647 + + # overflow + -./beetle 10 100000000000000000000000000000 + -./beetle 100000000000000000000000000000 2 |