# example output of using top-level makefile and lower-level makefile [huanc3@laguna chess]$ make clean cd src; make clean make[1]: Entering directory `/users/ugrad2/2016/spring/huanc3/rep/team1/chess/src' rm -f *.o .#* *~ chess; rm -rf ../bin/* make[1]: Leaving directory `/users/ugrad2/2016/spring/huanc3/rep/team1/chess/src' [huanc3@laguna chess]$ make cd src; make make[1]: Entering directory `/users/ugrad2/2016/spring/huanc3/rep/team1/chess/src' gcc -ansi -Wall -g -c Board.c -o Board.o gcc -ansi -Wall -g -c ChessGame.c -o ChessGame.o gcc -ansi -Wall -g -c GUI.c -o GUI.o gcc -ansi -Wall -g -c Piece.c -o Piece.o gcc -ansi -Wall -g -c Rules.c -o Rules.o gcc -ansi -Wall -g -c UserIO.c -o UserIO.o gcc -ansi -Wall -g Board.o ChessGame.o GUI.o Piece.o Rules.o UserIO.o -o chess make[1]: Leaving directory `/users/ugrad2/2016/spring/huanc3/rep/team1/chess/src' [huanc3@laguna chess]$ make test cd src; make test make[1]: Entering directory `/users/ugrad2/2016/spring/huanc3/rep/team1/chess/src' Testing rule.c... Testing AI vs AI... make[1]: Leaving directory `/users/ugrad2/2016/spring/huanc3/rep/team1/chess/src' [huanc3@laguna chess]$ make tar gtar czf ../Chess_Alpha_src.tar.gz ./ [huanc3@laguna chess]$ [huanc3@laguna chess]$ ./bin/chess Welcome to the chess game terminal!! [huanc3@laguna chess]$ cd src [huanc3@laguna src]$ make clean rm -f *.o .#* *~ chess; rm -rf ../bin/* [huanc3@laguna src]$ make gcc -ansi -Wall -g -c Board.c -o Board.o gcc -ansi -Wall -g -c ChessGame.c -o ChessGame.o gcc -ansi -Wall -g -c GUI.c -o GUI.o gcc -ansi -Wall -g -c Piece.c -o Piece.o gcc -ansi -Wall -g -c Rules.c -o Rules.o gcc -ansi -Wall -g -c UserIO.c -o UserIO.o gcc -ansi -Wall -g Board.o ChessGame.o GUI.o Piece.o Rules.o UserIO.o -o chess [huanc3@laguna src]$ make test Testing rule.c... Testing AI vs AI... [huanc3@laguna src]$