From 379c2c17e68d5d471a6a9673b7e9cd1fb9d99bbb Mon Sep 17 00:00:00 2001 From: 53hornet <53hornet@gmail.com> Date: Sat, 2 Feb 2019 22:59:54 -0500 Subject: Init. --- pgm1/makefile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 pgm1/makefile (limited to 'pgm1/makefile') 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 -- cgit v1.2.3